poolTest
Returns 10 DEX trades on Ethereum, where buy currency smart contract is 0xC02a…6Cc2 or 0xA0b8…eB48, sell currency smart contract is 0xC02a…6Cc2 or 0xA0b8…eB48 and DEX protocol name is uniswap_v2: smart contract, protocol name, protocol version, buy currency name, buy currency symbol, buy smart contract, sell currency name and 3 more fields.
What it returns
- smart contract
- protocol name
- protocol version
- buy currency name
- buy currency symbol
- buy smart contract
- sell currency name
- sell currency symbol
- sell smart contract
- chain ID
Filters
- buy currency smart contract is 0xC02a…6Cc2 or 0xA0b8…eB48
- sell currency smart contract is 0xC02a…6Cc2 or 0xA0b8…eB48
- DEX protocol name is uniswap_v2
The query
query PoolsWithTokens($chain: evm_network, $protocolName: String) {
EVM(dataset: combined, network: $chain) {
DEXTrades(
limit: {count: 10}
where: {
Trade: {Buy: {Currency: {SmartContract: {in: ["0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2", "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"]}}}, Sell: {Currency: {SmartContract: {in: ["0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2", "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"]}}},
Dex: {ProtocolName: {is: $protocolName}}
}
}
limitBy: {by: Trade_Dex_SmartContract, count: 1}
) {
Trade {
PoolData: Dex {
PoolAddress: SmartContract
ProtocolName
ProtocolVersion
}
Token1: Buy {
Currency {
Name
Symbol
SmartContract
}
}
Token2: Sell {
Currency {
Name
Symbol
SmartContract
}
}
}
ChainId
}
}
}
Variables
{
"chain": "eth",
"protocolName": "uniswap_v2"
}
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