Get block number by time stamp
GET/?module=block&action=getblocknobytime
Get block number by time stamp
Request
Query Parameters
apiKey stringrequired
Example: pk_1234567890
module stringrequired
Possible values: [block
]
action stringrequired
Possible values: [getblocknobytime
]
timestamp integerrequired
Integer representing the Unix timestamp in seconds.
closest stringrequired
Possible values: [before
, after
]
Closest block to the provided timestamp, either before or after.
Responses
- 200
OK
- application/json
- Schema
- Example (from schema)
Schema
message string
result object
blockNumber string
status string
{
"message": "string",
"result": {
"blockNumber": "string"
},
"status": "string"
}
Loading...