Use subscriptions when
- You publish a feed that other users or contracts consume.
- You need ongoing quota instead of one-off requests.
- You want stable feed ownership and delegate management.
- You operate a backend or keeper that updates Solana feed accounts.
Flow
- Fund the owner wallet with Solana Devnet SOL and Devnet USDC.
- Fetch the current plan price.
- Subscribe with an explicit
maxPriceUsdcsafety bound. - Derive the
feedId. - Request signed updates through the gateway.
- Submit verified updates to Solana when you maintain a public feed account.
What a plan controls
The
Subscription account also tracks used_rounds / max_rounds (initialized to unlimited) and mirrors max_signers / max_delegates from the plan at subscribe time.
Consumer note
Consumers do not need a subscription to read an existing feed or verify a signed payload. They only need the payload, the verifier address/program, and their own freshness policy.Next steps
Delegates
Authorize a hot agent key under this subscription.
Maintain a feed
Producer walkthrough for subscriptions and feed updates.