ripple balances

Returns one transfer on XRP Ledger, where sender is rMZdHB…uwih, receiver is rMZdHB…uwih and currency from symbol is XRP, sorted by height, highest first: amount from, amount to, height and timestamp time.

By gaurav · saved 28 November 2025 · run 3 times · Bitquery API v1

What it returns

Filters

The query

query RippleQuery($targetTime: ISO8601DateTime, $walletAddress: String) {
  ripple {
    sent: transfers(
      currencyFromSymbol: {is: "XRP"}
      time: {till: $targetTime}
      sender: {is: $walletAddress}
    ) {
      amountFrom(calculate: sum)
    }
    received: transfers(
      currencyToSymbol: {is: "XRP"}
      time: {till: $targetTime}
      receiver: {is: $walletAddress}
    ) {
      amountTo(calculate: sum)
    }
    block: blocks(time: {till: $targetTime}, options: {desc: "height", limit: 1}) {
      height
      timestamp {
        time(format: "%Y-%m-%d %H:%M:%S")
      }
    }
  }
}

Variables

{
  "targetTime": "2025-08-31T16:00:00Z",
  "walletAddress": "rMZdHB6uHvAEPzzKdsWYyhgyLkhFNjuwih"
}

Similar queries