Get pools for a token [parameterised]
Returns DEX trades on Ethereum, where buy currency smart contract is 0x9609…1b2c: owner address, protocol family, protocol name, protocol version, smart contract, buy currency symbol, buy currency name and 4 more fields.
What it returns
- owner address
- protocol family
- protocol name
- protocol version
- smart contract
- buy currency symbol
- buy currency name
- buy smart contract
- sell currency symbol
- sell smart contract
- sell currency name
Filters
- buy currency smart contract is 0x9609…1b2c
The query
query ($network: evm_network, $token: String!) {
EVM(dataset: combined, network: $network) {
DEXTrades(
limitBy: {by: [Trade_Buy_Currency_SmartContract, Trade_Sell_Currency_SmartContract], count: 1}
where: {Trade: {Buy: {Currency: {SmartContract: {is: $token}}}}}
) {
Trade {
Dex {
OwnerAddress
ProtocolFamily
ProtocolName
ProtocolVersion
SmartContract
Pair {
SmartContract
}
}
Buy {
Currency {
Symbol
Name
SmartContract
}
}
Sell {
Currency {
Symbol
SmartContract
Name
}
}
}
}
}
}
Variables
{
"token": "0x9609b540e5dedddb147abbf9812ade06b1e61b2c",
"network": "eth"
}
Similar queries
- Latest Curve DEX swaps on Ethereum · Ethereum · DEXTrades
- Top Curve liquidity pools by 24h volume on Ethereum · Ethereum · DEXTrades
- STRN_TOKEN_MULTIPLE_DECIMALS_DEX_TRADES · Ethereum · DEXTrades
- USDT DECIMAL SHOWING 0 · Ethereum · DEXTrades
- Trades - 0xEE61159E8A72A08371c52D62c19Efd0C7914f917 · Ethereum · DEXTrades