The omniTransactions allows us to fetch details about omni tranasctions from Dash network.
Here is an example that demonstrates omniTransactions query:
{
bitcoin(network: dash) {
omniTransactions(
options: {limit: 10, desc: "block.timestamp.iso8601"}
date: {after: "2023-07-22"}
) {
block {
timestamp {
iso8601
}
}
blockHash
feeValue
hash
index
json
txSender
type
typeInt
valid
version
}
}
}
Filtering Omni Transactions
Omni Transactions can be filtered using the following arguments
any:date: Filter by selecting the range, list or just date.feeValue: Filter by transaction fee valueheight: Filter by block heightinvalidReason:options: 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 transaction index in blocktxSender: Filter by address of transaction sendertype: Filter by typetypeId: Filter by type Idvalid:version: Filter by version
The following are available fields for the omniTransactions:
any:block: returns block where transaction is includedblockHash: returns block hashcount: returns aggregate count of omni transactionscountBigInt: returns count asBigIntdate: returns date of the transactionsexpression: performs arithematic operation on fields in the query and returns value of the operationfeeValue: returns transactions total fee valuehash: returns hash of the transactionindex: returns index of omni transaction in the blockinvalidReason:json:maximum: returns maximum for selected measurable field of Dash Omni Transactionsminimum: returns minimum for selected measurable field of Dash Omni TransactionstxSender: returns transaction sendertype: returns type of transactiontypeInt: returns type as Intvalid:version: returns version