announce leftannounce right

🐯 Start a Lunar New Year with Our Biggest Sale on Dedicated & Shared Nodes!

/

Huobi ECO Chain (HECO)

heco

Huobi ECO Chain (HECO)

Method: POST eth_getBlockByHash

dropdown
POST

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

curl --location --request POST 'https://heco.getblock.io/mainnet/' \
--header 'x-api-key: YOUR-API-KEY' \
--header 'Content-Type: application/json' \
--data-raw '{"jsonrpc": "2.0",
"method": "eth_getBlockByHash",
"params": ["0x779f94a2fad68383ed932e9f8fd04234a92b85f9d849bec2188c675dcdb0f16d", false],
"id": "getblock.io"}'


Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": {
        "difficulty": "0x2",
        "extraData": "0xd883010101846765746888676f312e31332e34856c696e7578000000000000004525254aaeda959630f52bb9252b30567f1adeffc0d4ee364158dd6a03e85915625ed4171eae813ba142b68644a4ecf964aa2c1689a3c87f14382a29925c717300",
        "gasLimit": "0x1c9c380",
        "gasUsed": "0x153d948",
        "hash": "0x779f94a2fad68383ed932e9f8fd04234a92b85f9d849bec2188c675dcdb0f16d",
        "logsBloom": "0x40650280062110054dba28009051b1510088820c67128341099280050aa820108204500065c120c0020604a1043128204a0501a80c1210008000090201270082104c0041a12108101610881b02800226420e20348804909c0088492a90900938158410080200d84069810a010c884800480403005410202018248e701818024000306020a000010800010540a005050011221d814003b10920448e408403282192d010211180400020238000528a2904284244e003bc00012503502081580000218414171407026bae0400e00049300a01588002c8000050868466001233605000100808a0004000003100808429840104054214ea8104404a040880a6605440",
        "miner": "0xb0660a58f97733636b7555162b62e0e83786f79c",
        "mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
        "nonce": "0x0000000000000000",
        "number": "0x62ccd5",
        "parentHash": "0x6fbea6f86d1a7eb969a86c174b1afa75969e7e6fc881d9331af3639381657b0e",
        "receiptsRoot": "0x90f0ed1e74878312a8590c022d113e4b4548b367754d1cff784f6f01537cdca1",
        "sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
        "size": "0x2dc8",
        "stateRoot": "0x99ea48cf581d54bb7494ba1b93819e45ba6fdacc5b64b884b747aa0ca5c04a0f",
        "timestamp": "0x60efa733",
        "totalDifficulty": "0xc572e5",
        "transactions": [
            "0xf32e8f9bbaaac3cc64cfd8547033435a56e830165c53369d9af9a205101f503b",
            "0xdae61f6b7cf8474fcaf8a17cffe29ae28662a069478ec3a9d3a681b461bd004d",
            "0x857191bdbd57e6829875f32f4ecb4614466aaa1732572e506d95f6a1955f88df",
            "0x82e37c00a2f680e1f4af2b8acef9da25dc21406ed46750e2fbc17305f84ed90d",
            "0xba5b4934c4d40342c24e508d05fcf25192d6748628ee0658724d650ff4fb6693",
            "0x1a4b97cd578b3b7520e10f00dea29ea4963286cc0355263e03bf4f5c5f0823d8",
            "0xb675f5f34413861f4fc2b91c49d0e3822fae240dcb7fe8916cd2c2501a5b6ef2",
            "0x156fec81a67ccba2fe252e3868ae3332b3b92441371968ccd1469cdc41a364f9"
        ],
        "transactionsRoot": "0xcd5df05251ee48dafeb5a87ab223589925b0e8ddfbd46e49f4b733fa2635dd45",
        "uncles": []
    }
}
close

Getblock

Spring Festival Sale!
Up to 50% Off.