TL;DR: Recurring billing, delegated spending, and agentic payment flows are now native on Solana. Moonsong Labs built the onchain program that makes it all possible.
Subscriptions & Allowances on Solana
Today, Solana Foundation announced that the Subscriptions Delegation Program is live on mainnet.
Moonsong Labs is proud to have designed and built the underlying program, in partnership with the Solana Foundation.
This means that critical payment patterns, like recurring billing, delegated spending authority, and autonomous agent budgets are now composable and on-chain.
Today’s announcement included three launch integration partners building on this infrastructure:
- Helius: API tier subscriptions on-chain
- Dynamic: Onchain checkout from Dynamic wallets
- Confirmo: Stablecoin invoice collection
Each maps to payment patterns that have historically required centralized rails. They’re now programmable on Solana.
The Challenge
Solana’s SPL Token program is the backbone of token operations across the ecosystem. But it had a foundational constraint: each token account can only authorize a single delegate at a time. When you set a new one, the previous authorization would be automatically revoked.
For payment activities that require multiple concurrent relationships (like subscriptions and payroll authorizations), that was a hard limit.
Workarounds existed, but they added complexity and fragmented liquidity. Creating separate token accounts per delegation works in practice, but not at scale.
Moonsong Labs collaborated with the Solana Foundation to build the underlying program necessary to extend the native delegation model without touching the base SPL Token programs.
The program introduces a program-controlled intermediary (a “Multi-Delegate Authority”) that receives blanket approval from the user’s token account once. Fine-grained delegation accounts then govern exactly who can pull funds, how much, how often, and for how long.
What We Built
The authority cannot move tokens on its own. Every transfer has to match an active, user-defined authorization.
The program supports both SPL Token and Token-2022 and has been audited by Cantina.
Three delegation models are now supported:
| Model 01 | Model 02 | Model 03 |
|---|---|---|
| One-Time Fixed Delegation Pre-authorize a capped spend. Built for AI agents operating within a defined budget. | Recurring Delegation A set amount pulled on a daily, weekly, or monthly cadence. Built for payroll and contractors. | Subscription Plans Merchants publish fixed billing tiers on-chain. Users subscribe. Collectors charge each period. |
How We Approached It
We took a thoughtful approach to the design and implementation process. Importantly, we prioritized selecting the right tooling for a program that needed to be efficient, auditable, and maintainable at scale.
We chose Pinocchio for its zero-dependency, macro-free approach, giving explicit control over account validation and zero-copy serialization while minimizing compute units to keep transactions cost-effective.
We used Codama to generate type-safe TypeScript and Rust clients automatically from the Rust source, so they stay in sync with the program without manual upkeep.
For testing, we adopted LiteSVM for deterministic, network-free iteration in Rust, then validated end-to-end flows against Surfpool before deployment. And from day one, we designed the deployment pipeline with the most up-to-date standard for Solana infrastructure, like leveraging the Squads Protocol for multi-party program upgrade governance.
We also built a full dApp that exercises the program in a real usage scenario, driving delegations and subscriptions through the generated TypeScript client end to end.
These choices are what production-grade infrastructure is built on, and they’re the kind of decisions institutions need to get right before they build payment products on top.
If you’re building payment infrastructure, agentic workflows, or institutional financial products on Solana, we’re here to accelerate your zero-to-one.
Ready to Get Started?
Moonsong builds the infrastructure that institutions run on. If you’re ready to explore onchain payment products, agentic workflows, or financial infrastructure on Solana, we’d here to help you get started.