Delegation with Light Token works similar to SPL. When you approve a delegate, you’re authorizing a specific account to transfer tokens on your behalf:
- Owner retains custody: You still own the tokens and can transfer or revoke at any time. Delegation is non-custodial.
- Capped spending: The delegate can spend tokens up to the limit, but cannot access or drain the account beyond the approved amount.
- Single delegate per account: Each token account can only have one active delegate. The owner can revoke at any time.
- New approval replaces old: Approving a new delegate automatically revokes the previous one
| SPL | Light | |
|---|---|---|
| Approve | approve() | approveInterface() |
| Delegated Transfer | transfer() (delegate signs) | transferDelegatedInterface() |
| Revoke | revoke() | revokeInterface() |
Agent skill
Agent skill
Use the payments agent skill to add light-token payment support to your project:For orchestration, install the general skill:
- Claude Code
- Cursor
- Any Agent
Add the marketplace and install:
- Guide
- AI Prompt
Use cases
| Use case | How delegation helps |
|---|---|
| Subscriptions | Approve a monthly cap. The service provider transfers the fee each period. |
| Recurring payments | Approve a spending limit. The payment processor draws funds as needed. |
| Managed spending | A parent or admin approves a cap for a sub-account. |
| Agent wallets | An AI agent operates within a delegated spending limit. |
Setup
Approve a delegate
Grant a delegate permission to spend up to a capped amount:Check delegation status
Check the delegation status of an account:Transfer as Delegate
Once approved, the delegate can transfer tokens on behalf of the owner. The delegate is the transaction authority. Only the delegate and fee payer sign; the owner’s signature is not required.transferDelegatedInterface takes a recipient wallet address and creates the recipient’s associated token account internally.Instruction-level builder
Instruction-level builder
createTransferDelegatedInterfaceInstructions returns TransactionInstruction[][] for manual transaction control.Revoke a delegate
Remove spending permission:Related guides
Basic payment
Send a single token transfer.
Gasless transactions
Separate the fee payer from the token owner.
Receive payments
Load cold accounts and share ATA address with the sender.