Share your feedback on Twitter and claim 5M Free GetBlock Requests

banner image
etc

Ethereum Classic

ETC

POST

GET

chevron-right

Last updated on January 1, 1970

6 min read

Method eth_getBlockByNumber Ethereum Classic (ETC)
connect with JSON-RPC protocol

eth_getBlockByNumber

info-circle-fill

Returns information about a block by block number.

Parameters

QUANTITY|TAG - string

Integer representing a block number or one of the string tags latest, earliest, or pending, as described in Block Parameter.

verbose - Boolean

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

Request

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

Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": {
        "difficulty": "0x11a85f2d724c0",
        "extraData": "0x657a696c2e6d65",
        "gasLimit": "0x96a324",
        "gasUsed": "0x92647",
        "hash": "0xbb50cb8d2d5698c1b10f1a845360ecf521ff18b08f71664a4639b6bdbb08fb38",
        "logsBloom": "0x00000000040000000000000000000100000000000100000000800800000000000000000000000000001000040000000000101000000000400000005000000010000100000000000000000000000000000000000000000000000000000000000000400000000000000000004080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000080000000000000000000080000000000010000000000000000000000000208000000000004000000000000000000000000000000001020000000000000000000000000000000000000000000000000000000000000000000000000080000",
        "miner": "0xb68ed353ea1421668483c46dc9b872aa09ef582a",
        "mixHash": "0xbfd0d3ea9f1784163d5baa89ca0e65749aa2371bb868a3e6d14c7f8fd795262e",
        "nonce": "0x4182ee1f71c2d7ba",
        "number": "0xcdf167",
        "parentHash": "0x2bd43d26217f9e6b6b91ba7e0f7b9db2b98c8fa12ebb5d673b090c4379eb6bb7",
        "receiptsRoot": "0x2073c879d7bad96c328d15619934880c5273d0c07bc42f94af0ed133bd1e4592",
        "sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
        "size": "0xe9e",
        "stateRoot": "0xcedf03d7df9ae5707a0bba93bdc4ce17485207254627efff695879c30f6f6fbf",
        "timestamp": "0x6139f68b",
        "totalDifficulty": "0x4ca722cd36ab8b5d6c",
        "transactions": [
            {
                "blockHash": "0xbb50cb8d2d5698c1b10f1a845360ecf521ff18b08f71664a4639b6bdbb08fb38",
                "blockNumber": "0xcdf167",
                "from": "0x7eb4c9d6b763324eea4852f5d40985bbf0f29832",
                "gas": "0x45948",
                "gasPrice": "0x4a817c800",
                "hash": "0x01736b023300e297e3b3c7c13ab5db49c7c0be768d48790f46dd7baeefa7b047",
                "input": "0xfe97ea430000000000000000000000007eb4c9d6b763324eea4852f5d40985bbf0f298320000000000000000000000000000000000000000000000000000000000000017000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000000160dfb255ad11a4d8d2a4a6e264b0b41baf04737047bde86bfe5e16f27244215400000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000",
                "nonce": "0x224",
                "publicKey": "0x117cad045ab4df03fb6f1d95578db1f5999cb0174af179057a60e2e273a3fbd0560dce36f6f0842d103783f36bb0eeb6ada6af915c0ee324d0c9d97fd8c22a87",
                "r": "0x524cf6e9af494c47972461c61dc1778ed7d55c72842f1d14110e46c586801bc6",
                "raw": "0xf9016d8202248504a817c80083045948943c42649799074b438889b80312ea9f62bc798aa880b90104fe97ea430000000000000000000000007eb4c9d6b763324eea4852f5d40985bbf0f298320000000000000000000000000000000000000000000000000000000000000017000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000000160dfb255ad11a4d8d2a4a6e264b0b41baf04737047bde86bfe5e16f272442154000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000001ba0524cf6e9af494c47972461c61dc1778ed7d55c72842f1d14110e46c586801bc6a01f8ff9dc5ab5a50b6add0238819e8b6a004af37833db025eadeb71510b4d2b45",
                "s": "0x1f8ff9dc5ab5a50b6add0238819e8b6a004af37833db025eadeb71510b4d2b45",
                "to": "0x3c42649799074b438889b80312ea9f62bc798aa8",
                "transactionIndex": "0x0",
                "v": "0x1b",
                "value": "0x0"
            },
            {
                "blockHash": "0xbb50cb8d2d5698c1b10f1a845360ecf521ff18b08f71664a4639b6bdbb08fb38",
                "blockNumber": "0xcdf167",
                "chainId": "0x3d",
                "from": "0xe428993c37915c29d5000e4af0a9e90dc143d107",
                "gas": "0x5208",
                "gasPrice": "0x3b9aca00",
                "hash": "0xb44030bd3481dc0b7416ac7958babb812c70147b9825494bc1091a921684e7c4",
                "input": "0x",
                "nonce": "0x19",
                "publicKey": "0x46cb362fc0c520c910a5592da53f642cb2818f52a2e62a2a420a4df003ec317ea375cfefbe0b827dc6bec490891b620666421b8bdc66f3bd712d6c4d38977b09",
                "r": "0xb3873184d99908bac95ccbfc3602ce13b38d98f1c785000d979c918e7ea973cb",
                "raw": "0xf86c19843b9aca00825208940d0707963952f2fba59dd06f2b425ace40b492fe8804c73765a57e3a8780819da0b3873184d99908bac95ccbfc3602ce13b38d98f1c785000d979c918e7ea973cba042b1493ffa0abc343db6a2aa1bd35e4dda0673ead005b9c14ae6310dcb053fa0",
                "s": "0x42b1493ffa0abc343db6a2aa1bd35e4dda0673ead005b9c14ae6310dcb053fa0",
                "to": "0x0d0707963952f2fba59dd06f2b425ace40b492fe",
                "transactionIndex": "0x14",
                "v": "0x9d",
                "value": "0x4c73765a57e3a87"
            }
        ],
        "transactionsRoot": "0x76d8e6043cb8560de2fa9fba75acfbd99987c54c74b52b3b82bc78d407e3dbde",
        "uncles": []
    }
}
banner icon

Start Building with GetBlock RPCs for Free