trade_in_txn

Returns DEX trades on Ethereum and BNB Chain, where tx hash is 0x01bc…3e34: timestamp time, block height, trade index, protocol, full name, address address, annotation and 8 more fields.

By Omkar_BQ · saved 26 October 2024 · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $hash: String!) {
  ethereum(network: $network) {
    dexTrades(
      txHash: {is: $hash}
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      tradeIndex
      protocol
      exchange {
        fullName
      }
      smartContract {
        address {
          address
          annotation
        }
      }
      buyAmount
      buyCurrency {
        address
        name
        symbol
      }
      sellAmount
      sellCurrency {
        address
        symbol
        name
      }
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "bsc",
  "hash": "0x01bc8c71edf3758354ec4470a778a298d692e9fd5e4ce46f9860a89305fc3e34"
}

Similar queries