network details

Returns the latest DEX trade by token on BNB Chain, where currency smart contract is 0x44Ec…3e47: block time, block number, block hash, base fee, gas used, gas limit, transaction hash and 38 more fields.

By Sanai · saved 2 July 2025 · Bitquery API v2

What it returns

Filters

The query

query ($network: evm_network!, $address: String!) {
    EVM(network: $network, dataset: realtime) {
        DEXTradeByTokens(
            limit: {count: 1}
            orderBy: {descending: Block_Time}
            where: {Trade: {Currency: {SmartContract: {is: $address}}}}
        ) {
            # BLOCK INFORMATION
            Block {
                Time
                Number
                Hash
                BaseFee
                GasUsed
                GasLimit
            }
            
            # TRANSACTION DETAILS
            Transaction {
                Hash
                From
                To
                Gas
                GasPrice
                GasPriceInUSD
                Cost
                CostInUSD
                Nonce
                Index
            }
            
            # TRADE INFORMATION
            Trade {
                # Current Currency (Token)
                Currency {
                    Name
                    Symbol
                    SmartContract
                    Decimals
                    Fungible
                    HasURI
                }
                
                # Trade Metrics
                Amount
                AmountInUSD
                Price
                PriceInUSD
                
                # Trading Participants
                Buyer
                Seller
                Sender
                
                # Trade Side Details
                Side {
                    Amount
                    AmountInUSD
                    Currency {
                        Name
                        Symbol
                        SmartContract
                        Decimals
                    }
                    Type
                    Buyer
                    Seller
                }
                
                # DEX INFORMATION
                Dex {
                    ProtocolName
                    ProtocolFamily
                    ProtocolVersion
                    SmartContract
                    OwnerAddress
                }
                
                # Additional Trade Data
                Success
                Index
            }
            
            # NETWORK INFO
            ChainId
        }
    }
}

Variables

{
"network": "bsc",
"address": "0x44Ec807ce2F4a6F2737A92e985f318d035883e47"
}

Similar queries