Skip to content

Get timestamp by block height

Returns the timestamp of the requested block by block height.

ENDPOINT
GET https://aleo-mainnet.obscura.network/v1/<API_KEY>/block/{height}/timestamp
ENDPOINT
GET https://aleo-testnetbeta.obscura.network/v1/<API_KEY>/block/{height}/timestamp

Arguments

Parameter Type Required Description
height number Yes The height of the block whose timestamp is requested. Should be a nonnegative integer.

Response

Parameter Type Description
result string The timestamp of the requested block