Returns the timestamp offset. Timestamp offsets can only be set in dev mode.
get
Gets the current timestamp offset.
Authorizations
Responses
200
Response containing the timestamp offset in seconds
application/json
400
TimeStamp offset not set.
application/json
default
Unknown Error
get
GET /v2/devmode/blocks/offset HTTP/1.1
Host: algo.nownodes.io
X-Algo-API-Token: YOUR_API_KEY
Accept: */*
{
"offset": 1
}
Given a timestamp offset in seconds, adds the offset to every subsequent block header's timestamp.
post
Sets the timestamp offset (seconds) for blocks in dev mode. Providing an offset of 0 will unset this value and try to use the real clock for the timestamp.
Authorizations
Path parameters
offsetintegerRequired
The timestamp offset for blocks in dev mode.
Responses
200
OK
400
Cannot set timestamp offset to a negative integer.
application/json
401
Invalid API Token
application/json
500
Internal Error
application/json
default
Unknown Error
post
POST /v2/devmode/blocks/offset/{offset} HTTP/1.1
Host: algo.nownodes.io
X-Algo-API-Token: YOUR_API_KEY
Accept: */*