Skip to main content

The inputs field allows us to retrieve details about inputs of the transaction from Dash network.

Here is an example that demonstrates inputs query:

{
bitcoin(network: dash) {
inputs(
options: {limit: 10, desc: "block.timestamp.iso8601"}
date: {after: "2023-07-22T00:00:00Z"}
) {
block {
height
timestamp {
iso8601
}
}
inputIndex
inputScript
inputAddress {
address
annotation
}
outputTransaction {
hash
}
transaction {
hash
}
value
}
}
}
Filtering Inputs

Inputs can be filtered using the following arguments:

  • any:
  • date: Filter by selecting the range, list or just date
  • height: Filter by block where transaction is included
  • inOutputIndex:
  • inOutputTxId:
  • inputAddress: Filter by transaction input address
  • inputIndex: Filter by index of input
  • inputScriptType: Filter by type and attributes of input scripts
  • inputValue: Filter by input value
  • options: Filter returned data by ordering, limiting, and constraining it.
  • time: Filter by selecting time in range, list or just time
  • txHash: Filter by transaction hash
  • txIndex: Filter by index of transaction in block

The following are available fields for the inputs:

  • any:
  • block: returns block where transaction is included
  • count: returns aggregate input count
  • countBigInt: returns count in BigInt format
  • date: returns date of the transaction
  • expression: performs arithematic operation on fields in the query and returns value of the operation
  • inputAddress: returns input address
  • inputIndex: returns input index
  • inputScript: returns input script
  • inputScriptType: returns input script types and attributes
  • maximum: returns maximum for measurable fields of Dash inputs
  • minimum: returns minimum for measurable fields of Dash inputs
  • outputTransaction: returns output transaction for this input
  • transaction: returns information about transaction of this input
  • value: returns input value
  • valueDecimal: returns input value as decimal