Block
?module=block
Get block reward by block number
getblockreward
Returns the block reward and 'uncle' block rewards when applicable.
Example:
https://fonscan.io/api
?module=block
&action=getblockreward
&blockno={blockNumber}Parameter
Description
blockno
integer block number to check block rewards for eg. 2165403
Get block number by time stamp
getblocknobytime
Returns the block number created closest to a provided timestamp.
Example:
https://fonscan.io/api
?module=block
&action=getblocknobytime
×tamp={blockTimestamp}
&closest={before/after}Parameter
Description
timestamp
integer representing the Unix timestamp in seconds.
closest
closest block to the provided timestamp, either before or after.
Get the latest block number
eth_block_number
Mimics Ethereum JSON RPC's eth_blockNumber.
Example:
https://fonscan.io/api
?module=block
&action=eth_block_numberParameter
Description
id
optional nonnegative integer that represents the json rpc request id.
More on json rpc request id.
Last updated