USDT Transaction History Template V2

Returns 10 transfers on Ethereum, where currency smart contract is 0xdac1…1ec7, block time since 2023-06-27 and block time till 2023-07-04: transfer amount, sender, receiver, currency name, success, transaction hash and transaction type.

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

What it returns

Filters

The query

query ($network: evm_network!, $address: String!, $limit: Int!,  $from: DateTime, $till: DateTime) {
  EVM(network: $network, dataset: combined) {
    Transfers(
      limit: {count: $limit}
      where: {Block: {Time: {since: $from, till: $till}}, Transfer: {Currency: {SmartContract: {is: $address}}}}
    ) {
      Transfer {
        Amount
        Sender
        Receiver
        Currency {
          Name
        }
      }
      TransactionStatus {
        Success
      }
      Transaction {
        Hash
        Type
      }
    }
  }
}

Variables

{
  "limit": 10,
  "network": "eth",
  "address": "0xdac17f958d2ee523a2206206994597c13d831ec7",
  "from": "2023-06-27T00:00:00Z",
  "till": "2023-07-04T23:59:59Z",
  "dateFormat": "%Y-%m-%d"
}

Similar queries