Zerodust

io.github.andresdefiPublished by GitHub account andresdefiv0.5.1Updated Oct 24, 2026

Recover stranded native gas: empty a chain's balance to exactly zero on 25 EVM chains.

VerifiedStreamable HTTPWeb executableCloud & InfrastructureFinance

Overview

AI-generated overview

Sweeps a wallet's native gas balance to exactly zero on EVM chains, sending it to the same or another chain.

What you can do
  • Sweep a wallet's entire native gas balance to exactly zero on supported EVM chains
  • Send the swept value to an address on the same chain or bridge it to another chain
  • Quote routes and fees before executing, with a signed cap on the total fee
  • Register an API key for higher rate limits
  • Sign sweeps locally with a private key, keystore or external signer module
When to use it
Useful when you want an assistant to recover small stranded gas balances left on EVM chains and consolidate them, either to the same wallet on another chain or to a chosen destination.
Requirements
Runs as a local npm package over stdio, or as a remote endpoint. Sweep tools stay off unless ZERODUST_ALLOW_EXECUTE is set to true and a signing key is supplied via ZERODUST_PRIVATE_KEY, ZERODUST_PRIVATE_KEY_FILE, a keystore with ZERODUST_KEYSTORE_PASSWORD or ZERODUST_KEYSTORE_PASSWORD_FILE, or ZERODUST_SIGNER_MODULE. ZERODUST_API_KEY is optional for higher rate limits; ZERODUST_ALLOWED_DESTINATIONS restricts where funds may go. Network access to the ZeroDust API is required.
Before you install
Sweeping moves real funds and spends gas; fees are 1% of the swept value (5% under $1) plus gas and bridge fees. The server can hold a private key or keystore password, so prefer the file-based variables over inline ones. The README states the agent packages and hosted endpoint are paused and deprecated, and that the contracts have not been externally audited. The agent can issue itself an API key without human signup.

Installation

In SourceWeft

  1. Open Zerodust in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Web executable via Streamable HTTP. Remote servers run from the web runtime once configured in a workspace.

Use with an agent

Paste this prompt into Claude Code, Codex, Cursor or another agent — or into SourceWeft chat. The agent reads this server's install guide, shows you its publisher, endpoint and sign-in, and adds it to your client once you agree. Keys never go into a command.

Read https://sourceweft.com/mcp/io.github.andresdefi%2Fzerodust/install.md and connect the MCP server it describes to my client. Before changing any config, show me its publisher, endpoint and sign-in method and wait for my OK. Never put an API key in a command or in a file I would commit; ask me where it should come from.

Read the install guide the agent follows

Other MCP clients

Add this to your client's mcpServers config.

{
  "mcpServers": {
    "zerodust": {
      "type": "http",
      "url": "https://api.zerodust.xyz/mcp"
    }
  }
}

README

ZeroDust

Empty a wallet's native gas balance on an EVM chain to exactly 0.

A normal transfer cannot send a whole native balance, because paying for the transfer uses the token being sent. ZeroDust sends all of it, to any address on the same chain or bridged to another chain, and the wallet ends at exactly 0 wei. Live at zerodust.xyz, with an API at https://api.zerodust.xyz and developer docs at zerodust.xyz/docs.

This repository holds the contracts, the TypeScript SDK and the agent packages.

How it works

  • Sponsored chains (EIP-7702): the wallet signs a SweepIntent and two EIP-7702 authorizations (one delegating to the ZeroDust contract, one removing it afterwards). A ZeroDust sponsor executes the sweep and pays the gas, reimbursed from the swept balance. The contract runs as the wallet and reverts unless the balance ends at exactly 0.
  • MetaMask without a key: MetaMask's Advanced Permissions (ERC-7715) grant ZeroDustPermissionRouter a one-time allowance per chain; one EIP-712 signature covers every chain. The router redeems it, requires exactly 0, and settles like the contract. 16 chains.
  • Direct chains (no EIP-7702): the wallet sends its own legacy transactions, sized to the wei by the API's planner (22 chains). On OP-stack chains with an L1 data fee it goes through ZeroDustGuard; on ZK-stack chains a ZeroDust paymaster pays the gas.
  • What arrives: the destination's native gas, carried by Relay, Across (ETH to ETH), Stargate or Gas.zip, whichever delivers the most. A few chains whose coin no gas bridge carries deliver it as a token instead (Mitosis, Endurance, Intuition, Telos, 0G), said plainly in the quote. On request a sweep can also go into the chain's own bridge to Ethereum (to BNB Chain for opBNB), which the recipient proves and claims there later; Fraxtal's FRAX arrives on Ethereum as the FXS token.

For AI agents (paused)

The agent packages (@zerodust/mcp-server, @zerodust/ai-sdk, @zerodust/langchain) are paused and deprecated on npm, and the hosted MCP endpoint and agent key signup are switched off. The local MCP server and the SDK still sweep through the public API with your own key; keys issued before keep their rate limits. To sweep, use zerodust.xyz.

PackageUse
@zerodust/sdkTypeScript client and agent (createAgentFromPrivateKey); the website uses it
@zerodust/mcp-serverMCP server, run locally (paused)
@zerodust/langchainLangChain tools (paused)
@zerodust/ai-sdkVercel AI SDK tools (paused)

Contracts

ContractAddress (same on every chain, CREATE2)Where
ZeroDustSweep (contracts/src/ZeroDustSweepMainnet.sol)0x3732398281d0606aCB7EC1D490dFB0591BE4c4f2the 55 sponsored chains below
ZeroDustPermissionRouter v2 (contracts/src/ZeroDustPermissionRouter.sol)0x369A97dd256F7eb37fF7116C4EcBd50318eBb28616 chains with MetaMask Advanced Permissions
ZeroDustGuard (contracts/src/ZeroDustGuard.yul)0x2f95e6ED90a7dD67fc3Fae5c5628647E6A83e48eBlast, Boba
ZeroDustPaymaster (contracts-zk/)0x986e4Bb55AEEE6a8c80c28Ca787b13E216fD25B8zkSync Era, Abstract, Lens

All are immutable: no admin functions, no upgrades, no pause (the paymaster's owner can only change its approver and withdraw its float). The sweep contract's sponsor address is fixed in its bytecode.

Supported chains

55 sponsored chains, generated from the live API (GET https://api.zerodust.xyz/chains):

ChainIDTokenChainIDToken
Ethereum1ETHArc5042USDC
Optimism10ETHKaia8217KAIA
BNB Chain56BNBBase8453ETH
Gnosis100xDAIPlasma9745XPL
Unichain130ETH0G166610G
Polygon137POLApechain33139APE
Sonic146SMode34443ETH
Manta Pacific169ETHMythos42018ETH
X Layer196OKBArbitrum42161ETH
Fraxtal252FRAXArbitrum Nova42170ETH
Shape360ETHCelo42220CELO
World Chain480ETHHemi43111ETH
Endurance648ACEZircuit48900ETH
Stable988gUSDTInk57073ETH
Intuition1155TRUSTLinea59144ETH
Sei1329SEIBOB60808ETH
DATA Network1514DATABerachain80094BERA
Pharos1672PROSCodex81224ETH
Reya1729ETHDoma97477ETH
Metal L21750ETHPlume98866PLUME
Soneium1868ETHMitosis124816MITO
Ronin2020RONTaiko167000ETH
Morph2818ETHHPP190415ETH
RISE4153ETHScroll534352ETH
MegaETH4326ETHGensyn685689ETH
Robinhood Chain4663ETHKatana747474ETH
Mantle5000MNTZora7777777ETH
Somnia5031SOMI

Regenerate or check this table with node scripts/generate-chain-docs.mjs (--check runs in CI); do not hand-edit it. The 19 direct chains are listed by GET https://api.zerodust.xyz/direct/chains: Flare, Cronos, Rootstock, Telos, XDC, Fuse, Monad, opBNB, Lens, Boba, zkSync Era, Flow EVM, HyperEVM, Metis, Vana, Abstract, Immutable zkEVM, Etherlink and Avalanche. Destinations are any EVM chain a bridge delivers native gas to (GET /destinations?fromChainId=), over 100 from Base.

Fees

1% of the swept value, at least $0.05 and at most $0.50; balances under $1 pay 5%, with no minimum. On top: the sweep's gas (and the L1 data fee on rollups) and, cross-chain, the bridge's fee. The signed maxTotalFeeWei caps what can be taken, so a gas spike cannot exceed what you agreed to.

Security

  • No custody: every sweep is one atomic transaction from the wallet itself.
  • The signed intent caps the fee and names the destination; for a bridge route routeHash (keccak256(callData)) binds the signature to that exact call.
  • Every sponsored transaction is simulated before it is sent.
  • ERC-7201 namespaced storage, so the contract's nonce never collides with another EIP-7702 app.
  • Internal security review, 7 rounds, 16 issues found and fixed; contract tests drive a real EIP-7702 delegation and are mutation-verified. Not externally audited, and no audit is currently funded. Details: contracts/SECURITY.md, contracts/SECURITY_REPORT.md.

Layout

contracts/      Foundry: ZeroDustSweepMainnet.sol, ZeroDustPermissionRouter.sol, ZeroDustGuard.yul,                tests, deploy scripts and broadcasts (README, SPECIFICATION, DEPLOYMENT, SECURITY)contracts-zk/   ZeroDustPaymaster for ZK-stack chains (Hardhat + zksolc)sdk/            @zerodust/sdkpackages/       @zerodust/mcp-server, @zerodust/ai-sdk, @zerodust/langchainskills/         an agent skill for ZeroDustscripts/        generate-chain-docs.mjs

License

MIT, see LICENSE.

Source: README.md at commit 560f06d

Tools

0
SourceWeft has not read this server's tools yet.

Version history

5
  1. v0.5.1LatestOct 1, 2026
  2. v0.4.1Oct 1, 2026
  3. v0.4.0Sep 29, 2026
  4. v0.3.2Sep 27, 2026
  5. v0.3.1Sep 16, 2026

Score

85% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 daysRequired25 pts
  • Auth declaredRequired10 pts
  • Tools listedRequired15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts