USDT Transaction Tracking Template Subscription

Streams 10 transfers on Ethereum as they happen, where transfer sender is 0x4775…82aa, currency smart contract is 0xdAC1…1ec7 and transfer receiver is 0x4775…82aa: transfer amount, receiver, sender, currency name, smart contract, success, log index and 3 more fields.

By Divyasshree N · saved 7 July 2023 · Bitquery API v2

What it returns

Filters

The subscription

subscription ($network: evm_network!, $address: String!, $limit: Int!, $currency: String!) {
  EVM(network: $network) {
    outbound: Transfers(
      limit: {count: $limit}
      where: {Transfer: {Sender: {is: $address}, Currency: {SmartContract: {is: $currency}}}}
    ) {
      Transfer {
        Amount
        Receiver
        Sender
        Currency {
          Name
          SmartContract
        }
      }
      TransactionStatus {
        Success
      }
      Log {
        Index
        Signature {
          Signature
        }
      }
      Call {
        CallPath
        InternalCalls
      }
    }
    inbound: Transfers(
      limit: {count: $limit}
      where: {Transfer: {Receiver: {is: $address}, Currency: {SmartContract: {is: $currency}}}}
    ) {
      Transfer {
        Amount
        Receiver
        Sender
        Currency {
          Name
          SmartContract
        }
      }
      TransactionStatus {
        Success
      }
      Log {
        Index
        Signature {
          Signature
        }
      }
      Call {
        CallPath
        InternalCalls
      }
    }
  }
}

Variables

{
  "limit": 10,
  "network": "eth",
  "address": "0x477573f212a7bdd5f7c12889bd1ad0aa44fb82aa",
  "currency": "0xdAC17F958D2ee523a2206206994597C13D831ec7"
}

Similar queries