Fetch all pairs

Execution

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

Query

Get all pairs with their token names, block number and the timestamp they were created at.

{
  pairs {
    tokenA {
      name
    }
    tokenB {
      name
    }
    createdAtBlock
    createdAtTimestamp
  }
}

Response Type

{
  data {
    pairs: [
      {
        tokenA {
          name: string
        }
        tokenB {
          name: string
        }
        createdAtBlock: BigInt
        createdAtTimestamp: BigInt
      }
    ]
  }
}

Last updated