btc_get_outputs_received_after_height

Returns inputs and outputs on Bitcoin and Dogecoin, where input address is DNKtJT…e5SN, output address is DNKtJT…e5SN and output script type is pubkeyhash, sorted by block height: value, input address address, transaction hash, output transaction hash, output transaction index, block height, unixtime and 5 more fields.

By EMRE ÖZER · saved 14 November 2025 · Bitquery API v1

What it returns

Filters

The query

query ($network: BitcoinNetwork!, $addresses: AddressSelector, $heightFrom: Int!, $options: QueryOptions, $scriptTypeFilter: StringSelector, $heightTo: Int!) {
  bitcoin(network: $network) {
    inputs(
      inputAddress: $addresses
      height: {gt: $heightFrom, lteq: $heightTo}
      options: $options
    ) {
      value
      inputAddress {
        address
      }
      transaction {
        hash
      }
      outputTransaction {
        hash
        index
      }
      block {
        height
        timestamp {
          unixtime
        }
      }
      inputIndex
      inputScriptType {
        type
      }
    }
    outputs(
      outputAddress: $addresses
      height: {gt: $heightFrom, lteq: $heightTo}
      options: $options
      outputScriptType: $scriptTypeFilter
    ) {
      value
      outputIndex
      outputAddress {
        address
      }
      transaction {
        hash
      }
      block {
        height
        timestamp {
          unixtime
        }
      }
      outputScriptType {
        type
      }
    }
  }
}

Variables

{
  "scriptTypeFilter": {"is": "pubkeyhash"},
  "options": {"asc": "block.height"},
  "network": "dogecoin",
  "addresses": {"in": ["DNKtJTfkqpDfyZx1Z2QUK3H2k7xoAxe5SN"]},
  "heightFrom": 5957497,
  "heightTo": 5957499
}

Similar queries