first 50 bsc
Returns 50 DEX trades on BNB Chain, where buy currency smart contract is 0xdc11…4444 and sell currency smart contract is 0xbb4C…095c, sorted by block time: block number, block time, transaction hash, buy buyer, buy currency symbol, buy smart contract, buy amount and 7 more fields.
What it returns
- block number
- block time
- transaction hash
- buy buyer
- buy currency symbol
- buy smart contract
- buy amount
- buy price
- sell currency symbol
- sell smart contract
- sell amount
- sell price
- sum of trade sell amount
- calculate
Filters
- buy currency smart contract is 0xdc11…4444
- sell currency smart contract is 0xbb4C…095c
The query
query FirstBuyersAndSpendUSD(
$token: String!,
$limit: Int = 50,
$usdExpr: String!
){
EVM(dataset: archive, network: bsc){
first_buyers: DEXTrades(
where:{
Trade:{
Buy: { Currency: { SmartContract: { is: $token } } }
Sell: { Currency: { SmartContract: { is: "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c" } } }
}
}
orderBy:{ ascendingByField: "Block_Time" }
limitBy:{ by: Trade_Buy_Buyer, count: 1 }
limit:{ count: $limit }
){
Block { Number Time }
Transaction { Hash }
Trade {
Buy {
Buyer
Currency { Symbol SmartContract }
Amount
Price
}
Sell {
Currency { Symbol SmartContract }
Amount
Price
}
}
bnb_spent: sum(of: Trade_Sell_Amount)
usd_spent: calculate(expression: $usdExpr)
}
}
}
Variables
{
"token": "0xdc11726c4efa126cfe9614408cd310b22fe74444",
"limit": 50,
"usdExpr": "$bnb_spent * 1187.25"
}
Similar queries
- Latest DODO DEX swaps on BSC · BNB Chain · DEXTrades
- Top DODO liquidity pools by 24h volume on BSC · BNB Chain · DEXTrades
- trades · Ethereum · DEXTrades
- metric_v1_bsc · BNB Chain · DEXTrades
- bsc_tessera · BNB Chain · DEXTrades