Skip to main content
GET
Get Block Number by Timestamp

Query Parameters

module
enum<string>
required

Module name (must be 'block')

Available options:
block
action
enum<string>
required
Available options:
getblocknobytime
timestamp
integer
required

Unix timestamp

closest
enum<string>
required

Direction to search (before or after timestamp)

Available options:
before,
after

Response

200 - application/json

Block number retrieved successfully

status
enum<string>

Status code (1 = OK)

Available options:
1
message
string

Response message

Example:

"OK"

result
object