
Zerodust
io.github.andresdefi由 GitHub 账号 andresdefi 发布v0.5.1更新于 Oct 24, 2026
Recover stranded native gas: empty a chain's balance to exactly zero on 25 EVM chains.
概览
在 EVM 链上把钱包的原生 gas 余额清空到恰好为零,可留在同链或跨链发送。
- 可以做什么
- 在支持的 EVM 链上把钱包全部原生 gas 余额清空到恰好为零
- 把清出的资金发到同链地址,或通过跨链桥发到其他链
- 执行前获取路由与费用报价,并以签名设定总费用上限
- 注册 API 密钥以获得更高频率限制
- 用私钥、keystore 或外部签名模块在本地完成签名
- 适用场景
- 适合让助手回收散落在各条 EVM 链上的小额 gas 余额并集中处理,例如转到另一条链上的同一钱包或指定地址。
- 运行要求
- 以本地 npm 包通过 stdio 运行,或使用远程端点。清空工具默认关闭,需将 ZERODUST_ALLOW_EXECUTE 设为 true,并提供签名密钥:ZERODUST_PRIVATE_KEY、ZERODUST_PRIVATE_KEY_FILE、配合 ZERODUST_KEYSTORE_PASSWORD 或 ZERODUST_KEYSTORE_PASSWORD_FILE 的 keystore,或 ZERODUST_SIGNER_MODULE。ZERODUST_API_KEY 可选,用于提高频率限制;ZERODUST_ALLOWED_DESTINATIONS 可限制资金去向。需要能访问 ZeroDust API 的网络。
安装
在 SourceWeft 中
- 打开 控制台中的 Zerodust,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。
交给智能体安装
把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。
阅读 https://sourceweft.com/mcp/io.github.andresdefi%2Fzerodust/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。其他 MCP 客户端
把它添加到你客户端的 mcpServers 配置中。
{
"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
SweepIntentand 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
ZeroDustPermissionRoutera 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.
Contracts
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):
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
License
MIT, see LICENSE.
来源:README.md,提交 560f06d
工具
0版本历史
5- v0.5.1最新Oct 1, 2026
- v0.4.1Oct 1, 2026
- v0.4.0Sep 29, 2026
- v0.3.2Sep 27, 2026
- v0.3.1Sep 16, 2026
评分
已满足适用检查项的 85%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通必需25 分
- 已声明认证方式必需10 分
- 已列出工具必需15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分