nested

Returns the latest money flows and transactions on Cardano: sender address, annotation, receiver address, amount, depth, count, transaction hash and 11 more fields.

By Hina Munir · saved 19 March 2025 · run 3 times · Bitquery API v1

What it returns

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
    }
  }
}

Similar queries