cardano coinpath

Returns money flows on Cardano, where currency is 001bc2…6e65, initial address is addr1q…jv6p and currency is ADA, sorted by amount, highest first: sender address, annotation, receiver address, amount, depth, count, currency address and 2 more fields.

By gaurav · saved 19 September 2023 · run 2 times · Bitquery API v1

What it returns

Filters

The query

query ($network: CardanoNetwork!, $address: String!, $inboundDepth: Int!, $outboundDepth: Int!, $limit: Int!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  cardano(network: $network) {
    inbound: coinpath(
      currency: {is: "001bc2805468652046726565204f6e65"}
      initialAddress: {is: $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
      depth
      count
      currency {
        address
        name
        tokenId
      }
    }
    outbound: coinpath(
      currency: {is: "ADA"}
      initialAddress: {is: $address}
      depth: {lteq: $outboundDepth}
      options: {asc: "depth", desc: "amount", limitBy: {each: "depth", limit: $limit}}
      date: {since: $from, till: $till}
    ) {
      sender {
        address
        annotation
      }
      receiver {
        address
        annotation
      }
      amount
      depth
      count
      currency {
        address
        name
        tokenId
      }
    }
  }
}

Variables

{
  "inboundDepth": 1,
  "outboundDepth": 1,
  "limit": 10,
  "offset": 0,
  "network": "cardano",
  "address": "addr1q8dv8eu5rp8zk6e2qz8czxycrzmk3ymw2hpzgjt85mazpxfys6495m5t5m637hglehjweye08gzngsxxpg55qnu3z56qw2jv6p",
  "from": "2023-09-12",
  "till": "2023-09-19T23:59:59",
  "dateFormat": "%Y-%m-%d"
}

Similar queries