Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Sweep Native Gas Tokens

ASecurity

Sweep 100% of native gas tokens from EIP-7702 compatible chains. Leaves exactly zero balance. Supports 25 mainnet chains.

19 stars
0 votes
0 copies
1 views
Added 9/19/2026
ai-agentsgobashapibackend

Works with

api

Security Analysis

A100/100

Scanned 9/19/2026

Install to Claude Code

$npx -y skills add rondoflow/rondoflow --skill sweep-native-gas-tokens --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Sweep Native Gas Tokens?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Sweep Native Gas Tokens
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/rondoflow-sweep-native-gas-tokens/badge)](https://www.skillsdirectory.com/skills/rondoflow-sweep-native-gas-tokens)

More formats (shields.io, HTML) on the badges page.

Download with Pro
Files
SKILL.md
---
name: sweep-native-gas-tokens
description: "Sweep 100% of native gas tokens from EIP-7702 compatible chains. Leaves exactly zero balance. Supports 25 mainnet chains."
category: "Community"
author: community
version: "1.0.0"
icon: puzzle
---

# 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)

| Chain | ID | Native Token |
|-------|-----|--------------|
| Ethereum | 1 | ETH |
| BSC | 56 | BNB |
| Base | 8453 | ETH |
| Arbitrum | 42161 | ETH |
| Optimism | 10 | ETH |
| Polygon | 137 | POL |
| Gnosis | 100 | XDAI |
| Scroll | 534352 | ETH |
| Zora | 7777777 | ETH |
| Mode | 34443 | ETH |
| Mantle | 5000 | MNT |
| Celo | 42220 | CELO |
| Fraxtal | 252 | FRAX |
| Unichain | 130 | ETH |
| World Chain | 480 | ETH |
| Berachain | 80094 | BERA |
| Ink | 57073 | ETH |
| Plasma | 9745 | XPL |
| BOB | 60808 | ETH |
| Story | 1514 | IP |
| Superseed | 5330 | ETH |
| Sei | 1329 | SEI |
| Sonic | 146 | S |
| Soneium | 1868 | ETH |
| X Layer | 196 | OKB |

**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)

```bash
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:
```json
{
  "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:

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

Response:
```json
{
  "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:

```bash
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:
1. **EIP-7702 delegation authorization** - Delegates their EOA to ZeroDust contract
2. **EIP-7702 revoke authorization** - Pre-signed revocation (executed after sweep)
3. **EIP-712 sweep intent** - Authorizes the specific sweep parameters

## Step 5: Submit Sweep

```bash
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:
```json
{
  "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:

```bash
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:

```bash
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

| Error | Meaning |
|-------|---------|
| `BALANCE_TOO_LOW` | Balance below minimum (~$0.10) |
| `QUOTE_EXPIRED` | Quote older than 5 minutes |
| `CHAIN_NOT_SUPPORTED` | Chain doesn't support EIP-7702 |
| `INVALID_SIGNATURE` | Signature verification failed |
| `RATE_LIMIT_EXCEEDED` | Daily or per-minute limit hit |

## Example Agent Conversation

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

**Agent:**
1. Call `/quote` to check balance and fees
2. 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?"
3. If yes, call `/authorization` to get typed data
4. Request wallet signatures (EIP-7702 delegation, revoke, and EIP-712 sweep)
5. Submit to `/sweep` with signatures
6. Poll status until complete
7. Confirm: "Done! Your Arbitrum balance is now exactly 0. 0.00494 ETH received on Base."

## Important Notes

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

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

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

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

5. **Not All EVM Chains:** Only the 25 chains listed above support EIP-7702. Do not attempt sweeps on unsupported chains.

Attribution

rondoflowrondoflow
View sourceMore from rondoflow →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Caveman

Ultra-compressed communication mode that cuts output tokens while keeping technical accuracy. Levels: lite, full, ultra and the wenyan variants. Use for /caveman, "caveman mode", "talk like caveman", "be brief" or "less tokens".

1074701 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

693621 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3351 votes

catchup

Recovers the conversation and failed tool calls of a previous Codex, Claude Code, Antigravity, Cline, Copilot CLI, Cursor, DeepSeek Harness, Kimi, OpenCode, Pi Agent, or ZCode session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", asks to recover/summarize a previous session before continuing, or asks to diagnose or report a catchup failure. Do NOT use for the current conversation, git history, or any non-agent log.

691 votes

math-skill

A comprehensive mathematical reasoning skill for AI assistants — handles arithmetic to research-level problems with rigorous step-by-step reasoning, systematic verification, and transparent uncertainty handling

381 votes
View all in ai-agents →