stellar-coinpath

This query looks similar to REST api version of coinpath

Returns money flows on Stellar, where initial address is GCSPQ6…FPWD, date since 2023-01-04 and date till 2023-01-11, sorted by received amount, highest first: amount from, currency from symbol, currency from name, sender address, annotation, amount to, currency to symbol and 11 more fields.

By ruslan · saved 2 March 2023 · run 4 times · Bitquery API v1

What it returns

Filters

The query

query ($network: StellarNetwork!, $address: String!, $inboundDepth: Int!, $limit: Int!, $offset: Int!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  stellar(network: $network) {
    inbound: coinpath(
      initialAddress: {is: $address}
      depth: {lteq: $inboundDepth}
      options: {direction: inbound, asc: "depth", desc: "received_amount", limitBy: {each: "depth", limit: $limit, offset: $offset}}
      date: {since: $from, till: $till}
    ) {
      sent_amount: amountFrom
      sent_currency: currencyFrom {
        symbol
        name
      }
      sender {
        address
        annotation
        
      }
      received_amount: amountTo
      received_currency: currencyTo {
        symbol
        name
      }
      receiver {
        address
        annotation
      }
      transaction{
        hash
        time{
          time
        }
        valueFrom
        valueTo
        index
      }
      operation_type: operation
      depth
      count
      maximum(of: time)
    }
  }
}

Variables

{
		"address": "GCSPQ6J3WQGSQQAHLKNTZ56L7UKJBPVWZTE2FCOWY2HYL6I4ZPN4FPWD",
		"from": "2023-01-04",
		"inboundDepth": 2,
		"limit": 10,
		"network": "stellar",
		"offset": 0,
		"till": "2023-01-11T23:59:59"
}

Similar queries