inflow/outflow for tron wallet

Returns the latest 10 transfers on Tron, where receiver is TDqSqu…hSCf, sender is TDqSqu…hSCf and date since 2024-06-07: timestamp time, block height, sender address, annotation, currency address, currency symbol, token ID and 4 more fields.

By Divyasshree · saved 25 June 2024 · run 1 time · Bitquery API v1

What it returns

Filters

The query

query ($address: String!, $limit: Int!, $offset: Int!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  tron {
    inflow: transfers(
      options: {desc: "block.timestamp.time", asc: "currency.symbol", limit: $limit, offset: $offset}
      date: {since: $from, till: $till}
      amount: {gt: 0}
      receiver: {is: $address}
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      address: sender {
        address
        annotation
      }
      currency {
        address
        symbol
        tokenId
        tokenType
      }
      amount
      amount_usd: amount(in: USD)
      txHash
    }
    outflow: transfers(
      options: {desc: "block.timestamp.time", asc: "currency.symbol", limit: $limit, offset: $offset}
      date: {since: $from, till: $till}
      amount: {gt: 0}
      sender: {is: $address}
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      address: receiver {
        address
        annotation
      }
      currency {
        address
        symbol
        tokenId
        tokenType
      }
      amount
      amount_usd: amount(in: USD)
      txHash
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "address": "TDqSquXBgUCLYvYC4XZgrprLK589dkhSCf",
  "from": "2024-06-07",
  "till": "2024-06-14T23:59:59",
  "dateFormat": "%Y-%m-%d"
}

Similar queries