Block

?module=block

https://quaiscan.io/api?module=block

Get block reward by block number

getblockreward

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

Example:

https://quaiscan.io/api
   ?module=block
   &action=getblockreward
   &blockno={blockNumber}
ParameterDescription

blockno

integer block number to check block rewards for eg. 2165403

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://quaiscan.io/api
   ?module=block
   &action=getblockcountdown
   &blockno={blockNumber}
ParameterDescription

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://quaiscan.io/api
   ?module=block
   &action=getblocknobytime
   &timestamp={blockTimestamp}
   &closest={before/after}
ParameterDescription

timestamp

integer representing the Unix timestamp in seconds.

closest

closest block to the provided timestamp, either before or after.

Note: How to convert date/time to a Unix timestamp.

Get the latest block number

quai_block_number

Mimics Quai Network JSON RPC's quai_blockNumber.

Example:

https://quaiscan.io/api
   ?module=block
   &action=quai_block_number
ParameterDescription

id

optional nonnegative integer that represents the json rpc request id.

More on json rpc request id.

Last updated