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 transaction: Always call
GET /transactions/last-reference/{address} before constructing a new transaction to get the correct parent.hash and parent.ordinal. The new transaction’s parent ordinal must be exactly lastOrdinal + 1.Base URL
The Currency L1 API typically runs on port9300 (metagraph nodes may use different ports).
POST /transactions
Submits a signed metagraph currency transaction for processing.SignedTransaction
The currency transaction payload
Array of cryptographic signature proofs. Must be signed by the source address owner.
200 OK
Hash of the accepted transaction.
400 Bad Request
The transaction was rejected. Returns one of the following rejection reasons:
POST /transactions/estimate-fee
Estimates the fee for a signed currency transaction without submitting it.POST /transactions (SignedTransaction)
Response 200 OK
The estimated fee in the currency’s smallest unit
GET /transactions/
Returns the current view of a currency transaction in the L1 mempool.The transaction hash (hex-encoded SHA-256)
200 OK
The full transaction data
The transaction hash
Current status in the mempool. Currently:
Waiting400 Bad Request
No transaction with the given hash found in the mempool.
GET /transactions/last-reference/
Returns the last accepted currency transaction reference for a given address.Wallet address to query
200 OK
Ordinal of the last accepted currency transaction. Use
ordinal + 1 for the next transaction’s parent ordinal.Hash of the last accepted currency transaction. Returns empty string
"" if no prior transactions exist.Token Lock Endpoints
The Currency L1 node also supports token lock operations, identical to the DAG L1 Token Locks API.POST /token-locks
Submits a signed token lock transaction for the metagraph currency.POST /token-locks.
GET /token-locks/
Returns a token lock view from the currency L1 mempool.GET /token-locks/{hash}.
GET /token-locks/last-reference/
Returns the last token lock reference for use as a parent in new token lock requests.GET /token-locks/last-reference/{address}.