Realtime Uniswap v1 Uniswap v2 Uniswap V3 Trades
All versions
Returns DEX trades on Base, where DEX protocol name is uniswap_v3, uniswap_v2 or 1 more: block number, block time, from, to, transaction hash, delegated, delegated to and 21 more fields.
What it returns
- block number
- block time
- from
- to
- transaction hash
- delegated
- delegated to
- owner address
- decimals
- pair name
- smart contract
- protocol family
- protocol name
- protocol version
- buy amount
- buy buyer
- buy currency name
- buy currency symbol
- buy smart contract
- buy seller
- buy price
- sell amount
- sell buyer
- sell currency name
- sell smart contract
- sell currency symbol
- sell seller
- sell price
Filters
- DEX protocol name is uniswap_v3, uniswap_v2 or 1 more
The query
# Historical data
# This query uses the realtime dataset (the default), which holds only a
# recent window - hours to days depending on the cube.
#
# For older data add a dataset to the top-level element:
#
# EVM(network: base, dataset: combined)
#
# archive full history
# combined archive + realtime in one result
#
# Archive and combined need the historical data add-on:
# https://bitquery.io/pricing
#
# Datasets: https://docs.bitquery.io/docs/graphql/dataset/archive/
# Retention: https://docs.bitquery.io/docs/graphql/data-coverage-retention/
#
query {
EVM(network: base) {
DEXTrades(where: {Trade: {Dex: {ProtocolName: {in:["uniswap_v3","uniswap_v2","uniswap_v1"]}}}}) {
Block {
Number
Time
}
Transaction {
From
To
Hash
}
Trade {
Dex {
Delegated
DelegatedTo
OwnerAddress
Pair {
Decimals
Name
SmartContract
}
ProtocolFamily
ProtocolName
ProtocolVersion
SmartContract
}
Buy {
Amount
Buyer
Currency {
Name
Symbol
SmartContract
}
Seller
Price
}
Sell {
Amount
Buyer
Currency {
Name
SmartContract
Symbol
}
Seller
Price
}
}
}
}
}
Similar queries
- Zora Trades For A Wallet Up To A Block · Base · DEXTrades
- dex_trade_by_tx_base · Base · DEXTrades
- base dextrades · Base · DEXTrades
- trades · Ethereum · DEXTrades
- base_aerodrome_slipstream · Base · DEXTrades