USDT Transaction History Subscription Template

Use this API to get USDT transaction in real time from Ethereum blockchain.

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

By Nikhil · saved 7 July 2023 · run 3 times · Bitquery API v2

What it returns

Filters

The subscription

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

subscription ($token: String!) {
  EVM(network: eth) {
    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