eth_getBlockByNumber
Returns information about a given block number.
Parameters
Quantity
ortag
- choose 1 of the following options:A hexadecimal block number.
"earliest"
- the earliest/genesis block."latest"
- the latest mined block."safe"
- the latest safe head block."finalized"
- the latest finalized block."pending"
- the pending state/transactions.
Boolean
- Iftrue
it returns the full transaction objects; iffalse
it returns only the hashes of the transactions.
Sample Request
curl https://lb.nodies.app/v1/<INSERT URL> \
-H "x-api-key: <API-KEY>" \
-X POST \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_getBlockByNumber",
"params": [
"0xa52bf6",
false
],
"id": 1
}'
Sample Response
{
"jsonrpc":"2.0",
"id":1,
"result":{
"difficulty":"0xae6b997b80ae4",
"extraData":"0x737069646572313104571dbf",
"gasLimit":"0xbea3ba",
"gasUsed":"0xbe9fc7",
"hash":"0x4361c7c33bfd5676673be3b0b3604cbf3513e15224fdfc4e3b687dc68fa7abe9",
"logsBloom":"0x002128404000124800000000c0018008300000006000000000810420002000082080400000008400000000801200010002882000081000000000000060a0002400000080020009610000440800002020000010801040000080010000a120004150000320020080820000100000098800010000000000b4010100041248000000020000000128000004400000a010000000000000100400080000004800100220828012000000020100000080000100080100080000001000000a0000400000002001100201800402080400000048000000000202000040104200008206042000201020000000400000080000440042000000900004402080000a004008000000",
"miner":"0x04668ec2f57cc15c381b461b9fedab5d451c8f7f",
"mixHash":"0x267de967b36145524315131e7ffa61a4e337490bd2545773f959589a671221b8",
"nonce":"0xf6c9cc700f479c5d",
"number":"0xa52bf6",
"parentHash":"0xe5920e387b0f2cd16a455f2a2703e0b851afdba8ebbb0d993556f2209ed52a2f",
"receiptsRoot":"0cdd571db6cd6db40e4fc5f36f8afebf9fc50fdd94766ad11ef2b792ffbb831c7",
"sha3Uncles":"0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
"size":"0x13d4",
"stateRoot":"0xd2849668f7a7555fc9dd60e205f8342ac8200cd016d7b3b39d2e87625a6261a8",
"timestamp":"0x5f583632",
"totalDifficulty":"0x3a95d557dcfb59d7ff5",
"transactions":[
"0x212458a3c65f07694a8e77bd99f7725edc1cc94d96b866128e0addd982a3fc19",
"0xb1327b021616d69efe84f433951d891ce73c4f566dc52b64d23b75147e930189",
"0xdc86641dc6dd4126cd8b2a2eeb6b766e86da09de896a67714fc5306dd6e3de99",
"0x7ad580daa041d4be7d3912e150176e03996f0ca480ce23967871c6b7c881357b",
"0xb34dbd3472e2abae45b417e49097b6e68997a47be8e894e8698b1db7de8335e7",
"0x5899759d5f7918b772d05d7ac0d89f3ab9295efc49e495c67988b424cea71b5e",
"0x04e9eb31a1604ad2b8cdcc5c3b15c79c39f35b0866f16ffe1d7c210552da9ef1",
"0x3fbbddaf90b4bdca634d730edf5cc856e70a2b78abbf4729ae7fe53f35e84e42",
"0x994aef9bb5cc9692e309b872fdc5f624681ccbf83fbdeb5b9731e551eef839c2",
"0x2922f4963fd8739f16ef629e00c64b8a7a0378447ed64991e00508bd1055122f",
"0x7749eb8b39c7917ea2dff77b353842f53b7a6fc54b6fe078151a6fceb19d18f1",
"0x05eae8a235be74f4e12d3dd508e0e44b91aa46c0b6134d5fd2818e9fe496842e",
"0x7474e2b8033c7cb591b86948dd2ff2e0e287d1cc4f890f94c7315a99aa300358",
"0x149661a4d4ee038368b581b262de2bfe71c3d21f503a73d97c0a1401807bd7d0",
"0x62696854ec3b0e22434198988054b1326b919d8757db29d8c63b3056689fdbce",
"0x0a14d41336b2afa5de0f98196a96a7405fc98499e50216d2cd92b9eb1da68dc5",
"0x88fcf57f33ab4c1032fe2303f368830aba0160a538accd562c7c02444b23c025",
"0x7dfbdf6f8e4848a122780c98bcb66c83dcce75dc835d155b6efd1232d64c4950",
"0x02c0cbe43b890c5220b57c3f158f1df7659f1fbda0ccc3f63c97fc2055a90198",
"0x6fb76e3aa88795a9bb87c50d708b95c008f2063358428bbe4bb604f9b1524eb6",
"0xdd0a0eabd8060129dd036d0709c0461fc504552cb391144cb3281de41fb03c2a",
"0xa599f1a0d11c69ce0a971c7405029b2187a59cbae6b922179568ceabc72d9540",
"0xc65008fdbf2feea09803f83f0a023d36e11670023bab2510e9675836cc04d651",
"0x378e46585168d411dbbd3f4e3e62d6690662283737d320a7424923f4101582bc",
"0x5b9ced3fe84ac5f136327e0c1365f5613147f6f7500b5d1034b7d1ac91911fdc",
"0x96a0106054da6d6378d7441b6bbf34b47110a3f31115041365d359b38165f00f",
"0xa6a3e7f052d68cb453292fd3be68f3b9302e92d943125333dda657c57dfd6ab7"
],
"transactionsRoot":"0x5dbd70abad8c89cfce3d86d02fedd9426d55cd1954608d7c29ded537caed61e7",
"uncles":[]
}
}
Last updated