ripple_address_stats

Returns transfers on XRP Ledger, where date since 2000-01-01 and date till 2023-03-23: minimum of block, maximum of block, amount to, amount from and count.

By UppsalaBitqueryDev · saved 23 March 2023 · run 13 times · Bitquery API v1

What it returns

Filters

The query

{
  ripple(network: ripple) {
    transfers(
      date: {since: "2000-01-01T00:00:00", till: "2023-03-23T10:56:42.591478"}
      any: [{receiver: {is: "rHzKtpcB1KC1YuU4PBhk9m2abqrf2kZsfV"}}, {sender: {is: "rHzKtpcB1KC1YuU4PBhk9m2abqrf2kZsfV"}}]
    ) {
      first_transfer_at: minimum(of: block, get: time)
      last_transfer_at: maximum(of: block, get: time)
      receive_amount: amountTo(
        calculate: sum
        receiver: {is: "rHzKtpcB1KC1YuU4PBhk9m2abqrf2kZsfV"}
        currencyToSymbol: {is: "xrp"}
      )
      send_amount: amountFrom(
        calculate: sum
        sender: {is: "rHzKtpcB1KC1YuU4PBhk9m2abqrf2kZsfV"}
        currencyFromSymbol: {is: "xrp"}
      )
      receive_from_count: count(
        uniq: senders
        receiver: {is: "rHzKtpcB1KC1YuU4PBhk9m2abqrf2kZsfV"}
      )
      send_to_count: count(
        uniq: receivers
        sender: {is: "rHzKtpcB1KC1YuU4PBhk9m2abqrf2kZsfV"}
      )
      receive_from_currencies: count(
        uniq: currencyFromNames
        receiver: {is: "rHzKtpcB1KC1YuU4PBhk9m2abqrf2kZsfV"}
      )
      send_to_currencies: count(
        uniq: currencyToNames
        sender: {is: "rHzKtpcB1KC1YuU4PBhk9m2abqrf2kZsfV"}
      )
      days_with_received: count(
        uniq: dates
        receiver: {is: "rHzKtpcB1KC1YuU4PBhk9m2abqrf2kZsfV"}
      )
      days_with_sent: count(
        uniq: dates
        sender: {is: "rHzKtpcB1KC1YuU4PBhk9m2abqrf2kZsfV"}
      )
      days_with_transfers: count(uniq: dates)
      send_tx_count: count(
        uniq: transactionHashes
        sender: {is: "rHzKtpcB1KC1YuU4PBhk9m2abqrf2kZsfV"}
      )
      receive_tx_count: count(
        uniq: transactionHashes
        receiver: {is: "rHzKtpcB1KC1YuU4PBhk9m2abqrf2kZsfV"}
      )
    }
  }
}

Similar queries