Get Block Details By Block Hash
Through this endpoint customers can obtain basic information about a given mined block, specifically by using the hash
parameter. These block details could include the hash of the specific, the previous and the next block, its transactions count, its height, etc.
Blockchain specific data is information such as version, nonce, size, bits, merkleroot, etc.
Path Parameters
-
Requiredblockchain string
Represents the specific blockchain protocol name, e.g. Ethereum, Bitcoin, etc.
-
Requirednetwork string
Represents the name of the blockchain network used; blockchain networks are usually identical as technology and software, but they differ in data, e.g. - "mainnet" is the live network with actual data while networks like "testnet", "goerli" are test networks.
-
RequiredblockHash string
Represents the hash of the block, which is its unique identifier. It represents a cryptographic digital fingerprint made by hashing the block header twice through the SHA256 algorithm.
Query parameters
-
Optionalcontext string
In batch situations the user can use the context to correlate responses with requests. This property is present regardless of whether the response was successful or returned as an error.
context
is specified by the user.
Response schema
Content-Type: application/json
The request has been successful.
Object :
-
RequiredapiVersion string
Specifies the version of the API that incorporates this endpoint.
Example : 2023-04-25 -
RequiredrequestId string
Defines the ID of the request. The
requestId
is generated by Crypto APIs and it's unique for every request.Example : 601c1710034ed6d407996b30 -
Optionalcontext string
In batch situations the user can use the context to correlate responses with requests. This property is present regardless of whether the response was successful or returned as an error.
context
is specified by the user.Example : yourExampleString -
Requireddata object
-
Requireditem object
-
Requiredhash string
Represents the hash of the block, which is its unique identifier. It represents a cryptographic digital fingerprint made by hashing the block header twice through the SHA256 algorithm.
Example : 0000000006b3f483bec16b8a85c632bdd30a14a202c83a9148002c9ee441dd0c -
Requiredheight integer
Represents the number of blocks in the blockchain preceding this specific block. Block numbers have no gaps. A blockchain usually starts with block 0 called the "Genesis block".
Example : 1941208 -
RequirednextBlockHash string
Represents the hash of the next block. When this is the last block of the blockchain this value will be an empty string.
Example : 0000000000000003b08ca90b701da447fb3e7c5c6b43acd33a5e4062fe98dea5 -
RequiredpreviousBlockHash string
Represents the hash of the previous block, also known as the parent block.
Example : 00000000844434fd86a630ba8e29503d5396a2b6c4003d69bf0a08d96169d4cd -
Requiredtimestamp integer
Defines the exact date/time when this block was mined in Unix Timestamp.
Example : 1615378134 -
RequiredtransactionsCount integer
Represents the total number of all transactions as part of this block.
Example : 145 -
RequiredblockchainSpecific object One Ofobject
-
Requireddifficulty string
Represents a mathematical value of how hard it is to find a valid hash for this block.
Example : 209515044.4071968 -
Requiredbits string
A sub-unit of BTC equal to 0.000001 BTC, or 100 Satoshi, and is the same as microbitcoin (μBTC). Bits have two-decimal precision.
Example : 420773839 -
Requiredchainwork string
Represents a hexadecimal number of all the hashes necessary to produce the current chain. E.g., when converting 0000000000000000000000000000000000000000000086859f7a841475b236fd to a decimal you get 635262017308958427068157 hashes, or 635262 exahashes.
Example : 0000000000000000000000000000000000000000000003ddecb747af741625d6 -
RequiredmerkleRoot string
Defines the single and final (root) node of a Merkle tree. It is the combined hash of all transactions' hashes that are part of a blockchain block.
Example : 7b52cc9ce137b92365eb4d0f8a708da9e3ba199aa422f96352a0c0c87221251b -
Requirednonce integer
Represents a random value that can be adjusted to satisfy the Proof of Work.
Example : 1535290446 -
Requiredsize integer
Represents the total size of the block in Bytes.
Example : 3892 -
RequiredstrippedSize integer
Defines the numeric representation of the block size excluding the witness data.
Example : 2840 -
Requiredversion integer
Represents the version of the specific block on the blockchain.
Example : 545259520 -
RequiredversionHex string
Is the hexadecimal string representation of the block's version.
Example : 20000000 -
Requiredweight integer
Represents a measurement to compare the size of different transactions to each other in proportion to the block size limit.
Example : 12412
-
-
-