cardano coinpath with advance options

Returns the latest money flows and transactions on Cardano, where receiver is addr1q…29g9, sender is addr1q…29g9 and date since 2023-01-01: sender address, annotation, receiver address, amount, depth, count, transaction hash and 11 more fields.

By Omar · saved 6 June 2024 · run 60 times · Bitquery API v1

What it returns

Filters

The query

query ($network: CardanoNetwork!, $address: String!, $inboundDepth: Int!, $outboundDepth: Int!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  cardano(network: $network) {
    inbound: coinpath(
      currency: {}
      depth: {lteq: $inboundDepth}
      options: {asc: "depth", desc: "amount", maximumTotalTxCount: 5}
      date: {since: $from, till: $till}
      receiver: {is: $address}
    ) {
      sender {
        address
        annotation
      }
      receiver {
        address
        annotation
      }
      amount
      depth
      count
      transaction {
        hash
        metadata
        feeValue
        withdrawalValue
        depositValue
      }
      currency {
        symbol
        tokenId
        tokenType
      }
      block {
        timestamp {
          time
        }
        height
      }
    }
    outbound: coinpath(
      currency: {}
      depth: {lteq: $outboundDepth}
      options: {asc: "depth", desc: "amount"}
      date: {since: $from, till: $till}
      sender: {is: $address}
    ) {
      sender {
        address
        annotation
      }
      receiver {
        address
        annotation
      }
      amount
      depth
      count
      transaction {
        hash
        metadata
        feeValue
        withdrawalValue
        depositValue
      }
      currency {
        symbol
        tokenId
        tokenType
      }
      block {
        timestamp {
          time
        }
        height
      }
    }
    transactions(
      date: {since: $from, till: $till}
      options: {desc: ["block.height"]}
      txHash: {}
      any: [{inputAddress: {is: $address}}, {outputAddress: {is: $address}}]
    ) {
      block {
        height
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
      }
      hash
      feeValue
      metadata
      withdrawalValue
      mintCount
    }
  }
}

Variables

{
  "inboundDepth": 1,
  "outboundDepth": 1,
  "limit": 10,
  "offset": 0,
  "network": "cardano",
  "address": "addr1q9e6ywzvk9z65y000jvkw2x9w90c0vq8x68p53mfs5uj0mswtf6nj8t35qph4n6m04gawl49yvsxytfjpjpcfhehpcvqqt29g9",
  "from": "2023-01-01",
  "till": "2024-01-31T23:59:59",
  "dateFormat": "%Y-%m-%d"
}

Similar queries