USDT Transaction History V2Template

Use this API to get USDT transaction History from Ethereum blockchain.

Returns the latest transfers on Ethereum, where currency smart contract is 0xdac1…1ec7: transfer amount, sender, receiver, currency name, success, transaction hash and transaction type.

By Nikhil · saved 11 July 2023 · run 1 time · Bitquery API v2

What it returns

Filters

The query

# query returns latest transactions for erc20 token
# $token is erc 20 contract address

query ($token: String!) {
  EVM(network: eth, dataset: combined) {
    Transfers(
      where: {Transfer: {Currency: {SmartContract: {is: $token}}}}
      orderBy: {descending: Block_Time}
      limitBy: {by: Block_Time, count: 10}
    ) {
      Transfer {
        Amount
        Sender
        Receiver
        Currency {
          Name
        }
      }
      TransactionStatus {
        Success
      }
      Transaction {
        Hash
        Type
      }
    }
  }
}

Variables

{
  "token": "0xdac17f958d2ee523a2206206994597c13d831ec7"
}

Similar queries