unlockEpoch: null) is required for use as a delegated stake backing.
All endpoints return the following response headers:
- X-Id — The node’s public key identifier
- X-Session-Token — The current cluster session token
- Request-Signature — Cryptographic signature of the response for verification
Building a valid token lock: Use
GET /token-locks/last-reference/{address} to retrieve the parent values before creating a new token lock. The parent.ordinal of a new lock must be lastOrdinal + 1.POST /token-locks
Submits a signed token lock transaction. If accepted, the lock enters the mempool and will be included in the next block, eventually appearing in a global snapshot.SignedTokenLock
The token lock transaction payload
Array of cryptographic signature proofs from the source address owner
200 OK
Hash of the accepted token lock transaction. Use this hash as
tokenLockRef when creating a delegated stake or node collateral on the Global L0.400 Bad Request
The token lock transaction was rejected.
Array of error cause objects with
message fields describing the rejection reasonGET /token-locks/
Returns the view of a token lock transaction currently in the L1 mempool. Once the transaction has been processed into a block and included in a global snapshot, this endpoint returns404.
The token lock transaction hash
200 OK
The full token lock data (see
TokenLock schema in POST /token-locks)The transaction hash
Current status in the mempool. Currently:
Waiting404 Not Found
No token lock with the given hash was found in the mempool. The transaction has either been processed into a block or was rejected.
GET /token-locks/last-reference/
Returns the last token lock reference for a given address. Call this before creating a new token lock to obtain the correctparent values.
DAG wallet address
200 OK
Ordinal of the last token lock transaction. Use
ordinal + 1 as the new lock’s parent ordinal.Hash of the last token lock transaction. Use as the new lock’s
parent.hash. Returns empty string "" if no prior token locks exist for this address.