bitcoin_inputs_outputs

Returns inputs and outputs on Bitcoin, where tx hash is ad1fc6…23f0, sorted by output index: input index, input address address, value, output index and output address address.

By Omkar_BQ · saved 25 June 2024 · run 3 times · Bitquery API v1

What it returns

Filters

The query

query ($network: BitcoinNetwork!, $hash: String!) {
  bitcoin(network: $network) {
    inputs(
      txHash: {is: $hash}
      options: {asc: "inputIndex"}
    ) {
      inputIndex
      address: inputAddress {
        address
      }
      value
    }
    outputs(
      txHash: {is: $hash}
      options: {asc: "outputIndex"}
    ) {
      outputIndex
      address: outputAddress {
        address
      }
      value  
    }
  }
}

Variables

{
  "network": "bitcoin",
  "hash": "ad1fc6baa378206b1ef88744df94c204bc514a3872d8c72b306f9b5fdd4423f0"
}

Similar queries