Skip to main content
Token locks are DAG tokens locked on-chain for a specified or indefinite period. The Global L0 node tracks the state of all active token locks and exposes them through this endpoint. Token locks are created via the DAG L1 API and serve as the backing mechanism for delegated stakes and node collateral.
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

GET /token-locks

Returns all active token locks for a given address, as recorded in the latest global snapshot.
curl "https://<node-host>:9000/token-locks?address=DAG3hZTBgtb2iH9ZdLNvaKqPT4ZncCuW6uYxZack"
address
string
required
The DAG wallet address to query for active token locks
Response 200 OK Returns an array of TokenLock objects.
[]
array
Array of active token lock objects
Example response:
[
  {
    "source": "DAG3hZTBgtb2iH9ZdLNvaKqPT4ZncCuW6uYxZack",
    "amount": 25000000000,
    "fee": 0,
    "parent": {
      "ordinal": 0,
      "hash": ""
    },
    "currencyId": null,
    "unlockEpoch": null,
    "replaceTokenLockRef": null
  }
]
Response 503 Service Unavailable Node is not in Ready state.

Build docs developers (and LLMs) love