Ripple Coinpath Error

Returns money flows on XRP Ledger, where initial address is rE5rYE…bADR, currency to is XRP and date since 2024-10-29, sorted by amount, highest first: sender address, receiver address, amount to, currency to symbol, currency to name, currency to address, decimals and 5 more fields.

By Andrey Sychev · saved 29 October 2024 · run 5 times · Bitquery API v1

What it returns

Filters

The query

query ($network: RippleNetwork!, $addresses: [String!], $inboundDepth: Int!, $outboundDepth: Int!, $from: ISO8601DateTime, $till: ISO8601DateTime, $currency: [String!]) {
  ripple(network: $network) {
    inbound: coinpath(
      initialAddress: {in: $addresses}
      depth: {lteq: $inboundDepth}
      options: {direction: inbound, asc: "depth", desc: "amount"}
      date: {since: $from, till: $till}
      currencyTo: {in: $currency}
    ) {
      sender {
        address
      }
      receiver {
        address
      }
      amount: amountTo
      amountUSD: amountTo(in: USD)
      currency: currencyTo {
        symbol
        name
        address
        decimals
        tokenId
      }
      depth
      transaction {
        value: valueTo
        time {
          time
        }
        hash
      }
    }
    outbound: coinpath(
      initialAddress: {in: $addresses}
      depth: {lteq: $outboundDepth}
      options: {asc: "depth", desc: "amount"}
      date: {since: $from, till: $till}
      currencyTo: {in: $currency}
    ) {
      sender {
        address
      }
      receiver {
        address
      }
      amount: amountTo
      amountUSD: amountTo(in: USD)
      currency: currencyTo {
        symbol
        name
        address
        decimals
        tokenId
      }
      depth
      transaction {
        value: valueTo
        time {
          time
        }
        hash
      }
    }
  }
}

Variables

{
  "network": "ripple",
  "addresses": ["rE5rYEY8W4ZKzKUg3Q9by6cz33sRKWbADR"],
  "inboundDepth": 1,
  "outboundDepth": 1,
  "from": "2024-10-29T00:00:00",
  "till": "2024-10-29T23:59:59",
  "currency": "XRP"
}

Similar queries