The 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 IndexerServicesupports both point-in-time queries and real-time subscriptions.
API references can be found here and a set of tools to handle protobuf specifications can be found here.

API Layer Logic

Client applications use the IndexerServiceto:
Operation CategoryMethodsPurpose
Commitment DataGetCommitmentTx, GetForfeitTxs, GetConnectorsCommitment tx analysis
VTXO ManagementGetVtxos, GetVtxoTree, GetVtxoTreeLeavesVTXO lifecycle and tree navigation
Transaction HistoryGetVtxoChain, GetVirtualTxsTransaction chain analysis
Batch OperationsGetBatchSweepTransactionsBatch settlement tracking
Real-time MonitoringSubscribeForScripts, GetSubscriptionScript-based event subscriptions
This service is essential for builders who want to provide visibility into user funds, transaction history, or batch-level activity without relying on custom indexers or database infrastructure.

API Layer Logic Explained

Notes for Builders

  • Use script-level subscriptions to drive reactive clients or backend workflows
  • VTXO queries and chain tracing allow for full lifecycle auditing of offchain funds
  • Tree navigation is optimized - use GetVtxoTreeLeavesfor efficiency when you only need final outputs, not the full tree structure
  • Batch sweep tracking helps monitor operator claims - GetBatchSweepTransactionsshows normal vs. partial sweep scenarios when leaves are unrolled onchain
  • Real-time subscriptions are stateful - manage the subscription lifecycle with SubscribeForScripts / UnsubscribeForScriptsbefore using GetSubscriptionstreams
  • All methods support both gRPC and REST interfaces through auto-generated gateway mappings
  • All endpoints are paginated and follow REST conventions
The IndexerServiceis complementary to the ArkService. Use the IndexerServicefor historical transaction data and detailed analysis and ArkServicefor real-time updates