Copy of Copy of solana coinpath example

solana coinpath example

Returns money flows on Solana, where initial address is DTa29X…XfoP, currency is remiG7…hUsp and date since 2022-09-19, sorted by amount, highest first: sender address, annotation, receiver address, amount, currency symbol, currency name, depth and 5 more fields.

By Lochana Perera · saved 25 October 2024 · run 3 times · Bitquery API v1

What it returns

Filters

The query

query ($network: SolanaNetwork!, $address: String!, $inboundDepth: Int!, $outboundDepth: Int!, $limit: Int!, $from: ISO8601DateTime, $till: ISO8601DateTime, $currency: String!) {
  solana(network: $network) {
    inbound: coinpath(
      initialAddress: {is: $address}
      depth: {lteq: $inboundDepth}
      options: {direction: inbound, asc: "depth", desc: "amount", limitBy: {each: "depth", limit: $limit}}
      date: {since: $from, till: $till}
      currency: {is: $currency}
    ) {
      sender {
        address
        annotation
      }
      receiver {
        address
        annotation
      }
      amount
      currency {
        symbol
        name
      }
      depth
      count
      signature {
        hash
        value
      }
      block {
        timestamp {
          minute
          unixtime
        }
      }
    }
    outbound: coinpath(
      initialAddress: {is: $address}
      depth: {lteq: $outboundDepth}
      options: {asc: "depth", desc: "amount", limitBy: {each: "depth", limit: $limit}}
      date: {since: $from, till: $till}
      currency: {is: $currency}
    ) {
      sender {
        address
        annotation
      }
      receiver {
        address
        annotation
      }
      amount
      currency {
        symbol
        name
      }
      depth
      count
      signature {
        hash
        value
      }
      block {
        timestamp {
          minute
          unixtime
        }
      }
    }
  }
}

Variables

{
  "inboundDepth": 1,
  "outboundDepth": 1,
  "limit": 10000,
  "offset": 0,
  "network": "solana",
  "address": "DTa29XgjVyxioKFHeFcFMHzx5vwDQrtKjT83cA4SXfoP",
  "currency": "remiG7sGaHWgrY7o6SXJW5CYi5A7kmKutyJz6x6hUsp",
  "from": "2022-09-19",
  "till": "2024-10-18T23:59:59",
  "dateFormat": "%Y-%m-%d"
}

Similar queries