Stellar missing keyword

Returns money flows on Stellar, where initial address is GB4DJW…CNNY, currency to is Lumen and currency from is Lumen, sorted by amount, highest first: sender address, receiver address, amount to, currency to symbol, token ID, currency to address, currency to name and 6 more fields.

By Andrey Sychev · saved 30 October 2024 · run 2 times · Bitquery API v1

What it returns

Filters

The query

query ($network: StellarNetwork!, $addresses: [String!],
  $inboundDepth: Int!, $outboundDepth: Int!,
  $from: ISO8601DateTime, $till: ISO8601DateTime, $currency: [String!]) {
  stellar(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
        tokenId
        address
        name
      }
      depth
      count
      transaction {
        hash
        time {
          time
        }
        value: valueTo
      }
    }
    outbound: coinpath(
      initialAddress: {in: $addresses}
      depth: {lteq: $outboundDepth}
      options: {asc: "depth", desc: "amount"}
      date: {since: $from, till: $till}
      currencyFrom: {in: $currency}
    ) {
      sender {
        address
      }
      receiver {
        address
      }
      amount: amountTo
      amountUSD: amountTo(in: USD)
      currency: currencyTo {
        symbol
        tokenId
        address
        name
      }
      depth
      count
      transaction {
        hash
        time {
          time
        }
        value: valueFrom
      }
    }
  }
}

Variables

{
  "network": "stellar",
  "addresses": ["GB4DJWXRQFZPVCXYOAUZ4XAFMBULRGA2ROJRDCEKYGVH2YKQTZJHCNNY"],
  "inboundDepth": 1,
  "outboundDepth": 1,
  "from": "2024-10-29T00:00:00",
  "till": "2024-10-29T23:59:59",
  "currency": ["Lumen"]
}

Similar queries