Skip to main content
The Currency Metagraph L0 node exposes a public API that is structurally similar to the Global L0 node but operates at the metagraph level. Each metagraph runs its own L0 consensus to produce CurrencyIncrementalSnapshot objects, which are then submitted to the Global L0 for inclusion in global snapshots.
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

Base URL

The Currency L0 API typically runs on port 9200 (metagraph nodes may use different ports depending on deployment configuration).
https://<metagraph-l0-host>:9200

Cluster Endpoints

The cluster endpoints behave identically to the Global L0 cluster API but return peers in the metagraph’s own L0 cluster.

GET /cluster/info

Returns a list of peers in the metagraph L0 cluster.
curl https://<metagraph-l0-host>:9200/cluster/info
Same response schema as Global L0 GET /cluster/info.

GET /cluster/session

Returns the current cluster session token for the metagraph L0 cluster.
curl https://<metagraph-l0-host>:9200/cluster/session

Snapshot Endpoints

The currency L0 snapshot endpoints mirror the Global L0 snapshot endpoints but return CurrencyIncrementalSnapshot objects instead of GlobalIncrementalSnapshot.

GET /snapshots/latest/ordinal

Returns the ordinal of the latest metagraph snapshot.
curl https://<metagraph-l0-host>:9200/snapshots/latest/ordinal
Response 200 OK
value
integer
The ordinal number of the latest currency snapshot
Response 404 Not Found — No snapshot available yet. Response 503 Service Unavailable — Node not ready.

GET /snapshots/latest

Returns the full latest currency snapshot, signed by the metagraph facilitators. Supports both JSON and binary (application/octet-stream) response formats.
curl https://<metagraph-l0-host>:9200/snapshots/latest
Response 200 OK — Returns a SignedCurrencyIncrementalSnapshot.
value
object
The currency snapshot data
proofs
array
Cryptographic proofs from metagraph facilitator nodes

GET /snapshots/latest/combined

Returns the latest currency snapshot combined with its full computed state.
curl https://<metagraph-l0-host>:9200/snapshots/latest/combined
Response 200 OK — Returns a SignedCurrencyIncrementalSnapshotCombined (snapshot + state pair).

GET /snapshots/

Returns a specific currency snapshot by ordinal.
curl https://<metagraph-l0-host>:9200/snapshots/1234
ordinal
integer
required
The snapshot ordinal to retrieve

Currency Token Endpoints

The currency L0 node exposes token supply and balance endpoints for the metagraph’s native token.

GET /currency/total-supply

Returns the total supply of the metagraph’s native currency token.
curl https://<metagraph-l0-host>:9200/currency/total-supply
Response 200 OK
total
integer
Total token supply in the smallest unit
ordinal
integer
Snapshot ordinal at which this supply was calculated

GET /currency//balance

Returns the currency token balance for a given wallet address.
curl https://<metagraph-l0-host>:9200/currency/DAG3hZTBgtb2iH9ZdLNvaKqPT4ZncCuW6uYxZack/balance
address
string
required
The wallet address to query
Response 200 OK
balance
integer
Token balance in the smallest unit
ordinal
integer
Snapshot ordinal at which this balance was recorded

Transaction Error Lookup

GET /transactions//errors

Returns validation errors for a transaction that was rejected during metagraph processing. This endpoint is unique to the Currency L0 API.
curl https://<metagraph-l0-host>:9200/transactions/a1b2c3d4e5f6.../errors
hash
string
required
Transaction hash to look up validation errors for
Response 200 OK
message
string
Human-readable description of the validation error
Response 404 Not Found — No error record found for this transaction hash. Response 503 Service Unavailable — Node not ready.

Metrics

GET /metrics

Returns Micrometer Prometheus metrics for the currency L0 node.
curl https://<metagraph-l0-host>:9200/metrics
Same format as Global L0 GET /metrics.

Key Differences from Global L0

FeatureGlobal L0Currency L0
Snapshot typeGlobalIncrementalSnapshotCurrencyIncrementalSnapshot
Snapshot path prefix/global-snapshots/snapshots
Token endpoints/dag/.../currency/...
State channel snapshotsYes (from all metagraphs)No
Custom data fieldNoYes (data byte array)
Delegated stakesYesNo
Node collateralYesNo
Transaction errors endpointNoYes (/transactions/{hash}/errors)

Build docs developers (and LLMs) love