Tron data

Returns transfers and smart contract calls on Tron, where tx from is TBjErP…1FA8, address is TBjErP…1FA8 and date since 2000-01-01: fee, minimum of block, maximum of block, amount, count, currency name, currency symbol and balances value.

By gaurav · saved 3 October 2022 · run 14 times · Bitquery API v1

What it returns

Filters

The query

{
  tron(network: tron) {
    transfers(
      date: {since: "2000-01-01T00:00:00", till: "2022-10-03T10:10:31.544956"}
      any: [{receiver: {is: "TBjErPfMawukfjQ2xJuyp3B913Gr571FA8"}}, {sender: {is: "TBjErPfMawukfjQ2xJuyp3B913Gr571FA8"}}]
    ) {
      fee_ff: fee(calculate: sum, in: USD)
      first_transfer_at: minimum(of: block, get: time)
      last_transfer_at: maximum(of: block, get: time)
      receive_amount: amount(
        calculate: sum
        receiver: {is: "TBjErPfMawukfjQ2xJuyp3B913Gr571FA8"}
        currency: {is: "TRX"}
      )
      send_amount: amount(
        calculate: sum
        sender: {is: "TBjErPfMawukfjQ2xJuyp3B913Gr571FA8"}
        currency: {is: "TRX"}
      )
      receive_from_count: count(
        uniq: senders
        receiver: {is: "TBjErPfMawukfjQ2xJuyp3B913Gr571FA8"}
      )
      send_to_count: count(
        uniq: receivers
        sender: {is: "TBjErPfMawukfjQ2xJuyp3B913Gr571FA8"}
      )
      receive_from_currencies: count(
        uniq: currencies
        receiver: {is: "TBjErPfMawukfjQ2xJuyp3B913Gr571FA8"}
      )
      send_to_currencies: count(
        uniq: currencies
        sender: {is: "TBjErPfMawukfjQ2xJuyp3B913Gr571FA8"}
      )
      days_with_received: count(
        uniq: dates
        receiver: {is: "TBjErPfMawukfjQ2xJuyp3B913Gr571FA8"}
      )
      days_with_sent: count(
        uniq: dates
        sender: {is: "TBjErPfMawukfjQ2xJuyp3B913Gr571FA8"}
      )
      days_with_transfers: count(uniq: dates)
      send_tx_count: count(
        uniq: txs
        sender: {is: "TBjErPfMawukfjQ2xJuyp3B913Gr571FA8"}
      )
      receive_tx_count: count(
        uniq: txs
        receiver: {is: "TBjErPfMawukfjQ2xJuyp3B913Gr571FA8"}
      )
    }
    smartContractCalls(txFrom: {is: "TBjErPfMawukfjQ2xJuyp3B913Gr571FA8"}) {
      call_tx_count: count
      minimum(of: block, get: date)
    }
    balancedata: address(address: {is: "TBjErPfMawukfjQ2xJuyp3B913Gr571FA8"}) {
      balances(currency: {is: "TRX"}) {
        currency {
          name
          symbol
        }
        value
      }
    }
  }
}

Similar queries