Skip to main content

Get block by hash, timestamp, block number range

GET 

/blocks

Get block by hash, timestamp, block number range

Request

Query Parameters

    hash string

    Block hash

    timestamp integer

    Block timestamp, get the block where it life span covers the input timestamp

    fromBlock integer

    Start block number, required if toBlock is present

    toBlock integer

    End block number, required if fromBlock is present

Responses

OK

Schema

    result

    object

    oneOf

    hash string
    number integer
    parentHash string
    transactions string[]
    nonce integer
    mixHash string
    logsBloom string
    stateRoot string
    transactionsRoot string
    receiptsRoot string
    coinbase string
    difficulty integer
    totalDifficulty integer
    extraData string
    size integer
    gasLimit integer
    gasUsed integer
    baseFeePerGas string
    timestamp integer
Loading...