The sponsored flow is the simplest paymaster mode: your dapp pays gas on the user’s behalf. The same call site works for both managed and self-funded paymasters; the only difference is how the paymaster is funded in the Portal.Documentation Index
Fetch the complete documentation index at: https://docs.startale.com/llms.txt
Use this file to discover all available pages before exploring further.
Source:
StartaleGroup/scs-aa-sdk.End-to-end flow
The SDK handles every step; the only thing you need to plug in is thepaymasterId.
Wire the client
| Symbol | Source | Role |
|---|---|---|
createSCSPaymasterClient | @startale-scs/aa-sdk | Connects to the SCS Paymaster RPC. |
paymasterContext.paymasterId | SCS Portal | The id of the paymaster you provisioned. Both managed and self-funded paymasters return one. |
Send a sponsored UserOperation
| Reason | What to check |
|---|---|
| Policy exceeded | Open the paymaster’s policies in the SCS Portal and look at the current 7-day window. |
| Self-funded paymaster empty | Top up the sponsor balance. |
Wrong paymasterId | Confirm you copied the id from the Portal exactly, including any prefix. |
| Wrong network | Soneium Minato uses chain id 1946; mainnet uses 1868. The bundler URL and chain must match. |
Choosing between managed and self-funded
Both modes use the same SDK call site. Pick whichever matches how you want to settle gas. See the Portal setup guide for a side-by-side comparison.| Managed | Self-funded | |
|---|---|---|
| Funding | SCS fronts gas, bills you in fiat | You top up ETH on the paymaster |
| Best for | Production apps, predictable invoicing | Hard treasury caps, crypto-native settlement |
| Call site | paymasterId: "pm_..." | paymasterId: "pm_..." |
Next steps
ERC-20 paymaster
Charge users in ASTR, USDC, or other supported tokens.
Parallel transactions
Run multiple sponsored UserOperations in parallel via nonce lanes.
Smart sessions
Combine sponsorship with scoped session keys for the smoothest UX.
Portal setup
Tune your gas policies and rotate API keys.