create_loyalty_program
Get factory calldata to deploy a new loyalty token on Base. Defaults to B20 (Base native ERC-20 superset, single tx, active immediately). Pass token_standard='erc20' for the legacy factory. For B20, MINT_ROLE is granted atomically to the merchant admin AND to the agent's CDP wallet (or explicit extra_minters) so autonomous agents can mint with no follow-up transaction.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Program name (required for external agents) | |
| locale | No | ||
| symbol | No | Token symbol, 2-5 chars (required for external agents) | |
| auto_generate | No | Internal automation only — fills missing name/symbol from examples. External agents should pass explicit name and symbol. | |
| extra_minters | No | (B20 only) Extra addresses to grant MINT_ROLE atomically in the same deploy tx. | |
| token_standard | No | 'b20' (default, single-tx deploy on Base precompile factory) or 'erc20' (legacy factory, requires activate_loyalty_program follow-up) | |
| expiration_days | No | Program duration in days (default: 365) | |
| preferred_style | No | ||
| target_audience | No | ||
| business_context | No | Optional context for examples only | |
| agent_wallet_address | No | (B20 only) Additional wallet to grant MINT_ROLE atomically. Defaults to the agent's active CDP MPC wallet if not provided. |