The inputs field allows us to retrieve details about inputs of the transaction from Dogecoin network.
Here is an example that demonstrates inputs query:
{
bitcoin(network: dogecoin) {
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 dateheight: Filter by block where transaction is includedinOutputIndex:inOutputTxId:inputAddress: Filter by transaction input addressinputIndex: Filter by index of inputinputScriptType: Filter by type and attributes of input scriptsinputValue: Filter by input valueoptions: Filter returned data by ordering, limiting, and constraining it.time: Filter by selecting time in range, list or just timetxHash: Filter by transaction hashtxIndex: Filter by index of transaction in block
The following are available fields for the inputs:
any:block: returns block where transaction is includedcount: returns aggregate input countcountBigInt: returns count inBigIntformatdate: returns date of the transactionexpression: performs arithematic operation on fields in the query and returns value of the operationinputAddress: returns input addressinputIndex: returns input indexinputScript: returns input scriptinputScriptType: returns input script types and attributesmaximum: returns maximum for measurable fields of Dogecoin inputsminimum: returns minimum for measurable fields of Dogecoin inputsoutputTransaction: returns output transaction for this inputtransaction: returns information about transaction of this inputvalue: returns input valuevalueDecimal: returns input value as decimal