Fetch all tokens

Execution

You can execute this query on our Optimism subgraph, here.

Query

Get all tokens present at least in one of our listed pairs with their ids (also their addresses), token names, decimals and symbols.

{
  tokens {
    id
    name
    symbol
    decimals
  }
}

Response

{
  data {
    tokens: [
      {
        id: ID
        name: string
        symbol: string
        decimals: Int
      }
    ]
  }
}

Last updated