eth_getBlockByHash

Returns information of the block matching the given block hash. The API credit value for this method is 60

  1. Parameters

  • Hash string*REQUIRED

  • Transaction_detail_flag Boolean*REQUIRED

curl https://Krypc-End Point URL/ \
-X POST \
-H "Content-Type: application/json" \
--data '{
	"method":"eth_getBlockByHash",
	"params":["0x829df9bb801fc0494abf2f443423a49ffa32964554db71b098d332d87b70a48b",false],
	"id":1,
	"jsonrpc":"2.0"
}'
  1. Returns

    1. Result

      Object- A block object, or null when no block was found

      1. baseFeePerGas

        A string of the base fee encoded in hexadecimal format. Please note that this response field will not be included in a block requested before the EIP-1559 upgrade

      2. difficulty

        The integer of the difficulty for this block encoded as a hexadecimal

      3. extraData

        The “extra data” field of this block

      4. gasLimit

        The maximum gas allowed in this block encoded as a hexadecimal

      5. gasUsed

        The total used gas by all transactions in this block encoded as a hexadecimal

      6. hash

        The block hash of the requested block. null if pending

      7. logsBloom

        The bloom filter for the logs of the block. null if pending

      8. miner

        The address of the beneficiary to whom the mining rewards were given

      9. mixHash

        A string of a 256-bit hash encoded as a hexadecimal

      10. nonce

        The hash of the generated proof-of-work. null if pending

      11. number

        The block number of the requested block encoded as a hexadecimal. null if pending

      12. parentHash

        The hash of the parent block

      13. receiptsRoot

        The root of the receipts trie of the block

      14. sha3Uncles

        The SHA3 of the uncles data in the block

      15. size

        The size of this block in bytes as an Integer value encoded as hexadecimal

      16. stateRoot

        The root of the final state trie of the block

      17. timestamp

        The unix timestamp for when the block was collated

      18. totalDifficulty

        The integer of the total difficulty of the chain until this block encoded as a hexadecimal

      19. transactions

        An array of transaction objects - please see eth_getTransactionByHash for exact shape

      20. transactionsRoot

        The root of the transaction trie of the block

      21. uncles

        An array of uncle hashes

Last updated