All token swaps for a given address

Returns the latest DEX trades on Ethereum and BNB Chain, where tx sender is 0x0fEd…2Ad8: transaction hash, address address, contract type, currency name, trade index, date date, block height and 10 more fields.

By gaurav · saved 13 October 2021 · run 1 time · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    dexTrades(
      options: { desc: "block.height"}
      txSender: {is: "0x0fEd08B40D64e28AdB4728031153D65fB57B2Ad8"}
    ) {
      transaction {
        hash
      }
      smartContract {
        address {
          address
        }
        contractType
        currency {
          name
        }
      }
      tradeIndex
      date {
        date
      }
      block {
        height
      }
      buyAmount
      buyAmountInUsd: buyAmount(in: USD)
      buyCurrency {
        symbol
        address
      }
      sellAmount
      sellAmountInUsd: sellAmount(in: USD)
      sellCurrency {
        symbol
        address
      }
      sellAmountInUsd: sellAmount(in: USD)
      tradeAmount(in: USD)
      transaction {
        gasValue
        gasPrice
        gas
      }
    }
  }
}

Similar queries