blockpon2

Returns one DEX trade on Ethereum, where DEX smart contract is 0x11b8…97f6, block time since 2023-05-10 and block time till 2023-05-10, sorted by transaction index: protocol family, protocol name, sender, buy amount, buy buyer, buy currency name, buy smart contract and 11 more fields.

By Oluwatomisin · saved 11 May 2023 · run 1 time · Bitquery API v2

What it returns

Filters

The query

query ($pairAddress: String!, $network: evm_network!) {
EVM(network: $network, dataset: combined) {
DEXTrades(
where: {Trade: {Dex: {SmartContract: {is: $pairAddress}}}, Block: {Time: {since: "2023-05-10T10:32:11Z", till: "2023-05-10T10:33:11Z"}}}
limit: {count: 1}
orderBy: {ascending: Transaction_Index}
) {
Trade {
Dex {
ProtocolFamily
ProtocolName
}
Sender
Buy {
Amount
Buyer
Currency {
Name
SmartContract
Symbol
}
Price
Seller
}
Sell {
Amount
Buyer
Currency {
Name
Symbol
SmartContract
}
Price
Seller
}
}
Transaction {
Hash
}
}
}
}

Variables

{
"pairAddress": "0x11b815efb8f581194ae79006d24e0d814b7697f6",
"network": "eth",
"since": "2023-05-10T10:32:11Z",
"till": "2023-05-10T10:33:11Z"
}

Similar queries