post https://dogeos-testnet.unifra.io/v1//eth_getBlockByHash
Returns information about a block by hash.
Returns information about a block by hash.
PARAMETERS
Block Hash
- (required) A 32-byte block hash.Full Transactions
- (required) Iftrue
it returns the full transaction objects, iffalse
it returns only the hashes of the transactions.
REQUEST
{
"jsonrpc": "2.0",
"method": "eth_getBlockByHash",
"params": [
"0xc3826b13f837595ca9141a32a2f1472d2bcf6e6db76b9df6956d5e1af7da5ed2",
true
],
"id": 0
}
RESPONSE
Result
- A block object with the following fields, or null
when no block was found:
number
- The block number.null
when it's a pending block.hash
- Hash of the block.null
when it's a pending block.parentHash
- Hash of the parent block.nonce
- Hash of the generated proof-of-work.null
when it's a pending block.sha3Uncles
- SHA3 of the uncles data in the block.logsBloom
- The bloom filter for the logs of the block.null
when it's a pending block.transactionsRoot
- The root of the transaction trie of the block.stateRoot
- The root of the final state trie of the block.receiptsRoot
- The root of the receipts trie of the block.miner
- The address of the beneficiary to whom the mining rewards were given.difficulty
- An integer of the difficulty for this block.totalDifficulty
- An integer of the total difficulty of the chain until this block.extraData
- The "extra data" field of this block.size
- An integer of the size of this block in bytes.gasLimit
- The maximum gas allowed in this block.gasUsed
- The total used gas by all transactions in this block.timestamp
- The unix timestamp for when the block was collated.transactions
- An array of transaction objects, or 32-byte transaction hashes depending on the last given parameter.uncles
- An array of uncle hashes.
{
"jsonrpc": "2.0",
"id": 0,
"result": {
"baseFeePerGas": "0xef4208",
"difficulty": "0x1",
"extraData": "0x",
"gasLimit": "0x989680",
"gasUsed": "0xa21b",
"hash": "0xc3826b13f837595ca9141a32a2f1472d2bcf6e6db76b9df6956d5e1af7da5ed2",
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000900000000000000000000000000000000000000000000000000000000000000000000000001000000008000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000020000000000000000000",
"miner": "0x0000000000000000000000000000000000000000",
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"nonce": "0x0000000000000000",
"number": "0x2fa00",
"parentHash": "0x01c760359ec5da66a74a4592f907d338fd175d8592e9598b270c852e35648ae0",
"receiptsRoot": "0xd893295050ef09f7e3425016567b8698fa5b908241d989a84a37fa5777238f61",
"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
"size": "0x2ff",
"stateRoot": "0xc35c0423123ea7f6b2245360f6024f07448e96772ee9c5d17b66c168ef83fe28",
"timestamp": "0x68d34280",
"totalDifficulty": "0x2fa01",
"transactions": [
{
"blockHash": "0xc3826b13f837595ca9141a32a2f1472d2bcf6e6db76b9df6956d5e1af7da5ed2",
"blockNumber": "0x2fa00",
"from": "0x871f1181aa63c988325539cf4b502e092595b50e",
"gas": "0xa21b",
"gasPrice": "0xef426c",
"maxFeePerGas": "0x1de8474",
"maxPriorityFeePerGas": "0x64",
"hash": "0x493650c1985b3bd12dccb9a70edaa6cd70366d0acdb13af5343c1a31f1272aa9",
"input": "0x39455d3a000000000000000000000000000000000000000000000000000000000016e3600000000000000000000000000000000000000000000000000000000004679ef9",
"nonce": "0x59c",
"to": "0x5300000000000000000000000000000000000002",
"transactionIndex": "0x0",
"value": "0x0",
"type": "0x2",
"accessList": [],
"chainId": "0x5fdaf3",
"v": "0x1",
"r": "0x4ad08a9517142acddf1cdd461040bfd19e84d6d9ee39f65476febe76d59eff1",
"s": "0x25b0ee4a429bc006447b4d9b01e745c906553464e204cb2b531d0cc4ac687760",
"yParity": "0x1"
}
],
"transactionsRoot": "0xde6fbe08c444d969d79e6b90b2676bb6f1d5fc97a97908eb6d1d611bcbac4c9b",
"uncles": []
}
}