Define a per-coin balance threshold and a destination. The 5-minute worker tick checks every merchant every round; the moment your balance crosses the line, we sign + broadcast a payout to your address. 30-minute post-fail cooldown prevents retry loops. TOTP-gated at rule-create time.
payout.auto_withdraw with event_id + signed receipt, same delivery contract as every other webhook.LIVE// Sweep every 0.01 BTC to a cold wallet the moment it lands. curl https://orbchain.io/dashboard/auto-withdraw-rules \ -X PUT \ -H "Authorization: Bearer <jwt>" \ -H "X-TOTP: 123456" \ -H "Content-Type: application/json" \ -d '{ "rules": [{ "coin": "BTC", "threshold_native": "0.01", "destination": "bc1qar0srrr7xfkvy5l643lydnw9re59gtzzwf5mdq", "enabled": true }] }' // 3h later — balance reaches 0.012 BTC: // worker fires: payout.auto_withdraw (event_id 01H…) // hot wallet: 0.012 → 0 BTC (minus fee) // cold wallet: +0.01198 BTC
No. The 5-minute tick is our worker; nothing runs on your side. Disable a rule from the dashboard any time and the next tick honors it.
Your balance is refunded (atomic) and the rule goes into a 30-minute cooldown. A payout.failed webhook fires so you can alert your ops channel. After cooldown the next tick retries, assuming the balance still exceeds the threshold.
From the payout. You receive balance - network_fee. The 0.4% platform fee is already out the door at deposit time; auto-withdraw carries no additional platform fee.
Not yet. LN payouts require a specific destination (BOLT11 or Lightning Address) per payout — a single standing destination doesn't map cleanly. We'll revisit once LNURL-withdraw support matures.
Every create / update / delete is logged in our admin audit table. From the merchant dashboard you see the current rule set + the last-fired timestamp per rule.
Running a custody script against a gateway's API is work no merchant should do. We did it once, for everyone.