Build Subscription Transaction
build_subscription_txGenerate calldata that approves RLC and purchases a subscription tier, enabling an agent or sponsor to sign and send the transaction directly.
Instructions
Build calldata to purchase a subscription: approve(RLC) + purchaseSubscription. The agent (or sponsor) signs and sends it themselves.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tier | Yes | Subscription tier: 0 = 1 day ($20), 1 = 3 days ($50), 2 = 7 days ($100) | |
| agent_address | Yes | EVM address of the agent that will receive the subscription, e.g. 0x1234... | |
| sponsor_address | No | Optional EVM address of a sponsor who pays for the agent's subscription |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |