Get Block by Number
Returns information about a block by block number.
https://api.atoverse.info/api
?module=proxy
&action=atos_getBlockByNumber
&tag=0x887AD4
&boolean=true
&apikey=YourApiKeyToken
Request
Query Parameters
Parameter | Description |
---|---|
tag | the block number, in hex eg. 0x887AD4 |
boolean | the boolean value to show full transaction objects. when true, returns full transaction objects and their information, when false only returns a list of transactions. |
Response
Sample response
{
"code":200,
"msg":"ok",
"data":{
"difficulty":2,
"difficultyRaw":"0x2",
"extraData":"0xd883010a0f846765746888676f312e31372e35856c696e757800000000000000a044bdae3a2ea1b448875823f001c17798a92a66e081eeed8038665d5b8c1be210c37bf063d9fe1b50bea40e3ba5e0b133cec70956619246b5c54e000b40e52001",
"gasLimit":8000000,
"gasLimitRaw":"0x7a1200",
"gasUsed":128256,
"gasUsedRaw":"0x1f500",
"hash":"0xe90c312bc732ca0a55f471d583ca39b4609f12bc9b1b55511e005c38ddb1c6b7",
"logsBloom":"0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"miner":"0x0000000000000000000000000000000000000000",
"mixHash":"0x0000000000000000000000000000000000000000000000000000000000000000",
"nonce":0,
"nonceRaw":"0x0000000000000000",
"number":8944340,
"numberRaw":"0x887ad4",
"parentHash":"0x882b6a9e64bb3491789c4f3e343e05cbe155c7733b747d825419d36e8756ae22",
"receiptsRoot":"0x50997218ad9318df65d52bdc7834c05f069d85e0cc2a14eff2cc55471e07e2f2",
"sealFields":[
],
"sha3Uncles":"0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
"size":1469,
"sizeRaw":"0x5bd",
"stateRoot":"0xd638885b0fa17cdc9666956750077306343fab9c92672ff98197df5ed8172721",
"timestamp":1689745569,
"timestampRaw":"0x64b778a1",
"totalDifficulty":17595113,
"totalDifficultyRaw":"0x10c7ae9",
"transactions":[
{
"blockHash":"0xe90c312bc732ca0a55f471d583ca39b4609f12bc9b1b55511e005c38ddb1c6b7",
"blockNumber":8944340,
"blockNumberRaw":"0x887ad4",
"chainId":167,
"from":"0xaccdce2f13c79a3187602d186b3cb827d470bd53",
"gas":30000,
"gasPrice":10000000000000000,
"gasPriceRaw":"0x2386f26fc10000",
"gasRaw":"0x7530",
"hash":"0xce70d2b2ffec78c4eac978966a6ce4a40ff7d13170dabb19073fff9811c92951",
"input":"0xe8a786e9a291e7a68fe588a9",
"nonce":25168959,
"nonceRaw":"0x1800c3f",
"r":"0x6d9e3dc3b0c5dd793f9d865dcf18c08c12b719624e5bb61b3772bfccde7db5bb",
"s":"0x664f68ad069633b3dd6ba8d896ed4f3357d23d0283bfc9017ce218d6d0d5e113",
"to":"0xed6c3fd86fef8cf8435325677949bbe9e411cad9",
"transactionIndex":0,
"transactionIndexRaw":"0x0",
"v":370,
"value":180000000000000000000,
"valueRaw":"0x9c2007651b2500000"
},
{
"blockHash":"0xe90c312bc732ca0a55f471d583ca39b4609f12bc9b1b55511e005c38ddb1c6b7",
"blockNumber":8944340,
"blockNumberRaw":"0x887ad4",
"chainId":167,
"from":"0x1e2198cdf2fc606c35b9d6d3374194263e45a9d6",
"gas":30000,
"gasPrice":10000000000000000,
"gasPriceRaw":"0x2386f26fc10000",
"gasRaw":"0x7530",
"hash":"0xdd7d8de8d83cb57514a6ee4efb97de1545a42242436b0104871badfba4c6adc1",
"input":"0xe6b8b8e6888fe4b8ade5bf832de5b9b8e8bf90e5a4a7e8bdace79b982de59fbae7a180",
"nonce":35150344,
"nonceRaw":"0x2185a08",
"r":"0xe3d10b9d1b29f6d8bf10ec8feae1d6b82366c4ed747ed1a6fb14b7737914016b",
"s":"0x374da8821c7757e552b040c2aa6b8bdfd8527c15dc094ba1a020ad7ba380bdf0",
"to":"0x4901383376748c9445b7ec32eb7932bd1f00d8a5",
"transactionIndex":1,
"transactionIndexRaw":"0x1",
"v":369,
"value":23000000000000000000,
"valueRaw":"0x13f306a2409fc0000"
},
{
"blockHash":"0xe90c312bc732ca0a55f471d583ca39b4609f12bc9b1b55511e005c38ddb1c6b7",
"blockNumber":8944340,
"blockNumberRaw":"0x887ad4",
"chainId":167,
"from":"0xaccdce2f13c79a3187602d186b3cb827d470bd53",
"gas":30000,
"gasPrice":10000000000000000,
"gasPriceRaw":"0x2386f26fc10000",
"gasRaw":"0x7530",
"hash":"0xb58ffe3896f03703307e00213320133969ee6ddec987ff0f7210b0ee12948aa6",
"input":"0xe8a786e9a291e7a68fe588a9",
"nonce":25168960,
"nonceRaw":"0x1800c40",
"r":"0x8f721af249d91928e1cb3443ba5e98940be42deb32764b72c9acbb05551d840e",
"s":"0xcfbc2f446249c5b93a7365b8e7f9420684b8f252ca0e4f34c12f358f85f7cf0",
"to":"0x39cd7efa6831fb843d904e9b66889e3cc21a542a",
"transactionIndex":2,
"transactionIndexRaw":"0x2",
"v":370,
"value":192000000000000000000,
"valueRaw":"0xa688906bd8b000000"
},
{
"blockHash":"0xe90c312bc732ca0a55f471d583ca39b4609f12bc9b1b55511e005c38ddb1c6b7",
"blockNumber":8944340,
"blockNumberRaw":"0x887ad4",
"chainId":167,
"from":"0x1e2198cdf2fc606c35b9d6d3374194263e45a9d6",
"gas":30000,
"gasPrice":10000000000000000,
"gasPriceRaw":"0x2386f26fc10000",
"gasRaw":"0x7530",
"hash":"0xd43b91ba9bc4a74e9c1cd767db9fbcc2ee0af8220e79b922ea7183569ac28d39",
"input":"0xe6b8b8e6888fe4b8ade5bf832de5b9b8e8bf90e5a4a7e8bdace79b982de59fbae7a180",
"nonce":35150345,
"nonceRaw":"0x2185a09",
"r":"0xc5285d8ee583ccef71b0a9b676f8e9bd1b92a6a4401e7f0c741fb2ecf3be84e5",
"s":"0x275ed12fbfbc7ae7bd91d18e0d5e811be54926fa5dd57b938b26fef50adc73c3",
"to":"0x7548927f87d04303670c57deb666e6427697e359",
"transactionIndex":3,
"transactionIndexRaw":"0x3",
"v":369,
"value":23000000000000000000,
"valueRaw":"0x13f306a2409fc0000"
},
{
"blockHash":"0xe90c312bc732ca0a55f471d583ca39b4609f12bc9b1b55511e005c38ddb1c6b7",
"blockNumber":8944340,
"blockNumberRaw":"0x887ad4",
"chainId":167,
"from":"0x1e2198cdf2fc606c35b9d6d3374194263e45a9d6",
"gas":30000,
"gasPrice":10000000000000000,
"gasPriceRaw":"0x2386f26fc10000",
"gasRaw":"0x7530",
"hash":"0x56e2979d93c8b907ded14c1166bb5c538805ad3dd7973d61871c301ed918bfce",
"input":"0xe6b8b8e6888fe4b8ade5bf832de5b9b8e8bf90e5a4a7e8bdace79b982de59fbae7a180",
"nonce":35150346,
"nonceRaw":"0x2185a0a",
"r":"0x67f8a03565000e57c62af07b101725bd3d78c73647e2b7e173fd92c08e916e65",
"s":"0xa21c7985edcb218b69c6283303fc3c7016ea6fb1d3c15a09b1d753b5a9a5e6b",
"to":"0x4c0cd5dd198956ad55ed59e99b364921ba58af7e",
"transactionIndex":4,
"transactionIndexRaw":"0x4",
"v":370,
"value":23000000000000000000,
"valueRaw":"0x13f306a2409fc0000"
},
{
"blockHash":"0xe90c312bc732ca0a55f471d583ca39b4609f12bc9b1b55511e005c38ddb1c6b7",
"blockNumber":8944340,
"blockNumberRaw":"0x887ad4",
"chainId":167,
"from":"0xaccdce2f13c79a3187602d186b3cb827d470bd53",
"gas":30000,
"gasPrice":10000000000000000,
"gasPriceRaw":"0x2386f26fc10000",
"gasRaw":"0x7530",
"hash":"0xfe9315b435d987e02719fc5fe1e12313dd387ffcfd8bdf98f846355068d66315",
"input":"0xe8a786e9a291e7a68fe588a9",
"nonce":25168961,
"nonceRaw":"0x1800c41",
"r":"0x4b943e4d6c3244000930a1f2a18d775810a0bfc764356d4fc7972bf0ad8e0da",
"s":"0x41b35a4e0409e21913b47de9ce6a9649d93e3db7c924f95662d195ec268e7261",
"to":"0x7f726d95322be4cb966104ea7e7fe7434d6eb925",
"transactionIndex":5,
"transactionIndexRaw":"0x5",
"v":369,
"value":196000000000000000000,
"valueRaw":"0xaa00be18c28900000"
}
],
"transactionsRoot":"0x4d7d848f725df063f3c20301010c7044030f92dde8550a9426b9f5099bd7e3ae",
"uncles":[
]
}
}