Block

?module=block

https://instance_base_url/api?module=block

Get block reward by block number

getblockreward

Returns the block reward and 'uncle' block rewards when applicable.

Example:

https://instance_base_url/api
   ?module=block
   &action=getblockreward
   &blockno={blockNumber}

Get estimated block countdown time by block number

getblockcountdown

Returns the estimated time remaining, in seconds, until a certain block is included in blockchain.

Example:

https://instance_base_url/api
   ?module=block
   &action=getblockcountdown
   &blockno={blockNumber}

Get block number by time stamp

getblocknobytime

Returns the block number created closest to a provided timestamp.

Example:

https://instance_base_url/api
   ?module=block
   &action=getblocknobytime
   &timestamp={blockTimestamp}
   &closest={before/after}

Get the latest block number

eth_block_number

Mimics Ethereum JSON RPC's eth_blockNumber.

Example:

https://instance_base_url/api
   ?module=block
   &action=eth_block_number

Last updated

Logo

Copyright © Blockscout Limited 2023-2024