USDT Wallet History v1

Get transaction history for a wallet for USDT tokens on the Ethereum network usng this API. It provides data on tranasctions made from that wallet to other wallets, amount of transaction and transaction fees for those transactions. We will use our Transfer API to get USDT transactions.

By Nikhil · saved 10 July 2023 · run 7 times · Bitquery API v1

What it returns

Filters

The query

#this query retrieves wallet transfer history for given token. 
#replace token address in the token parameter
#and wallet address in address parameter
query ($token: String!) {
  ethereum(network: ethereum) {
    transfers(
      options: {desc: "block.timestamp.time", asc: "currency.symbol", limit: 10, offset: 0}
      date: {since: "2023-06-27", till: "2023-07-04T23:59:59"}
      amount: {gt: 0}
      receiver: {is: "0xf6e8516ce73c290f43dd32d57f7ba9056d62d244"}
      currency: {is: $token}
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      address: sender {
        address
        annotation
      }
      currency {
        address
        symbol
      }
      amount
      amount_usd: amount(in: USD)
      transaction {
        hash
      }
      external
    }
  }
}

Variables

{
  "token": "0xdac17f958d2ee523a2206206994597c13d831ec7"
}

Similar queries