The transactions allows us to fetch details about transactions from Bitcoins network.
Here is an example that demonstrates transactions query:
{
bitcoin(network: dogecoin) {
transactions(
date: {after: "2023-07-22"}
options: {desc: "block.timestamp.iso8601", limit: 10}
) {
block {
height
timestamp {
iso8601
}
}
feeValue(in: USD)
feeValueDecimal
hash
index
inputCount
inputCountBigInt
inputValue
inputValueDecimal
minedValue
minedValueDecimal
outputCount
outputCountBigInt
outputValue
outputValueDecimal
txCoinbase
txLocktime
txSize
txVersion
txVsize
txWeight
}
}
}
Filtering Transactions
any:date: filter by selecting date in range, list or just datefeeValue: filter by fee valueheight: filter by block heightinputAddress: filter by input addressinputCount: filter by input count of transactionminedValue: filter by transaction's total mined valueoptions: filter returned data by ordering, limiting, and constraining it.outputAddress: filter by output addressoutputCount: filter by output count of transactionoutputValue: filter by total output value of transactiontime: filter by selecting time in range, list or just timetxCoinbase:txHash: filter by transaction hashtxIndex: fitler by transaction index in blocktxLocktime: filter by transaction locktimetxSize: filter by transaction sizetxVersion: filter by transaction versiontxVsize: filter by transaction vsizetxWeight: filter by transaction weight
The following are available fields for the transactions:
any:block: returns block where transaction is includedcount: returns aggregate count of transactionscountBigInt: returns count as BigIntdate: returns date of the transactionsexpression: performs arithematic operation on fields in the query and returns value of the operationfeeValue: returns total fee value of transactionfeeValueDecimal: returns fee value as decimalhash: returns transaction hashindex: returns index of transaction in the blockinputCount: returns total input count of transactioninputCountBigInt: returns input count asBigIntinputValue: returns total input value of transactionsinputValueDecimal: returns input value as decimalmaximum: returns maximum for selected measurable fields of Dogecoin transactionsminedValue: returns total mined value of transactionminedValueDecimal: returns mined value as decimalminimum: returns minimum for selected measurable fields of Dogecoin transactionsoutputCount: returns total output count of transactionoutputCountBigInt: returns output count asBigIntoutputValue: returns total output value of transactionoutputValueDecimal: returns output value as decimaltxCoinbase:txLocktime: returns locktime of transactiontxSize: returns size of transactiontxversion: returns version of transactiontxVsize: returns vsize of transactiontxWeight: returns transaction weight