development talk bitquery
Returns DEX trades by token on Base, where currency smart contract is 0x31ed…e831 and transaction hash is 0xeef4…eaef, sorted by block time: block time, block number, trade amount, price in USD, buyer, seller, currency symbol and 16 more fields.
What it returns
- block time
- block number
- trade amount
- price in USD
- buyer
- seller
- currency symbol
- smart contract
- currency name
- protocol name
- side amount
- side amount in USD
- side currency symbol
- side smart contract
- side buyer
- side seller
- side type
- amount in USD
- from
- transaction hash
- transaction type
- to
- success
Filters
- currency smart contract is 0x31ed…e831
- transaction hash is 0xeef4…eaef
The query
{
buybot_base: EVM(network: base) {
DEXTradeByTokens(
orderBy: {ascending: Block_Time}
where: {TransactionStatus: {Success: true}, Trade: {Currency: {SmartContract: {is:"0x31eda2dfd01c9c65385cce6099b24b06ef3ae831" }}}, Transaction: {Hash: {is: "0xeef4db5761905fb63e159abdac174d106671bd6cc2ba733345458ff8e6efeaef"}}}
) {
Block {
Time
Number
}
Trade {
Amount
PriceInUSD
Buyer
Seller
Currency {
Symbol
SmartContract
Name
}
Dex {
ProtocolName
SmartContract
}
Side {
Amount
AmountInUSD
Currency {
Symbol
SmartContract
}
Buyer
Seller
Type
}
Buyer
Seller
AmountInUSD
}
Transaction {
Maker: From
Hash
Type
To
}
TransactionStatus {
Success
}
}
}
}
Similar queries
- Coinbase stock tokens: DEX trading on Base, Sep 5 to Oct 4 2026 · Base · DEXTradeByTokens
- Coinbase stock tokens: DEX trading on Base in August 2026 · Base · DEXTradeByTokens
- optimized query to get pools data · Ethereum · DEXTradeByTokens
- AfricaCryptoChainx · Ethereum · DEXTradeByTokens
- top pools of a token · Base · DEXTradeByTokens