q402_recurring_create
Create a recurring payment rule to schedule automated stablecoin payments on the Agent Wallet. Specify cadence, recipient, amount, chain, and token; each fire respects wallet limits.
Instructions
Author a new recurring-payment rule on the user's Agent Wallet. Single-recipient (use the dashboard for multi-recipient payroll). Pick a cadence - hourly:N, daily, weekly:{day}, monthly:N, or monthly:last - and a recipient + amount + chain + token. Authenticated by the configured Multichain API key; no private key required. Recurring requires the paid Multichain subscription on EVERY chain including bnb - trial keys are rejected at create time with MULTICHAIN_REQUIRED and should keep using q402_pay for one-shot Trial sends. Each fire is bounded server-side by BOTH the wallet's perTxMax AND its dailyLimit - a rule's daily total reserves against the same daily bucket as manual sends (the scheduler skips the fire if the bucket can't cover it), so scheduled rules can't outrun the dashboard caps. This tool also enforces your local Q402_MAX_AMOUNT_PER_CALL + Q402_ALLOWED_RECIPIENTS rails at create time. The user can stop a rule any time via q402_recurring_cancel.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | No | Default 'bnb'. Recurring requires the paid Multichain subscription on EVERY chain (BNB included) - trial keys are rejected with MULTICHAIN_REQUIRED. | |
| label | No | Optional human label (≤64 chars). | |
| token | No | Default 'USDT'. USDG (Paxos Global Dollar) is Robinhood-Chain-only. All peg USD-1. | |
| amount | Yes | Required. Per-fire amount as decimal string (e.g. "1.5"). | |
| confirm | Yes | REQUIRED. Must be literally `true`. Recurring rules schedule future on-chain payments without per-fire user prompts, so the agent must get an explicit user yes BEFORE setting `confirm: true` and calling this. Same guard q402_pay / q402_batch_pay use on one-shot sends. | |
| walletId | No | Optional. Defaults to default wallet on server. | |
| frequency | Yes | Required. "hourly:N" (N=1..23), "daily", "weekly:{day}", "monthly:N", or "monthly:last". | |
| recipient | Yes | Required. 0x-prefixed 20-byte recipient address. | |
| cancelWindowHours | No | Optional advance-notice window in hours. 0 = no alert, fires at the next slot. Defaults to 0. |