Latest Flap.sh trades for a specific token
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: bsc, dataset: combined) archive full history combined archive + realtime in one result Ar
What it returns
- block time
- block number
- success
- signature name
- signature signature
- smart contract
- contract address
- burnt
- burnt in USD
- effective gas price
- effective gas price in USD
- gas refund
- miner reward
- miner reward in USD
- priority fee per gas
- priority fee per gas in USD
- savings
- savings in USD
- sender fee
- sender fee in USD
- from
- gas
- gas used
- internal calls
- to
- call value
- trade amount
- amount in USD
- buyer
- trade price
- price in USD
- seller
- sender
- uris
- fees amount
- payer
- recipient
- protocol name
- protocol family
- currency name
- currency symbol
- side amount
- side amount in USD
- side buyer
- side currency name
- side currency symbol
- side smart contract
- side ids
- side order ID
- side seller
- side type
- side uris
- transaction hash
Filters
- DEX smart contract is 0xe2ce…9de0
- side currency smart contract is 0x
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: bsc, 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/
#
{
EVM(dataset: realtime, network: bsc) {
DEXTradeByTokens(
limit: {count: 20}
where: {Trade: {Side: {Currency: {SmartContract: {is: "0x"}}}, Dex: {SmartContract: {is: "0xe2ce6ab80874fa9fa2aae65d277dd6b8e65c9de0"}}}}
) {
Block {
Time
Number
}
TransactionStatus {
Success
}
Log {
Signature {
Name
Signature
}
SmartContract
}
Receipt {
ContractAddress
}
Fee {
Burnt
BurntInUSD
EffectiveGasPrice
EffectiveGasPriceInUSD
GasRefund
MinerReward
MinerRewardInUSD
PriorityFeePerGas
PriorityFeePerGasInUSD
Savings
SavingsInUSD
SenderFee
SenderFeeInUSD
}
Call {
From
Gas
GasUsed
InternalCalls
Signature {
Name
Signature
}
To
Value
}
Trade {
Amount
AmountInUSD
Buyer
Price
PriceInUSD
Buyer
Seller
Sender
Success
URIs
Fees {
Amount
AmountInUSD
Payer
Recipient
}
Dex {
ProtocolName
ProtocolFamily
}
Currency {
Name
Symbol
SmartContract
}
Side {
Amount
AmountInUSD
Buyer
Currency {
Name
Symbol
SmartContract
}
Ids
OrderId
Seller
Type
URIs
}
}
Transaction {
Hash
From
To
}
}
}
}
Similar queries
- bStocks 3am: QQQB 30-day DEX volume · BNB Chain · DEXTradeByTokens
- bStocks 3am: tokenized Tesla 30-day volume · BNB Chain · DEXTradeByTokens
- bsc token ohlcv · BNB Chain · DEXTradeByTokens
- optimized query to get pools data · Ethereum · DEXTradeByTokens
- KTI_primeiros_trades · BNB Chain · DEXTradeByTokens