trc

Returns 10 transfers on Tron, where date since 2025-01-19, date till 2025-01-26 and amount is above 0, sorted by count in count out, highest first: amount, count, contract type, currency address, currency symbol, token ID and token type.

By Tawhid · saved 26 January 2025 · Bitquery API v1

What it returns

Filters

The query

query ($address: String!, $from: ISO8601DateTime, $till: ISO8601DateTime, $limit: Int!, $offset: Int!) {
  tron {
    transfers(
      date: {since: $from, till: $till}
      amount: {gt: 0}
      any: [{receiver: {is: $address}}, {sender: {is: $address}}]
      options: {limit: $limit, offset: $offset, desc: ["count_in", "count_out"], asc: "currency.symbol"}
    ) {
      sum_in: amount(calculate: sum, receiver: {is: $address})
      sum_in_usd: amount(in: USD, calculate: sum, receiver: {is: $address})
      sum_out: amount(calculate: sum, sender: {is: $address})
      sum_out_usd: amount(in: USD, calculate: sum, sender: {is: $address})
      count_in: count(receiver: {is: $address})
      count_out: count(sender: {is: $address})
      contractType
      currency {
        address
        symbol
        tokenId
        tokenType
      }
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "address": "TQbqtj2rZz88CFqJBMbG2wVpEVBPgsdf3i",
  "from": "2025-01-19",
  "till": "2025-01-26T23:59:59",
  "dateFormat": "%Y-%m-%d"
}

Similar queries