getPairAddress
Returns one DEX trade by token on Ethereum, where DEX protocol name is uniswap_v3: smart contract, side smart contract, side decimals and decimals.
What it returns
- smart contract
- side smart contract
- side decimals
- decimals
Filters
- DEX protocol name is uniswap_v3
The query
query getPairAddress($dataset: dataset_arg_enum!, $network: evm_network!, $tokenAddress: String!, $sideTokenAddress: String!, $protocolName: String!) {
EVM(dataset: $dataset, network: $network) {
DEXTradeByTokens(
limit: {count: 1}
where: {Trade: {Dex: {ProtocolName: {is: $protocolName}}}, any: [{Trade: {Currency: {SmartContract: {is: $tokenAddress}}, Side: {Currency: {SmartContract: {is: $sideTokenAddress}}}}}, {Trade: {Currency: {SmartContract: {is: $sideTokenAddress}}, Side: {Currency: {SmartContract: {is: $tokenAddress}}}}}]}
) {
Trade {
Dex {
SmartContract
}
Side {
Currency {
SmartContract
Decimals
}
}
Currency {
Decimals
SmartContract
}
}
}
}
}
Variables
{
"dataset": "combined",
"network": "eth",
"tokenAddress": "0x6B175474E89094C44Da98b954EedeAC495271d0F",
"sideTokenAddress": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"protocolName": "uniswap_v3"
}
Similar queries
- CRV hourly OHLC on Curve - Ethereum · Ethereum · DEXTradeByTokens
- Top Metric liquidity pools by 24h volume on Ethereum · Ethereum · DEXTradeByTokens
- ATH of eth token · Ethereum · DEXTradeByTokens
- historical price and historical volume · Ethereum · DEXTradeByTokens
- topTraders EVM · Ethereum · DEXTradeByTokens