Skip to main content

Metagraph APIs

Metagraph APIs are hosted on any metagraph that adheres to the Metagraph Token Standard or implements a custom data endpoint. The APIs described here are very similar to the Hypergraph APIs described in the previous section. The metagraph APIs consist of the Currency L0 API, Currency L1 API, and the Data L1 API. These APIs are hosted on individual metagraphs which may have their own rate limits or specific configurations required.

See Architecture for an overview of how these networks fit into the Constellation Network overall.

Currency L0 API

The Currency L0 API can be used to fetch metagraph snapshot chain information, view token supply and address balances, and submit metagraph snapshots.

You can connect directly to a network node by IP address and port, or by an endpoint provided to you by the metagraph network.

API Spec

Currency L1 API

The Currency L1 API is used primarily for sending metagraph token transactions which are then processed through the Global L0, Currency L0, and Global L0.

You can connect directly to a network node by IP address and port, or by an endpoint provided to you by the metagraph network.

API Spec

Base urlsโ€‹

Base urls or ip addresses will be provided by the metagraph network you wish to connect to.

Data L1 API

The Global L0 API can be used to fetch global snapshot information, view DAG supply and address balances, and submit metagraph (state channel) snapshots.

You can connect directly to a network node by IP address and port, or by an endpoint provided to you by the metagraph network.

API Spec

Base urlsโ€‹

Base urls or ip addresses will be provided by the metagraph network you wish to connect to.