Skip to content

Instantly share code, notes, and snippets.

@j2abro
Created April 17, 2022 12:50
Show Gist options
  • Save j2abro/d20a84b693afbf60819c69d4333ecfc1 to your computer and use it in GitHub Desktop.
Save j2abro/d20a84b693afbf60819c69d4333ecfc1 to your computer and use it in GitHub Desktop.
// Get the first Uniswap V2 pairs. Sorted, starting at zero. Get the next 1000 by setting skip to 1000
// https://thegraph.com/hosted-service/subgraph/uniswap/uniswap-v2
// https://api.thegraph.com/subgraphs/name/uniswap/uniswap-v2/graphql
{
pairs(first: 1000, skip: 0, orderBy: txCount, orderDirection: desc) {
id
txCount
volumeUSD
token0 {
id
symbol
name
decimals
}
token1 {
id
symbol
name
decimals
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment