Solana Coinpath relation between two addresses

solana coinpath example

Returns money flows on Solana, where initial address is CrJao7…vLpC, final address is CHUBwc…LATn and date since 2025-06-19, sorted by amount, highest first: sender address, annotation, receiver address, amount, currency symbol, currency name, depth and count.

By Divyasshree · saved 27 August 2025 · Bitquery API v1

What it returns

Filters

The query

query ($network: SolanaNetwork!, $address: String!, $inboundDepth: Int!, $outboundDepth: Int!, $limit: Int!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  solana(network: $network) {
    inbound: coinpath(
      initialAddress: {in: [$address]}
      depth: {lteq: $inboundDepth}
      options: {direction: inbound, asc: "depth", desc: "amount", limitBy: {each: "depth", limit: $limit}}
      date: {since: $from, till: $till}
    ) {
      sender {
        address
        annotation
      }
      receiver {
        address
        annotation
      }
      amount
      currency {
        symbol
        name
      }
      depth
      count
    }
    outbound: coinpath(
      initialAddress: {in: [$address]}
      depth: {lteq: $outboundDepth}
      finalAddress: {in: ["CHUBwcGSRBpdx19qtQKB8Foq5GuLLvpVmpCw7cvbLATn"]}
      options: {asc: "depth", desc: "amount", limitBy: {each: "depth", limit: $limit}}
      date: {since: $from, till: $till}
    ) {
      sender {
        address
        annotation
      }
      receiver {
        address
        annotation
      }
      amount
      currency {
        symbol
        name
      }
      depth
      count
    }
  }
}

Variables

{
  "inboundDepth": 1,
  "outboundDepth": 1,
  "limit": 10,
  "offset": 0,
  "network": "solana",
  "address": "CrJao7TGHGq5BrS46Fn8joZLjTK9pU7ybgSSK4DNvLpC",
  "from": "2025-06-19",
  "till": "2025-06-20",
  "dateFormat": "%Y-%m-%d"
}

Similar queries