Skip to main content

The outputs field allows us to fetch details about transaction outputs from Dash network.

Here is an example that demonstrates outputs query:

{
bitcoin(network: dash) {
outputs(
date: {after: "2023-07-22"}
options: {limit: 10, desc: "block.timestamp.iso8601"}
) {
block {
timestamp {
iso8601
}
}
date {
date
}
outputAddress {
address
annotation
}
outputDirection
outputIndex
outputScript
outputScriptType {
annotation
pattern
short
simplePattern
type
}
reqSigs
transaction {
hash
index
}
value
}
}
}
Filtering Outputs
  • any:
  • date: filter by selecting date in rang, list or just date
  • height: filter by block height
  • options: filter returned data by ordering, limiting, and constraining it.
  • outputAddress: filter by output address of transaction
  • outputDirection: filter by output direction
  • outputIndex: filter by index of the output in the transaction
  • outputScriptType: filter by output script
  • outputValue: filter by output value
  • time: filter by selecting time in range, list or certain time stamp
  • txHash: filter by transaction hash
  • txIndex: filter by transaction index in the block

The following are available fields for the outputs:

  • any:
  • block: returns block where transaction is included
  • count: returns aggregate count of outputs
  • countBigInt: returns count as BigInt
  • date: returns date of transaction
  • expression: performs arithematic operation on fields in the query and returns value of the operation
  • maximum: returns maximum for selected measurable fields of Dash outputs
  • minimum: returns minimum for selected measurable fields of Dash outputs
  • outputAddress: returns output address
  • outptuDirection: returns guessed direction of output
  • outputIndex: returns index of output in transaction
  • outputScript: returns output script
  • outputScriptType: returns type and attributes of output scripts
  • reqSigs:
  • transaction: returns transaction ID Hash
  • value: returns output value
  • valueDecimal: returns output as decimal