Fusebox
v0.6.1Agent payments on X Layer checked by TapeOut circuit fuses: check, pay, x402 fetch, ready rules.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
fusebox_check Check a payment against the fuses
Dry-run a USDT0 payment from the Fusebox wallet 0x0Db0457715a6445D8a65F820d717a6B39Be66800 on X Layer. Every fuse (TapeOut circuits) answers yes or no, with the reason. Free and read-only; nothing moves. Call this before fusebox_pay: a blocked payment still costs fees and can blow the Breaker.
| Parameter | Type | Description |
|---|---|---|
amount * | string | Amount in USDT0, e.g. "2.5" |
to * | string | Payee address (0x…) |
fusebox_pay Pay through the fuses
Ask the Fusebox wallet 0x0Db0457715a6445D8a65F820d717a6B39Be66800 to pay in USDT0 on X Layer. Every fuse decides in the same transaction; the money moves only if all of them say yes. The memo is recorded on-chain but no fuse reads it. Requires FUSEBOX_AGENT_KEY.
| Parameter | Type | Description |
|---|---|---|
amount * | string | Amount in USDT0, e.g. "0.05" |
memo * | string | One line: what this payment is for |
to * | string | Payee address (0x…) |
fusebox_status Wallet status
The Fusebox wallet 0x0Db0457715a6445D8a65F820d717a6B39Be66800: USDT0 balance, prepaid fee balance, each fuse and whether it's blown, today's spend, and decision counts.
fusebox_fetch Fetch a URL, paying for it through the fuses if it asks (x402)
Fetch a URL. If it answers 402 with an x402 offer that takes Fusebox payments (scheme "fusebox" on X Layer, in USDT0), the price is paid from the Fusebox wallet 0x0Db0457715a6445D8a65F820d717a6B39Be66800 only if every fuse allows it, then the request is retried with the proof and the response comes back. A refused price moves nothing. It pays at most max_price (default 0.10 USDT0 when you don't set one), only to public hosts. Use dry_run to see the price and the fuses' answer without paying. Without FUSEBOX_AGENT_KEY it behaves as a dry run.
| Parameter | Type | Description |
|---|---|---|
url * | string | The URL to fetch |
body | string | Request body for POST (sent as-is) |
content_type | string | Content-Type for the body, default application/json |
dry_run | boolean | Only report the price and what the fuses would say |
max_price | string | Most you'll pay for this call, in USDT0, e.g. "0.05". Default 0.10 |
method | string | Default GET |
fusebox_rules List Fuse Studio's ready-made rules
Fuse Studio's library of ready-made payment rules (13 common agent policies: daily budgets, payee books with a trial, breakers, approvals, no double payments). Each says who it's for, whether it's already a live fuse a wallet can install today (fuse_id), and a Studio link to prove, change or tape it out. Use the names with fusebox_setup_link and fusebox_preflight.
| Parameter | Type | Description |
|---|---|---|
live_only | boolean | Only rules that are already live fuses |
socket | integer | Only rules for one socket: 1 Daily Cap, 2 Payee Guard, 3 Breaker, 4 Two of Three, 5 Repeat Guard |
fusebox_setup_link Make a wallet setup link from ready-made rules
Turn ready-made rule names (see fusebox_rules) and limits into a link that opens Fusebox's wallet setup with those fuses switched on and filled in. The owner opens it, connects their wallet and signs; nothing is sent from here. Rules that aren't live fuses yet come back with their Studio link instead.
| Parameter | Type | Description |
|---|---|---|
rules * | array | Rule names or ids, e.g. ["daily-budget", "payee-book-trial", "no-double-pay"] |
approvals_above | integer | Two of three: payments above this need two approvers, USDT0 (default 20) |
cap | integer | Daily budget: the most per UTC day, USDT0 (default 50) |
cooling_off_hours | integer | Payee book: hours before a new payee gets full payments (default 24) |
repeat_window_hours | integer | No double payments: hours the same payment is remembered (default 24) |
trial_amount | integer | Payee book: the most a payee still cooling off can get, USDT0 (default 2) |
fusebox_preflight Pre-flight a payment against TapeOut circuits (any wallet)
Before signing a payment from ANY wallet, run it through a line of TapeOut circuits on X Layer: each circuit's own eval/step answers yes or no, free and read-only. You supply the context a Fusebox wallet would keep on-chain. Pass the returned state back next time so latches (the Breaker) remember. Shipped fuses: 1 Daily Cap (a = cap per UTC day, USD₮0), 2 Payee Guard (a = cooling-off hours, b = trial USD₮0), 3 Breaker, 4 Two of Three (a = approvals above, USD₮0). If it says no, don't sign.
| Parameter | Type | Description |
|---|---|---|
amount * | string | Payment amount in USD₮0, e.g. "2.5" |
line * | array | Fuses by registry id with their settings |
approvals | integer | How many of three approvers signed this exact payment |
hours_since_saved | integer | Hours since the payee was saved |
payee_saved | boolean | Is the payee in your payee book? |
repeat_cleared | boolean | Repeat Guard: the owner cleared one repeat of this payment |
same_payment_hours_ago | integer | Repeat Guard: hours since this exact payment (payee and amount) last went out; omit if never |
spent_today | string | USD₮0 already paid today through this line |
state | object | Latch state from the previous pre-flight's state |