The IndexerService provides query and subscription APIs for Arkade’s transaction data
IndexerService
exposes a set of gRPC and REST endpoints that allow clients to query commitment transactions, inspect VTXO trees, monitor forfeit and sweep transactions, and subscribe to real-time updates for script activity. The IndexerService
supports both point-in-time queries and real-time subscriptions.
IndexerService
to:
Operation Category | Methods | Purpose |
---|---|---|
Commitment Data | GetCommitmentTx , GetForfeitTxs , GetConnectors | Commitment tx analysis |
VTXO Management | GetVtxos , GetVtxoTree , GetVtxoTreeLeaves | VTXO lifecycle and tree navigation |
Transaction History | GetVtxoChain , GetVirtualTxs | Transaction chain analysis |
Batch Operations | GetBatchSweepTransactions | Batch settlement tracking |
Real-time Monitoring | SubscribeForScripts , GetSubscription | Script-based event subscriptions |
Commitment Data
GetCommitmentTx
returns information (via GetCommitmentTxResponse
) about a specific commitment transaction (identified via its TxId
), including its associated batches, input/output amounts, and start/end timestampsGetForfeitTxs
returns the list of forfeit transactions submitted for a given commitment transactionGetConnectors
returns the tree of connector outputs with details on tree positioning for the provided commitment transactionGetForfeitTxs
and GetConnectors
support pagination if results span multiple pages.VTXO Management
GetVtxos
provides flexible VTXO querying by addresses or outpoints with filtering options for spendable, spent only, or recoverable statesGetVtxoTree
returns the complete VTXO tree structure for a given batch outpoint, including transaction details and tree positioning informationGetVtxoTreeLeaves
returns the list of leaves (VTXO outpoints) of the tree(s) for a batch outpoint, optimized for clients that only need the final outputsTransaction History
GetVirtualTxs
returns the raw virtual transactions (in hex) for a given set of Arkade transaction IDsGetVtxoChain
traces the lineage of Arkade transactions from any VTXO leaf spending through to the creation of a specified VTXO outpoint (ie. tx chain), enabling full transaction history reconstructionBatch Operations
GetBatchSweepTransactions
returns the list of transactions that were swept by a given batch output and includes information on whether a batch output has been claimed by the operator after expiry or if a user has initiated unrolling of the tree.Real-time Monitoring
SubscribeForScripts
allows clients to create or update subscriptions for transaction notifications related to specific VTXO scripts, returning a subscription ID for stream accessGetSubscription
provides server-side streaming of real-time notifications for subscribed scripts, delivering transaction details including new and spent VTXOs, transaction data, and checkpoint transactionsUnsubscribeForScripts
lets a client remove specific scripts from existing subscriptionsGetVtxoTreeLeaves
for efficiency when you only need final outputs, not the full tree structureGetBatchSweepTransactions
shows normal vs. partial sweep scenarios when leaves are unrolled onchainSubscribeForScripts
/ UnsubscribeForScripts
before using GetSubscription
streamsIndexerService
is complementary to the ArkService
.
Use the IndexerService
for historical transaction data and detailed analysis and ArkService
for real-time updates