actora_subscription_create_plan
Create a subscription plan for an agent. WRITE operation. period is one of "day" | "week" | "month" | "quarter" | "year"; planType 0=subscription (default), 1=usage-based, 2=hybrid.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Plan name (required on-chain; defaults to "Plan #<agentId>") | |
| chain | No | Chain: "bsc" (default) | "ethereum" | "base". Sepolia testnet is not supported. | |
| price | No | Recurring price in wei/token units (required unless planType=1) | |
| period | Yes | "day" | "week" | "month" | "quarter" | "year" | |
| agentId | Yes | Agent ID | |
| maxUsage | No | Max usage per billing period (0 = unlimited) | |
| payToken | No | ERC20 token address; omit for native ETH | |
| planType | No | 0=subscription (default), 1=usage-based, 2=hybrid | |
| usagePrice | No | Per-use price (required when planType is 1 or 2) | |
| description | No | Plan description | |
| totalUsageLimit | No | Total usage limit (0 = unlimited) |