Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Sweeps native gas from a retired EVM wallet to its replacement across all active chains using LI.FI's moveNativeFundsToNewWallet script.
Use this skill ↓36% 86%+50 ptsof test cases passed
Passed 19 of 22 test cases with the skill, and 8 of 22 without it.
3 of 3 safety checks passed
Not used yet
Multi-chain native-gas sweep from a rotated-out SC wallet to its new replacement, run as the funding step of a wallet rotation. Wraps script/tasks/moveNativeFundsToNewWallet.ts, which iterates every active EVM chain and moves the native balance (minus a gas reserve) from the wallet the private key controls into the new address. This skill is the funding primitive that rotate-dev-wallet, rotate-deployer-wallet, and rotate-pauser-wallet call — it does not itself change any on-chain role or config; it only moves gas so the new wallet can operate.
Use when:
rotate-* skill reaches its funding step (old wallet drained → new wallet bootstrapped).Do NOT use when:
request-dev-funds (PR to the automate-wallet) or a single manage-wallet-funds send.manage-wallet-funds in send mode (explicit-confirm-gated, one network/recipient).Required:
--new-address, EVM 0x…) — the rotation's replacement wallet; the sweep destination.Optional:
--old-key-env, default PRIVATE_KEY_PRODUCTION in prod / PRIVATE_KEY staging) — which .env key controls the rotated-out wallet. Maps to the script's --privateKeyEnvKey..env PRODUCTION=true double-opt-in rail. Selects the default --old-key-env (PRIVATE_KEY_PRODUCTION when set, PRIVATE_KEY otherwise).cast balance) and stop before any broadcast. moveNativeFundsToNewWallet.ts itself has no dry-run flag — never pass --check to it; citty silently ignores unknown flags and the script would broadcast a live sweep.The old (source) wallet is never taken as input — it is derived from the key (see Guardrails). If --new-address is missing or not a valid EVM address, ask once and stop.
cast wallet address, inside a subshell, never echoed — and never read from config/global.json (the key and config can diverge mid-rotation; a wrong source makes a funded wallet look empty). Confirm the derived source matches the role's current on-chain address before sweeping.manage-wallet-funds send: render the per-network report and require explicit human confirmation before any broadcast. An agent must never self-approve. --check needs no confirmation (it moves nothing).moveNativeFundsToNewWallet.ts sweeps native last within itself; the ordering rule here is about where this skill sits in a rotation.)Next to this one in the catalogue, plus more from the same author.