# Send ZeroDust Chain Exit to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "zerodust-chain-exit",
    "name": "ZeroDust Chain Exit",
    "source": "tencent",
    "type": "skill",
    "category": "AI 智能",
    "sourceUrl": "https://clawhub.ai/zerodustxyz/zerodust-chain-exit",
    "canonicalUrl": "https://clawhub.ai/zerodustxyz/zerodust-chain-exit",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/zerodust-chain-exit",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=zerodust-chain-exit",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "README.md",
      "SKILL.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "zerodust-chain-exit",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-04T15:01:47.561Z",
      "expiresAt": "2026-05-11T15:01:47.561Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=zerodust-chain-exit",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=zerodust-chain-exit",
        "contentDisposition": "attachment; filename=\"zerodust-chain-exit-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "zerodust-chain-exit"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/zerodust-chain-exit"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/zerodust-chain-exit",
    "downloadUrl": "https://openagent3.xyz/downloads/zerodust-chain-exit",
    "agentUrl": "https://openagent3.xyz/skills/zerodust-chain-exit/agent",
    "manifestUrl": "https://openagent3.xyz/skills/zerodust-chain-exit/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/zerodust-chain-exit/agent.md"
  }
}
```
## Documentation

### ZeroDust Chain Exit

ZeroDust enables sweeping native gas tokens to exactly zero balance using EIP-7702 sponsored execution. This only works on chains that support EIP-7702 (not all EVM chains).

### When to Use This Skill

Activate when the user wants to:

Fully exit a blockchain (move all native tokens out)
Sweep dust/small balances from wallets
Transfer 100% of their balance with zero remainder
Empty a wallet completely
Consolidate funds from multiple chains

### Trigger Phrases

"exit this chain completely"
"transfer all my balance from [chain]"
"sweep my dust"
"empty this wallet"
"move everything to [chain]"
"leave zero balance"

### Supported Chains (25 EIP-7702 Compatible)

ChainIDNative TokenEthereum1ETHBSC56BNBBase8453ETHArbitrum42161ETHOptimism10ETHPolygon137POLGnosis100XDAIScroll534352ETHZora7777777ETHMode34443ETHMantle5000MNTCelo42220CELOFraxtal252FRAXUnichain130ETHWorld Chain480ETHBerachain80094BERAInk57073ETHPlasma9745XPLBOB60808ETHStory1514IPSuperseed5330ETHSei1329SEISonic146SSoneium1868ETHX Layer196OKB

Note: Chains like Avalanche, Blast, Linea, and Apechain do NOT support EIP-7702 and cannot be swept.

### API Base URL

https://zerodust-backend-production.up.railway.app

### Step 1: Register for API Key (One-Time)

curl -X POST https://zerodust-backend-production.up.railway.app/agent/register \\
  -H "Content-Type: application/json" \\
  -d '{
    "name": "My OpenClaw Agent",
    "agentId": "openclaw-unique-id"
  }'

Response:

{
  "apiKey": "zd_abc123...",
  "keyPrefix": "zd_abc12",
  "keyId": "uuid",
  "keyType": "agent",
  "rateLimits": { "perMinute": 300, "daily": 1000 },
  "message": "IMPORTANT: Save your API key now - it will not be shown again!"
}

Store apiKey as the ZERODUST_API_KEY environment variable.

### Step 2: Get Quote

Check the user's balance and fees before sweeping:

curl "https://zerodust-backend-production.up.railway.app/quote?userAddress=0xUSER&fromChainId=42161&toChainId=8453&destination=0xDEST"

Response:

{
  "quoteId": "uuid",
  "fromChainId": 42161,
  "toChainId": 8453,
  "userAddress": "0x...",
  "destination": "0x...",
  "balance": "500000000000000",
  "balanceFormatted": "0.0005",
  "estimatedReceive": "485000000000000",
  "estimatedReceiveFormatted": "0.000485",
  "totalFeeWei": "15000000000000",
  "serviceFeeWei": "5000000000000",
  "gasFeeWei": "10000000000000",
  "expiresAt": "2026-02-04T16:00:00Z"
}

### Step 3: Get Authorization Data

Get the EIP-712 typed data for signing:

curl -X POST https://zerodust-backend-production.up.railway.app/authorization \\
  -H "Content-Type: application/json" \\
  -d '{"quoteId": "uuid-from-quote"}'

Response contains typedData (EIP-712 for sweep) and eip7702 (delegation parameters).

### Step 4: User Signs Messages

The user must sign:

EIP-7702 delegation authorization - Delegates their EOA to ZeroDust contract
EIP-7702 revoke authorization - Pre-signed revocation (executed after sweep)
EIP-712 sweep intent - Authorizes the specific sweep parameters

### Step 5: Submit Sweep

curl -X POST https://zerodust-backend-production.up.railway.app/sweep \\
  -H "Content-Type: application/json" \\
  -d '{
    "quoteId": "uuid",
    "delegationSignature": "0x...",
    "revokeSignature": "0x...",
    "sweepSignature": "0x..."
  }'

Response:

{
  "sweepId": "uuid",
  "status": "pending",
  "txHash": null
}

Poll GET /sweep/{sweepId} for status updates until status: "completed".

### Convenience Endpoint: Combined Quote + Auth

For agents, use this single endpoint to get quote and auth data together:

curl -X POST https://zerodust-backend-production.up.railway.app/agent/sweep \\
  -H "Content-Type: application/json" \\
  -H "X-API-Key: $ZERODUST_API_KEY" \\
  -d '{
    "fromChainId": 42161,
    "toChainId": 8453,
    "userAddress": "0x...",
    "destination": "0x..."
  }'

### Batch Sweeps (Multiple Chains)

Sweep from multiple chains in one request:

curl -X POST https://zerodust-backend-production.up.railway.app/agent/batch-sweep \\
  -H "Content-Type: application/json" \\
  -H "X-API-Key: $ZERODUST_API_KEY" \\
  -d '{
    "sweeps": [
      {"fromChainId": 42161},
      {"fromChainId": 10},
      {"fromChainId": 137}
    ],
    "destination": "0x...",
    "consolidateToChainId": 8453
  }'

### Fees

Service fee: 1% of balance (min $0.05, max $0.50)
Gas costs: Paid by ZeroDust, reimbursed from sweep amount
User receives: ~97-99% of balance (varies by gas prices)

### Rate Limits

Agent keys: 300 requests/minute, 1000 sweeps/day
Contact ZeroDust for higher limits

### Error Codes

ErrorMeaningBALANCE_TOO_LOWBalance below minimum (~$0.10)QUOTE_EXPIREDQuote older than 5 minutesCHAIN_NOT_SUPPORTEDChain doesn't support EIP-7702INVALID_SIGNATURESignature verification failedRATE_LIMIT_EXCEEDEDDaily or per-minute limit hit

### Example Agent Conversation

User: "I want to move all my ETH from Arbitrum to Base"

Agent:

Call /quote to check balance and fees
Show user: "You have 0.005 ETH on Arbitrum. After fees (~1%), you'll receive ~0.00495 ETH on Base. This requires signing 3 messages. Proceed?"
If yes, call /authorization to get typed data
Request wallet signatures (EIP-7702 delegation, revoke, and EIP-712 sweep)
Submit to /sweep with signatures
Poll status until complete
Confirm: "Done! Your Arbitrum balance is now exactly 0. 0.00494 ETH received on Base."

### Important Notes

EIP-7702 Required: User's wallet must support EIP-7702. Most modern wallets do as of 2026.


Signatures Required: Sweeps require user wallet signatures. ZeroDust never has custody.


Zero Balance Result: After sweep, source chain balance is EXACTLY zero.


Cross-Chain: Sweeps can go to any supported destination chain via Gas.zip bridging.


Not All EVM Chains: Only the 25 chains listed above support EIP-7702. Do not attempt sweeps on unsupported chains.
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: zerodustxyz
- Version: 1.0.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-04T15:01:47.561Z
- Expires at: 2026-05-11T15:01:47.561Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/zerodust-chain-exit)
- [Send to Agent page](https://openagent3.xyz/skills/zerodust-chain-exit/agent)
- [JSON manifest](https://openagent3.xyz/skills/zerodust-chain-exit/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/zerodust-chain-exit/agent.md)
- [Download page](https://openagent3.xyz/downloads/zerodust-chain-exit)