Funding and gas
Describes Orbit 0.1.9 ·What changed ·Markdown
This page covers money coming in and going out of your wallet, and the small amounts of gas Orbit’s own wallets spend to send transactions. The first part is in plain words; the sections after it are the agent’s workflow. You can always take your money out yourself.
In plain words
Section titled “In plain words”Putting money in
Section titled “Putting money in”Your first wallet is on Base. To fund it:
- Ask your agent for your wallet’s address and network, or read them on your Orbit page. Always copy the address from what Orbit shows now, never from an old message.
- From your own wallet app or an exchange, send a supported token to that address, on that network. Your agent tells you which tokens Orbit supports for your wallet.
- Send a small test first. Check it arrived, then send the rest.
Sending on the wrong network, or to a wrong address, can lose the money for good. That is why the small test matters. Check every character of the address, not just the first and last few.
If you only have money in a bank, you first buy a supported token (for example a dollar stablecoin) on a regulated exchange available in your country, then send it to your wallet. Orbit never moves money from outside your wallet; you do every transfer in.
Gas: why your agent’s wallet needs a little ETH
Section titled “Gas: why your agent’s wallet needs a little ETH”Every action on a blockchain costs a small network fee, called gas. It is paid in the network’s own coin: ETH on Base and Ethereum, HYPE on HyperEVM.
Your agent’s wallet is the one that sends each action, so it pays the gas, not your wallet. That is why it needs a small amount of ETH. Orbit’s protection key also needs a little, so the watchdog can pause your wallet in an emergency.
Gas Top Up keeps them filled without asking you each time:
- You list which wallets may receive gas, and a fixed amount per top-up.
- When one runs low, your agent refills it from your wallet, by that fixed amount.
- The refill is paid from wrapped ETH (WETH) held in your wallet. If there is none, your agent may swap a little into WETH first, only what the refill needs.
- “Receiving gas gives these wallets no control over your wallet.”
- It does not refill by itself: your agent runs each refill when it sees a wallet running low.
If Gas Top Up is off, your agent asks you when its gas runs low.
The first gas, from your Orbit page. In setup, the funding screen has a Send … from your wallet button that sends exactly the amount Orbit shows to your agent’s wallet, from the wallet you connected. “About $X” shows under the amount when Orbit can read a trusted price, and nothing when it can’t. If your wallet doesn’t give a clear answer, the page says “Your wallet didn’t confirm it. Check your wallet’s activity before sending again.” and offers no retry.
Protection’s gas. When you approve your first setup on your Orbit page, the Approve screen shows how much protection’s gas may cost (“Orbit also turns on protection: up to …”). Your approval covers that first turn-on only. Later top-ups of the protection key’s gas ask you as before: “Your guardian needs a little gas to keep protecting your wallet.” with the amount, the network fee and Approve and turn on protection. While gas you already approved is on its way, the page says “Protection is waiting for gas on Ethereum. Once it arrives, you can turn it on.” (naming the network) and checks again by itself; it is not an error.
Moving money between your own wallets on different networks
Section titled “Moving money between your own wallets on different networks”If you have wallets on more than one network (for example Base and Ethereum), your agent can move money between them (see Bridging). On your Orbit page this shows as “Move money to another network”.
- The money goes from one of your wallets to your own wallet on the other network.
- It is not instant. It is counted as arrived only when the other network shows it.
- Nothing needs to stay open. Whenever Orbit next runs, it moves the transfer along and finishes it. There is nothing for you to sign.
- Your Portfolio may show “Plus a move between networks on its way” while it travels.
Taking money out
Section titled “Taking money out”You have two ways.
Ask your agent. It can close positions and bring money back into your wallet’s own balance. Closing is allowed even when your limits hold back new positions. If the protection key has paused your wallet, your agent can’t do anything, closes included, until it is unpaused; you can still move money yourself in the Safe app. To send money to another wallet of yours, your agent needs Token Transfers with that wallet on the approved list.
Do it yourself in the Safe app. This always works, whatever state Orbit is in:
- Open your wallet in the Safe app.
- Create a transaction that sends the tokens where you want.
- Sign with your approval keys (as many as your wallet needs), and send it.
Money that is inside a position (a savings vault, for example) usually needs to be taken out of the position first. Your agent can do that for you, or a person helping you can do it in the Safe app.
For agents: who pays for what
Section titled “For agents: who pays for what”This part is for agents handling money coming into the Safe and the gas Orbit’s own wallets spend: the Safe’s funding, the operator’s gas, the spending plan, Gas Top Up, guardian funding and moving gas between networks through Relay. As of Orbit 0.1.9.
Live answers win: health_check (per Safe gas_status), verify_setup, get_funding_plan and get_protection_plan say what is true now.
| Wallet | Holds | Pays for | Refilled by |
|---|---|---|---|
| The Safe | The owner’s money | Nothing directly; positions, swaps, bridges and subscription payments move its tokens | The owner (deposits), or the owner’s other Safes (bridging) |
| Operator (the agent’s wallet) | A little native gas | Every transaction the agent sends: actions, setup sends, claims, refills | The owner once on Base at setup; then Gas Top Up from the Safe’s wrapped gas token; or Relay from Base for other networks |
| Guardian | A little native gas | The pause() transaction the watchdog sends when it trips |
Gas Top Up (guardian row), the spending plan, or the operator’s own gas |
Orbit never moves the owner’s outside funds. The owner does every transfer into the Safe.
Funding the Safe
Section titled “Funding the Safe”When setup completes on an empty Safe, get_onboarding_status.completion gives the funding ask: the network, the Safe’s address and the supported first-action tokens. Read them from Orbit (get_onboarding_status or list_safes), never from memory or an old message.
- In plain words: “send
on to your Safe’s address”, naming the tokens and network completiongives (orget_first_actionwhen the list is empty). - Name the network exactly. The same address on the wrong network can mean lost or stuck funds.
- Show the full address alone on its own line in code formatting. Never shorten it.
- Suggest a small test transfer first.
- After the owner says it is sent, read
get_balancesonce withfresh: true. If everything is zero, say nothing has arrived yet. - Money already in another of the owner’s Safes can move across networks instead: see Bridging.
The orbit-funding-the-safe guide covers wallets, exchanges and bank money. Never name or recommend an exchange, and never ask for logins or keys.
The operator’s own gas at setup
Section titled “The operator’s own gas at setup”In the 0.1.4-and-later setup flow, one figure on Base covers the whole setup on every configured network. The owner sends it once to the agent’s wallet on Base. Other networks are paid from it later through Relay, so the owner needs gas on no other network. While the Safe still needs package access, the figure includes the most that can cost (package_access row, package_access_included_wei).
The operator funding answer adds send_amount_usd, the dollar value of send_amount rounded up to the cent, when Orbit can read a fresh reference price for the network’s wrapped ETH from a configured Safe’s module on that network. With no such Safe or price, the field is left out; Orbit never guesses. A brand-new first setup therefore usually has no dollar figure.
In a first setup in chat, the gas deposit is not consent to start. After the gas arrives, tell the owner, show the package access amount and ask “Start?”, then stop. Only after they reply, call run_quick_setup with owner_started: true; without it, first setup refuses with owner_start_needed before creating the Safe. The setup page wizard, adding a network and an existing Safe are not gated this way.
A gas balance below its usual reserve is still “funded” when it can pay for one action: verify_setup reports it funded with an advisory. Keep working and offer a top-up. It is missing only when it cannot pay for one action.
The agent’s gas is judged at the fee its next send actually pays. When the agent’s wallet is short, the simulation says so (policy.operator_gas) and execute_action refuses before sending with operator_gas_short (balance_wei, needed_wei, next). Nothing was sent; top up, then simulate again.
The spending plan
Section titled “The spending plan”Instead of approving each spend during setup, the owner approves one plan.
get_funding_planwithchainsnaming every network the owner chose, including ones with no connection yet (priced through Orbit’s default). Call it once at the start. It saves the plan and sends nothing.refresh: truemakes a new plan when the current one is not in force.- Show the plan’s facts: per network, each spend Orbit may make (gas moved from Base to the agent’s wallet on another network through Relay, the guardian’s gas, package access) with its destination and caps, and the reserve the agent keeps.
- The owner approves with a click on the owner page, or with a signature from chat:
present_funding_plan_for_signing, pastesigning_link, thensubmit_funding_plan_signaturewith theconfirmreference and the pasted signature. The chat route works only once the Base Safe that pays exists; before that, it refuses and the approval is on the owner page. The signer must be a current owner of the paying Safe, never the agent’s wallet. The link alone approves nothing. In a first setup in chat the usual path is the direct gas ask fromrun_quick_setup, then “Start?” (see above). run_funding_planwhenever setup moves on, until it says everything is done. Each part is priced again by its own planner and sent only if it fits its approved line. Parts not due yet wait. If it answersdata.code: "plan_busy"(retry: true), another run (the agent, a page reload, a second tab) holds the plan: try again in a moment. It is not a stop.
Anything outside the plan stops the whole plan and sends nothing more; it then needs a new plan and a new approval. Never ask again for a spend the plan covers.
When get_funding_plan cannot make a plan, its error data carries code and retry:
code |
Meaning |
|---|---|
source_gas_short, source_reserve_short |
The agent’s wallet on Base needs more gas; the words say how much. Relay them as they stand |
gas_price_unavailable |
Try again shortly |
gas_route_refused |
Relay the reason |
above_approved_plan |
The spend is above what the owner approved; a new plan and approval are needed |
Gas Top Up: refilling from the Safe
Section titled “Gas Top Up: refilling from the Safe”Gas Top Up is an optional permission the owner approves by signing the batch that carries it. In first setup it is offered on, and the owner can turn it off; the setup answer and the owner page show whether it is in. It lets the agent unwrap a fixed amount of the Safe’s wrapped gas token (WETH on Base and Ethereum, WHYPE on HyperEVM) and send it as native gas to a fixed recipient: the operator or the guardian.
- Each call sends the fixed amount. It is repeatable; it is not a cumulative cap. Nothing runs it automatically: the agent runs each refill.
- It pays only from the wrapped gas token. A Safe holding only USDC cannot refill gas until it holds some WETH (or WHYPE).
- The recipients and amounts are what the owner signed. On HyperEVM a HyperCore system address is never a gas recipient.
Reading the refill rows
Section titled “Reading the refill rows”health_check gives per Safe a gas_status block with operator, guardian, safe_wrapped_native and refill_affordability rows. Each row names the action, role, amount_base_units, sufficient_wrapped_balance, shortfall_base_units, a source_note for the owner and an agent_next for you.
When the Safe has no wrapped gas token
Section titled “When the Safe has no wrapped gas token”When the row says the Safe holds too little of the wrapped token but holds another token that passed the swap check, agent_next says no owner step is needed. Swap only the shortfall:
get_swap_quotefrom the Safe’s USDC into WETH for aboutshortfall_base_unitsof WETH. Check thatexecutableis true.simulate_actionwithcall: {"kind": "swap", "quote_id": "<id>"}, relayin_words.execute_actionpromptly, with the same call, thesim_receiptand anidempotency_key.- Then run the refill.
Do not over-swap: swap only the row’s shortfall, not a reserve of your own choosing. Relay source_note to the owner when they ask. Ask the owner only when your own wallet has no gas left to send the refill, or the Safe holds nothing that can be swapped.
Running the refill
Section titled “Running the refill”The operator’s refill is the Gas Top Up position’s harvest action (the row’s action; also in list_actions). It takes no params: the recipient and the fixed amount are inside the signed permission, so the amount cannot be chosen at run time, and a different amount needs a permission update. There is no dedicated operator tool; simulate and execute it like any harvest:
{"tool": "simulate_action", "args": {"safe": "<base-safe>", "call": {"kind": "harvest", "action": "<the row's action, exactly>", "params": {}}}}The guardian’s refill has its own tool: fund_guardian checks operator gas and the Safe’s wrapped balance, simulates and executes through policy, verifies the native balance and prepares the watchdog. An already sufficient balance sends nothing. Token transfers to the guardian are refused: guardian gas must be native.
A top-up cannot bootstrap its own transaction gas: the operator needs a little native gas to send it.
Changing Gas Top Up values
Section titled “Changing Gas Top Up values”get_gas_top_up (with chain, and safe when the network has more than one) shows the draft, what is active and the current revision. save_gas_top_up_draft takes chain, safe, expected_safe and expected_revision (from the current get_gas_top_up read; required once a Safe exists) and values in native decimal units. Then compose a permission update with the Gas Top Up package named in add_packages and its gas_top_up_revision; a compose that names only another package does not carry gas changes, and its answer does not say the draft was left out. See Package changes. skip_gas_top_up, with the same chain, safe, expected_safe and expected_revision, leaves Gas Top Up out without touching an active permission.
Guardian funding and protection
Section titled “Guardian funding and protection”The agent’s first live action on a network waits until the guardian has gas and the watchdog watches the Safe.
- After the owner’s setup batch executed,
get_protection_planwithsafe. It prefers a verified active Safe Gas Top Up, with a bounded wrapped-native shortfall conversion, and otherwise shows the operator-native fallback, keeping the operator’s reserve. Itsplainblock gives the figures the owner reads (amount,estimatedFee,operatorReserve,fundingCap,shortfall), each a short amount with the network’s unit, rounded up; show those, not the base-unit fields. A guardian that already has its gas gets a rebuilt plan with nothing to send, never a cached amount. - If it names
already_approved_by(the owner’s executed setup, the setup approval or the spending plan covers it), follow itsnextwithout asking again. Under a spending plan,run_funding_planpays the guardian first; until that gas arrives,enable_guardian_protectionrefuses withcode: protection_waiting_for_gas(retry: true), the owner’s sentence, and your step (run the spending plan) innext. - Otherwise show the route, amount, fee budget and reserve, get the owner’s approval of that spend, then
enable_guardian_protectionwith the plan revision shown. It reads the guardian’s balance again at send time: a guardian that already has its gas gets nothing, protection turns on with no transfer, and the answer saysnothing_to_send: true. - Protection is confirmed only from verified funding and a healthy watchdog cycle, never from a sent transfer.
Small fee moves don’t need a new approval. While the gas price stays within the plan’s reviewed gas ceiling and today’s network fee fits the approved fee budget, the same approval covers a refreshed plan; nothing is ever sent above the funding cap the owner was shown. When a new approval is really needed, enable_guardian_protection’s next starts with what changed (“Network fees moved beyond what the user approved”, “The guardian now needs more than the funding cap the user approved”, or “The funding plan changed from the one the user approved”), then the usual step: show the new plan and call again with the revision it shows once the owner approves.
A guardian out of gas. When protection was on and the guardian has run out, prepare_watchdog answers status: needs_gas with plain owner_words (with the amount), the protection_plan to top up (with its plain figures) and next. Nothing is started or sent. A gas read that couldn’t tell still refuses as before.
Protection with the setup approval
Section titled “Protection with the setup approval”On the owner page, a first setup turns protection on with the setup approval, with the owner’s own consent:
- The setup review carries
protection_disclosure(see The setup review): the plain line and the limits it binds, worked out by the same pre-setup rule a spending plan uses, so no module is needed yet. They are saved once against that batch’s digest. When a spending plan has a guardian line for this Safe, the line uses its figures and rounding, so both screens show the same amount. - The owner confirms that line on the owner page when approving. Showing it is not consent, and no agent tool can confirm it.
- Once that exact batch has run, Orbit builds a fresh plan under the disclosed gas ceiling and fee budget, and turns protection on only if the plan stays inside every disclosed limit and scope.
run_quick_setupreports it in itsprotectionfield (turned_on_by: "setup_approval"), and the consent record saysapproved_by: "setup_approval". The same applies when yourenable_guardian_protectionfollowsalready_approved_by: "setup_approval"fromget_protection_plan, whosenextsays “this first time only”. - If the fresh plan is outside those limits, nothing is sent; the answer names the reason (network fees moved, the guardian needs more than the approved amount, or a wallet in the plan changed), and the owner turns protection on as before.
- The setup approval covers protection’s first turn-on for that batch only, and its use is recorded before anything is sent. If protection comes on another way first (the guardian already had its gas, a spending plan paid it, or it was turned on explicitly), the setup approval is marked used. Later guardian top-ups follow the usual approval rules.
- On the chat path, or when no line was shown, protection is asked for after setup, as before.
The explicit fallback from the operator’s own gas: prepare_operator_guardian_funding, review it, then execute_operator_guardian_funding with the plan_id; get_operator_guardian_funding_status observes it. This transfer alone does not start protection.
A guardian below its usual reserve (often a gas spike) is still protected; verify_setup reports it funded with an advisory. Protection is down only when the guardian cannot pay for one pause or no healthy watchdog cycle is reported.
Moving gas between networks with Relay
Section titled “Moving gas between networks with Relay”Relay is used for the operator’s and guardian’s gas only, never for the owner’s money.
prepare_gas_routewithfrom_chain(defaultbase),to_chain, and eithersafe(fund the agent’s wallet there, up to what setup still needs) orrecipient(the guardian, up to its gas floor). Relay’s addresses come only from a curator-signed Gas Top Up package (installed or in the signed catalog). The agent keeps its own reserve on the source. Nothing is sent.- Show the returned sentence: amount, fee cap, reserve kept on Base, receiving wallet. Get explicit approval.
send_prepared_gaswith theplan_id. It re-asks Relay within the reviewed bounds, rechecks everything, simulates and signs once.get_gas_send_statuswithplan_iduntil it says delivered, refunded or failed. Relaystatus_line.
Never sign a Relay deposit outside Orbit.
When adding a network, run_quick_setup offers this at its gas stop, and the spending plan can cover it.
Core HYPE on HyperEVM
Section titled “Core HYPE on HyperEVM”The Safe’s Hyperliquid trading account sometimes needs HYPE (for example before a withdraw). That is an owner batch, not a Gas Top Up:
prepare_core_hype_top_upwithsafe,expected_safe,expected_chain_idandamount_hype(HYPE, decimal string). It unwraps WHYPE to the Safe when native HYPE is short, then sends HYPE from the Safe to HyperCore. The owner executes it in the Safe app.- It is refused until the Safe has a Hyperliquid account (
core_account_missing; the first USDC deposit creates it) or when Orbit cannot confirm one (core_account_unconfirmed). get_core_hype_top_up_statusconfirms execution from the Safe’s own execution event.
Returning leftover gas
Section titled “Returning leftover gas”At teardown, prepare_gas_return with safe, expected_safe, expected_chain_id, wallet (operator or guardian) and recipient (a current owner of that Safe, or the Safe itself). Show the sentence, get approval, then send_prepared_gas with the plan_id. When it empties the guardian while protection is on, say first that the guardian will no longer be able to pause the Safe, and pass confirm_protection_stops: true on send_prepared_gas (not on prepare_gas_return) only after the owner agrees.
Common refusals
Section titled “Common refusals”| Refusal | Meaning |
|---|---|
| Gas Top Up recipient is a HyperCore system address | Never a gas recipient; offer the Core HYPE top-up instead |
fund_guardian: the Safe cannot fund this fixed top-up |
Swap the wrapped-native shortfall yourself if the row’s agent_next says so; otherwise relay source_note |
| “a top-up cannot bootstrap its own transaction gas” | The operator has no native gas at all; it must be funded directly |
core_account_missing |
The Safe has no Hyperliquid account yet; deposit USDC first |
protection_waiting_for_gas (retry: true) |
The approved spending plan pays the guardian’s gas first; run it, then try again once the gas has arrived |
prepare_watchdog → status: needs_gas |
The guardian ran out of gas; relay owner_words and show the protection_plan top-up |
Pitfalls seen in real agents
Section titled “Pitfalls seen in real agents”- Swapping a large amount of USDC into WETH “to be safe”. Swap only the refill’s shortfall.
- Asking the owner to send gas when the Safe could refill it through Gas Top Up after a small swap.
- Using Relay or a bridge for the owner’s money. Relay moves gas only; the owner’s USDC moves with Bridging.
- Treating a deposit to the agent’s wallet as approval to spend it.