Documentation Index
Fetch the complete documentation index at: https://dispatch.lodestar-dashboard.com/llms.txt
Use this file to discover all available pages before exploring further.
Architecture
Dispatch has two deployment paths: a managed gateway (centralised routing, good for apps) and a direct consumer SDK (trustless, peer-to-peer).Payment flow
Receipts accumulate off-chain and settle on-chain in batches via GraphTally (TAP v2):valueAggregate in a RAV is cumulative and never resets. The collector tracks previously collected amounts to calculate deltas on each collect() call.
Workspace layout
Horizon integration
Dispatch is a data service in the Horizon framework. Three Horizon layers are in play: HorizonStaking — indexers callprovision(serviceProvider, RPCDataService, tokens, maxVerifierCut, thawingPeriod). Minimum 555 GRT, 14-day thawing period.
GraphPayments + PaymentsEscrow — consumers deposit GRT into escrow keyed by (sender, serviceProvider). Every request carries a TAP receipt; the TAP agent batches these into RAVs redeemed via collect().
DataService framework — RPCDataService inherits DataService + DataServiceFees + DataServicePausableUpgradeable. Deployed as a UUPS upgradeable proxy (ERC1967). The framework handles stake claim linked lists, fee locking at the configured ratio, and pause logic.