USDT Wallet History v2

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 1 time · Bitquery API v2

What it returns

Filters

The query

query ($token: String) {
  EVM(network: eth, dataset: combined) {
    inbound: Transfers(
      limit: {count: 10}
      where: {Transfer: {Currency: {SmartContract: {is: $token}}, Receiver: {is: "0xf6e8516ce73c290f43dd32d57f7ba9056d62d244"}}}
    ) {
      Block {
        Time
        Number
      }
      Transfer {
        Amount
        Currency {
          Name
          Symbol
          SmartContract
        }
        Receiver
        Sender
      }
      Transaction {
        From
        Hash
        To
      }
    }
    outbound: Transfers(
      limit: {count: 10}
      where: {Transfer: {Currency: {SmartContract: {is: $token}}, Sender: {is: "0xf6e8516ce73c290f43dd32d57f7ba9056d62d244"}}}
    ) {
      Block {
        Time
        Number
      }
      Transfer {
        Amount
        Currency {
          Name
          Symbol
          SmartContract
        }
        Receiver
        Sender
      }
      Transaction {
        From
        Hash
        To
      }
    }
  }
}

Variables

{
  "token": "0xdac17f958d2ee523a2206206994597c13d831ec7"
}

Similar queries