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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"agent_address": "<agent_address>",
"tier": "<tier>"
},
"name": "build_subscription_tx"
}
}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 |