Sender and receivers for a transaction

Returns 10 inputs and outputs on Bitcoin, where tx hash is ce95d4…d623, sorted by output index: input index, input address address, annotation, value, output index, output address address and output direction.

By gaurav · saved 3 November 2021 · run 18 times · Bitquery API v1

What it returns

Filters

The query

query ($network: BitcoinNetwork!, $hash: String!, $limit: Int!, $offset: Int!) {
  bitcoin(network: $network) {
    sender: inputs(
      txHash: {is: $hash}
      options: {asc: "inputIndex", limit: $limit, offset: $offset}
    ) {
      inputIndex
      address: inputAddress {
        address
        annotation
      }
      value
    }
    receivers: outputs(
      txHash: {is: $hash}
      options: {asc: "outputIndex", limit: $limit, offset: $offset}
    ) {
      outputIndex
      address: outputAddress {
        address
        annotation
      }
      value
      outputDirection
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "bitcoin",
  "hash": "ce95d4e8893b206ee7ff7c9fd00a7ab6da8b7b46de47966f644a3c91251fd623"
}

Similar queries