XRP queries corrected

test case

Returns 5 transfers on XRP Ledger, where sender is rJn2zA…apQh, receiver is rMvCas…gQ8G and date since 2023-06-01, sorted by amount from: timestamp time, block, amount from, amount to, currency from address, currency from name, currency from symbol and 9 more fields.

By Aleksey · saved 19 September 2023 · Bitquery API v1

What it returns

Filters

The query

query ($network: RippleNetwork!, $limit: Int!, $offset: Int!, $from: ISO8601DateTime, $till: ISO8601DateTime, $sender: String!, $receiver: String!) {
  ripple(network: $network) {
    transfers(
      options: {asc: "amountFrom", limit: $limit, offset: $offset}
      date: {since: $from, till: $till}
      sender: {is: $sender}
      receiver: {is: $receiver}
    ) {
      timestamp {
        time
      }
      block
      amountFrom
      amount_from_usd: amountFrom(in: USD)
      amountTo
      amount_to_usd: amountTo(in: USD)
      currencyFrom {
        address
        name
        symbol
        tokenId
        tokenType
        decimals
      }
      currencyTo {
        address
        decimals
        name
        symbol
        tokenId
        tokenType
      }
      sender {
        address
      }
      receiver {
        address
      }
      transaction {
        hash
      }
    }
  }
}

Variables

{
  "address": null,
  "sender": "rJn2zAPdFA193sixJwuFixRkYDUtx3apQh",
  "receiver": "rMvCasZ9cohYrSZRNYPTZfoaaSUQMfgQ8G",
  "currency": "XRP",
  "from": "2023-06-01T00:00:00Z",
  "till": "2023-09-01T23:59:59Z",
  "limit": 5,
  "offset": 0,
  "network": "ripple",
  "dateFormat": "%Y-%m-%d",
  "sortFilter": "timestamp",
  "sortAsc": true,
  "tradeMinAmount": null,
  "tradeMaxAmount": null
}

Similar queries