q402_redstone_trigger_create
Set up an automated gasless payout that triggers exactly once when a RedStone feed (price, NAV, or RWA) crosses a specified threshold. Authenticated via Multichain API key, no private key required.
Instructions
Arm a gasless payout that fires when a RedStone feed (NAV / price / RWA) crosses a threshold - e.g. "when ETH >= 2000, send 100 USDT to 0x…", or "when the fund NAV drops to <= 0.98, send the redemption". Fires EXACTLY ONCE per rising-edge crossing (edge-latched server-side): it will not re-fire while the level stays breached, and a trigger created while the feed is already past the threshold does NOT instant-fire - it waits for the next real crossing. Authenticated by the Multichain API key; no private key. Requires the paid Multichain subscription (trial keys rejected). Each fire is bounded by the wallet's perTxMax + dailyLimit and your local Q402_MAX_AMOUNT_PER_CALL + Q402_ALLOWED_RECIPIENTS rails. Call q402_redstone_feeds first to pick a readable feedId. Stop any time with q402_redstone_trigger_cancel.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | Yes | Required. Comparison against threshold. | |
| mode | No | Default 'once'. 'repeat' re-arms after the feed goes back to the unmet side. | |
| chain | No | Default 'bnb'. Paid Multichain subscription required. | |
| label | No | Optional human label. | |
| token | No | Default 'USDT'. USDG is Robinhood-Chain-only. | |
| amount | Yes | Required. Payout amount as decimal string (e.g. "100.0"). | |
| feedId | Yes | Required. RedStone feed id (e.g. "ETH"). Must be allowlisted (see q402_redstone_feeds). | |
| confirm | Yes | REQUIRED. Must be literally `true`. Triggers arm future on-chain payouts without a per-fire prompt, so get an explicit user yes BEFORE setting this. | |
| walletId | No | Optional. Defaults to server default wallet. | |
| recipient | Yes | Required. 0x payout recipient. | |
| threshold | Yes | Required. Feed value to cross. | |
| cooldownSec | No | repeat only: min seconds between fires. Default 0. |