Skip to main content
Version: master

Query data

Inside Desmos it is possible to query data in 4 different ways:

  1. With the CLI directly from terminal.
  2. With the REST endpoint directly from a full node.
  3. With the gRPC endpoint directly from a full node.
  4. With GraphQL.

CLI

To query data using CLI, you can check the following commands of each module:

gRPC

To query data using the gRPC endpoint, you can use the following endpoints:

  1. Testnet gRPC endpoint
  2. Mainnet gRPC endpoint

The above endpoints can be combined with the following endpoints to get the desired data:

REST

TO query data using the REST endpoint, you can use the following endpoints:

  1. Testnet REST endpoint
  2. Mainnet REST endpoint

The above endpoints can be used with the following endpoints to get the desired data:

GQL

Another way to query the Desmos data is GQL. GQL is different from the above methods because it offers high possibilities of customisation for developers based on their needs. It is possible to interact with GQL endpoints in the client you are building by using one of the many libraries available for this kind of interaction. You can check what suits your needs here: GraphQL resources.

The GQL endpoints for Desmos chains are the following:

  1. Testnet GQL endpoint
  2. Mainnet GQL endpoint