fuse

Fuse.io (FUSE)

Method: POST eth_getBlockByNumber

dropdown
POST

eth_getBlockByNumber

Returns information about a block by block number.

Parameters

QUANTITY|TAG - integer or string

block number or "latest", "earliest" or "pending"

Boolean - Boolean

If true it returns the full transaction objects, if false only the hashes of the transactions.

Request

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


Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": {
        "author": "0x4b4eb02f6abd19533b7080759ef28fa9f75cdba8",
        "difficulty": "0xfffffffffffffffffffffffffffffffd",
        "extraData": "0xde8302050d8f5061726974792d457468657265756d86312e34302e30826c69",
        "gasLimit": "0x989680",
        "gasUsed": "0x21caa",
        "hash": "0xaf5f5537913aca3b6727a5a95371a860f5d018fdbb3690121e076e888be2e51a",
        "logsBloom": "0x00000000000000200000002000000000000000000000008000000000000000000000000020000000000000000000000000000000000000a000000000000000000000000080000000000000080000000000000000000000000000000000001000000000000000000000000000800000000000000000000000000000100000000000000000000000020020000c0000000000000000200000000000000000000000800000100000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000001000080000000000000000000000000000000000000",
        "miner": "0x4b4eb02f6abd19533b7080759ef28fa9f75cdba8",
        "number": "0xc6e69d",
        "parentHash": "0xac996511bf0dd0214a05f859b1de41f3715a8177772d1ffc2e7feac96b620206",
        "receiptsRoot": "0x227ab81ed04304d9e93d44fae5c6bc66c753988ffcaa8742c835f948bf6b63c0",
        "sealFields": [
            "0x841374dbc6",
            "0xb841027f461f225cf93dff96e7bf8b06a4f57541298a80a2d49688e23945d1439edf755f34d175a6e393d5cdd09781cea1058f902b045bf1c01186d54310b489a7f901"
        ],
        "sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
        "signature": "027f461f225cf93dff96e7bf8b06a4f57541298a80a2d49688e23945d1439edf755f34d175a6e393d5cdd09781cea1058f902b045bf1c01186d54310b489a7f901",
        "size": "0x2bc",
        "stateRoot": "0x9559e642aa8ddfef7e2f3d1fee37e9cc266d36657465df7daf997c1e84a3203e",
        "step": "326425542",
        "timestamp": "0x61484ade",
        "totalDifficulty": "0xc6e69cffffffffffffffffffffffffebc63d9d",
        "transactions": [
            "0x2cfc09abdca69650eb8afbb4a2c75ada99879b7cc1f249193d86b978dbee7f4c"
        ],
        "transactionsRoot": "0x5dd203eb528b6be77a281600033a32aa03047b31cbe96f1d5b92e180e4d61812",
        "uncles": []
    }
}