Source:
StartaleGroup/scs-aa-sdk. Token addresses for each network are listed in Supported networks.How it works
1. Build the token-paymaster client
The client looks like the sponsored client, exceptpaymasterContext.token replaces paymasterContext.paymasterId.
2. Quote the cost in tokens
Before sending a UserOperation, ask the paymaster for the cost across the tokens you support.getTokenPaymasterQuotes returns one entry per token plus a list of unsupported addresses you passed in.
3. Send the UserOperation
Once the user picks a token, send the UserOperation with the token-paymaster client. The SDK takes care of the approval flow and packing the token intopaymasterAndData.
Common errors
Next steps
Sponsored paymaster
Compare token gas to a fully sponsored flow.
Supported tokens
Look up the exact token address for the network you target.
Contract interactions
Combine token gas with batched calls.
Smart sessions
Pair token gas with scoped sessions for high-frequency UX.