Skip to main content

Get blocks from time to time

Get blocks from time to time

Query Parameters
    from_time string required

    The start time in seconds or a time string ('YYYY-MM-DD hh:mm:ss')

    to_time string required

    The end time in seconds or a time string ('YYYY-MM-DD hh:mm:ss')

    cursor string

    The cursor returned in the previous response (used for getting the next page).

    limit number

    Number of items returned, default: 20

Responses

200 Returns the block number and corresponding date and timestamp


Schema
  • Array [
  • cursor string

    The cursor returned in the previous response (used for getting the next page)

    page number required

    Page of results

    limit number required

    Limit of results

    total_items number required

    Total returned result items

    data object[] required

    Blocks

  • Array [
  • size number required

    The block size

    difficulty number required

    The difficulty of the block

    total_difficulty number required

    The total difficulty

    block number required

    The block number

    hash string required

    hash

    parent_hash string required

    The block hash of the parent block

    nonce string required

    The nonce

    sha3_uncles string required

    sha3Uncles

    logs_bloom string required

    logsBloom

    transactions_root string required

    transactionsRoot

    state_root string required

    stateRoot

    receipts_root string required

    receiptsRoot

    miner string required

    The address of the miner

    extra_data string required

    extraData

    gas_limit number required

    The gas limit

    gas_used number required

    The gas used

    timestamp string required

    The timestamp of the block

    base_fee_per_gas number

    base fee per gas

  • ]
  • ]
Loading...