RSK
POST
GET
Last updated on January 1, 1970
3 min read
Method eth_getBlockByHash undefined ()
connect with WS protocol
eth_getBlockByHash
Returns information about a block by hash.
Parameters
DATA
- string
Hash of a block.
Boolean
- Boolean
If true it returns the full transaction objects, if false only the hashes of the transactions.
Request
wscat -c wss://rsk.getblock.io/YOUR-API-KEY/mainnet/
# wait for connection and send the request body
{"jsonrpc": "2.0",
"method": "eth_getBlockByHash",
"params": ["0xf2a2b854721d4372474fc76cc13445a73369c0c334f4935c88bde3c310f28c9a", false],
"id": "getblock.io"}
Response
{
"id": "getblock.io",
"jsonrpc": "2.0",
"result": {
"bitcoinMergedMiningCoinbaseTransaction": "0x00000000000000801b7166e18eab15ccfc98fcaa0d3a02aee399ec2c1510a82305bc5dbc653c39f995b62e0000ffffffff04f67a2627000000001976a914536ffa992491508dca0354e52f32a3a7a679a53a88ac00000000000000002b6a2952534b424c4f434b3aed5dee214b9c87fc0a537f09a43dea0fa24572692dd1eccaee2ce72e003833b40000000000000000266a24b9e11b6d0884dc1a5c15703833afb41cc6ecb90034c3c7cf707245ab33f2bc674a1970560000000000000000266a24aa21a9ed06add201fab80d3059b99e01d1be9e4c3078c3706e8ec395085bc62e0cd0bd3400000000",
"bitcoinMergedMiningHeader": "0x04000020bdef3021fd9228d1d173128b68b5e64a53e748f822c608000000000000000000e55c6d2a8b93b683abe796452ddc0bdbc88fe9964b36b16b541ee2ee03cb2ccc03783f61e4480f17a8c69ef2",
"bitcoinMergedMiningMerkleProof": "0xf5ad51cfde2cce28a4a0bcd95843b61083d2b43aeb794feadac91d7ba0720b8c2fcb356ceef25bff76344c01b23f31c7cb50807cceabf7ed75008ae40b124c158b682c57170593b9d951fb714e2d70bb90b00adef2874464711fb7571dfde68c05d60dde4718d9855395609f019fd9ba5aac9ac5c550d3b27b07b4efbcca50177c5b4bc7cf1aba107e8f1a08ab591afcc105107724c9938f4e5eb7caff759dfc93ed8e8635bf79467e77bcf3c6a6b01c1b7a0dfeb03d247e2e9a6734def2971f8dc3135174dff6ebcc5bafac867460773c5b1857e3e0856d6f8afda269f6278e3b08498fc86b56b306610489b68c943b265f895d2a2488a9d0df65260b5ab1e05b037e0550015a05bd474ed6d8502f858e18d6b35800c80747b854b673d3ff562782a3815060df0f4da78a53b4e46681979e68cdbb34f384d8dfab822e89ad8a96b152f8cc19ab2e3602cb02d5be3ddc7152092d8647762ffcd4eaf710b98e43dee4b0b6516716979c8ba460f139cf95e7ee877582e869220e478a0af9a103d9",
"cumulativeDifficulty": "0x3ce8823f90c189bcc9",
"difficulty": "0x3ce8823f90c189bcc9",
"extraData": "0xce018c495249532d62613031656132",
"gasLimit": "0x67c280",
"gasUsed": "0x89679",
"hash": "0xf2a2b854721d4372474fc76cc13445a73369c0c334f4935c88bde3c310f28c9a",
"hashForMergedMining": "0xed5dee214b9c87fc0a537f09a43dea0fa24572692dd1eccaee2ce72e003833b4",
"logsBloom": "0x40000080000000000000101010000100000080008040000000000000400000000000000000010000000000000000201000000001000000108000000000200000000010800000080000000008050008000000000000000400000000200000000080040000020000002000000040000c000200000000011008000a001042000000000100800004008000000000000000c000000000000000000010001020000000020000080282400000080000000008000080000010400080040888000044000000020002000004020000001002008010000000000000000010000040002020000012414000002000002008000000800000000000140020008001000004001000",
"miner": "0x8afad2f417e5132ee983b74d28600c0dedcc3e07",
"minimumGasPrice": "0x387ee40",
"number": "0x3833b4",
"paidFees": "0x22980bac1af0",
"parentHash": "0xee273cd4b05b71fca2a84da3246cce4e256bc07057f18b8e0303d61bb6266d9e",
"receiptsRoot": "0xdbc9c439a9b3232d2f327d9b2b611ffd649d28e15cf081aa2cac23398c36a2e1",
"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
"size": "0x928",
"stateRoot": "0x8f6f1c6e65446022be77367f245274474e23a9023f8d2e11abab1edd80d30134",
"timestamp": "0x613f77f3",
"totalDifficulty": "0xddf285809e1d6b1b3cdf969",
"transactions": [
"0x9683445fc38c4c33a15a7bea1d6b35bbb90874b97136563e8faf036f884f77e0",
"0xe3671d57122d1db6361710a76b2300803f38df92520c8df7baf439489f231550",
"0xf1b1d43e9d4cecf3edb35858c2f769e2c03fa19a77a24e8ab35d9dbdd6df9f0a",
"0xc16454010ab91a359e9a958acb0a33a371c1517edfd6a8b723ce7e276a391f0f",
"0xfbf3459c6f72827cfe267f3050d04d6d782016a662644e439558641393af4f0f",
"0x71b64360a3c5bb1b7806e259cdae7b74a0f3e13f1b290dc89091cccb0bbd5ba1",
"0x263f817cf204c47f068b50cf18810aa99341d5ff343d41f786fe47f0b129842a"
],
"transactionsRoot": "0xb77bd65fb30451cc3822415723e1dd4dd488041ad2c724a39630d631bff5a08e",
"uncles": []
}
}
Start Building with GetBlock RPCs for Free
Previous
{ "overview": "Overview", "guides": "Guides", "get-started": "Get Started", "rpc-service": "Nodes Methods", "getblock-explorer": "Explorer API", "getblock-tracker": "Tracker API", "nodes-endpoints": "Nodes Endpoints" }
Next
{ "overview": "Overview", "guides": "Guides", "get-started": "Get Started", "rpc-service": "Nodes Methods", "getblock-explorer": "Explorer API", "getblock-tracker": "Tracker API", "nodes-endpoints": "Nodes Endpoints" }