Skip to main content

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 date
  • feeValue: filter by fee value
  • height: filter by block height
  • inputAddress: filter by input address
  • inputCount: filter by input count of transaction
  • minedValue: filter by transaction's total mined value
  • options: filter returned data by ordering, limiting, and constraining it.
  • outputAddress: filter by output address
  • outputCount: filter by output count of transaction
  • outputValue: filter by total output value of transaction
  • time: filter by selecting time in range, list or just time
  • txCoinbase:
  • txHash: filter by transaction hash
  • txIndex: fitler by transaction index in block
  • txLocktime: filter by transaction locktime
  • txSize: filter by transaction size
  • txVersion: filter by transaction version
  • txVsize: filter by transaction vsize
  • txWeight: filter by transaction weight

The following are available fields for the transactions:

  • any:
  • block: returns block where transaction is included
  • count: returns aggregate count of transactions
  • countBigInt: returns count as BigInt
  • date: returns date of the transactions
  • expression: performs arithematic operation on fields in the query and returns value of the operation
  • feeValue: returns total fee value of transaction
  • feeValueDecimal: returns fee value as decimal
  • hash: returns transaction hash
  • index: returns index of transaction in the block
  • inputCount: returns total input count of transaction
  • inputCountBigInt: returns input count as BigInt
  • inputValue: returns total input value of transactions
  • inputValueDecimal: returns input value as decimal
  • maximum: returns maximum for selected measurable fields of Dogecoin transactions
  • minedValue: returns total mined value of transaction
  • minedValueDecimal: returns mined value as decimal
  • minimum: returns minimum for selected measurable fields of Dogecoin transactions
  • outputCount: returns total output count of transaction
  • outputCountBigInt: returns output count as BigInt
  • outputValue: returns total output value of transaction
  • outputValueDecimal: returns output value as decimal
  • txCoinbase:
  • txLocktime: returns locktime of transaction
  • txSize: returns size of transaction
  • txversion: returns version of transaction
  • txVsize: returns vsize of transaction
  • txWeight: returns transaction weight