Evalanche — Multi-EVM Agent Wallet
Headless wallet SDK with ERC-8004 identity, x402 payments, Li.Fi bridging, and Gas.zip gas funding. Works on 21+ EVM chains. Works as CLI tools or MCP server.
Source: https://github.com/iJaack/evalanche
License: MIT
Supported Chains
Ethereum, Base, Arbitrum, Optimism, Polygon, BSC, Avalanche, Fantom, Gnosis, zkSync Era, Linea, Scroll, Blast, Mantle, Celo, Moonbeam, Cronos, Berachain, + testnets (Fuji, Sepolia, Base Sepolia).
Routescan RPCs preferred where available, with public fallback RPCs.
Security Model
Key Storage & Encryption
Evalanche.boot() manages keys autonomously with encrypted-at-rest storage:
- First run: Generates a BIP-39 mnemonic via
ethers.HDNodeWallet.createRandom()
- Encryption: AES-128-CTR + scrypt KDF (geth-compatible keystore format)
- Password derivation: 32-byte random entropy file via
crypto.randomBytes(32)
- File permissions: chmod 0o600 (owner read/write only)
- Storage location:
~/.evalanche/keys/ by default
MCP Server Access Controls
- Stdio mode (default): stdin/stdout only. No network exposure.
- HTTP mode (
--http): localhost:3402. Do not expose publicly without auth.
OpenClaw External Secrets (Preferred when available)
Priority: OpenClaw secrets → raw env vars → encrypted keystore.
Setup
1. Install
npm install -g evalanche
2. Boot on any chain
import { Evalanche } from 'evalanche';
// Base
const { agent } = await Evalanche.boot({ network: 'base' });
// Ethereum
const { agent: eth } = await Evalanche.boot({ network: 'ethereum' });
// Arbitrum
const { agent: arb } = await Avalanche.boot({ network: 'arbitrum' });
// Avalanche (with identity)
const { agent: avax } = await Evalanche.boot({
network: 'avalanche',
identity: { agentId: '1599' },
});
3. Run as MCP server
AVALANCHE_NETWORK=base evalanche-mcp
Available Tools (MCP)
Wallet
| Tool |
Description |
get_address |
Get agent wallet address |
get_balance |
Get native token balance |
sign_message |
Sign arbitrary message |
send_avax |
Send native tokens |
call_contract |
Call a contract method |
Identity (ERC-8004)
| Tool |
Description |
resolve_identity |
Resolve agent identity + reputation |
resolve_agent |
Look up any agent by ID |
Payments (x402)
| Tool |
Description |
pay_and_fetch |
x402 payment-gated HTTP request |
Reputation
| Tool |
Description |
submit_feedback |
Submit on-chain reputation feedback |
Network & Chains
| Tool |
Description |
get_network |
Get current network config |
get_supported_chains |
List all 21+ supported chains |
get_chain_info |
Get details for a specific chain |
switch_network |
Switch to different EVM chain |
Bridging
| Tool |
Description |
get_bridge_quote |
Get cross-chain bridge quote (Li.Fi) |
get_bridge_routes |
Get all bridge route options |
bridge_tokens |
Bridge tokens between chains |
fund_destination_gas |
Fund gas via Gas.zip |
Programmatic Usage
Check balance on Base
node -e "
const { Evalanche } = require('evalanche');
const agent = new Evalanche({ privateKey: process.env.AGENT_PRIVATE_KEY, network: 'base' });
agent.provider.getBalance(agent.address).then(b => {
const { formatEther } = require('ethers');
console.log(formatEther(b) + ' ETH');
});
"
Bridge tokens (Ethereum → Arbitrum)
node -e "
const { Evalanche } = require('evalanche');
const agent = new Evalanche({ privateKey: process.env.AGENT_PRIVATE_KEY, network: 'ethereum' });
agent.bridgeTokens({
fromChainId: 1, toChainId: 42161,
fromToken: '0x0000000000000000000000000000000000000000',
toToken: '0x0000000000000000000000000000000000000000',
fromAmount: '0.1', fromAddress: agent.address,
}).then(r => console.log('tx:', r.txHash));
"
Cross-chain transfer on Avalanche (requires mnemonic)
node -e "
const { Evalanche } = require('evalanche');
const agent = new Evalanche({ mnemonic: process.env.AGENT_MNEMONIC, multiVM: true });
agent.transfer({ from: 'C', to: 'P', amount: '25' })
.then(r => console.log('export:', r.exportTxId, 'import:', r.importTxId));
"
Key Concepts
ERC-8004 Agent Identity (Avalanche only)
- On-chain agent identity registry on Avalanche C-Chain
- Agent ID → tokenURI, owner, reputation score (0-100), trust level
- Trust levels: high (≥75), medium (≥40), low (<40)
Li.Fi Bridging
- Aggregated bridge routes across all major bridges (Across, Stargate, Hop, etc.)
- Supports native tokens and ERC-20s across all chains
- Uses Li.Fi REST API (no SDK dependency needed)
Gas.zip
- Cheap cross-chain gas funding
- Send gas to any destination chain via deposit addresses
x402 Payment Protocol
- HTTP 402 Payment Required → parse requirements → sign payment → retry
maxPayment prevents overspending
Multi-VM (Avalanche X-Chain, P-Chain)
- Requires mnemonic and
network: 'avalanche' or 'fuji'
- C-Chain: EVM (ethers v6), X-Chain: AVM (UTXO), P-Chain: PVM (staking)
Contracts
| Contract |
Address |
Chain |
| Identity Registry |
0x8004A169FB4a3325136EB29fA0ceB6D2e539a432 |
AVAX C-Chain (43114) |
| Reputation Registry |
0x8004BAa17C55a88189AE136b182e5fdA19dE9b63 |
AVAX C-Chain (43114) |
1---
2name: evalanche
3description: >
4 Multi-EVM agent wallet SDK with onchain identity (ERC-8004), payment rails (x402),
5 cross-chain bridging (Li.Fi), and destination gas funding (Gas.zip).
6 Supports 21+ EVM chains: Ethereum, Base, Arbitrum, Optimism, Polygon, BSC, Avalanche, and more.
7 Agents generate and manage their own keys — no human input required.
8 Use when: booting an autonomous agent wallet on any EVM chain, sending tokens, calling contracts,
9 resolving agent identity, checking reputation, making x402 payment-gated API calls,
10 bridging tokens cross-chain (Li.Fi), funding gas on destination chains (Gas.zip),
11 cross-chain transfers (Avalanche C↔X↔P), delegating stake, querying validators, signing messages.
12 Don't use when: trading on DEXes (use bankr), managing ENS (use moltbook scripts).
13 Network: yes (EVM RPCs via Routescan + public fallbacks). Cost: gas fees per transaction.
14metadata:
15 source: https://skillmd.com/skills/modbender/evalanche
16 openclaw:
17 emoji: ⛓️
18 homepage: https://github.com/iJaack/evalanche
19 source: https://github.com/iJaack/evalanche
20 requires:
21 bins:
22 - node
23 env:
24 - name: AGENT_PRIVATE_KEY
25 description: Hex-encoded private key (EVM). Optional if using boot() or AGENT_MNEMONIC.
26 required: false
27 secret: true
28 - name: AGENT_MNEMONIC
29 description: BIP-39 mnemonic phrase (required for Avalanche multi-VM X/P-Chain). Optional if using boot() or AGENT_PRIVATE_KEY.
30 required: false
31 secret: true
32 - name: AGENT_ID
33 description: ERC-8004 agent token ID for identity resolution (Avalanche C-Chain only).
34 required: false
35 - name: AGENT_KEYSTORE_DIR
36 description: "Directory for encrypted keystore in boot() mode. Default: ~/.evalanche/keys"
37 required: false
38 - name: AVALANCHE_NETWORK
39 description: "EVM chain alias: 'ethereum', 'base', 'arbitrum', 'optimism', 'polygon', 'bsc', 'avalanche', 'fuji', etc. Default: avalanche."
40 required: false
41 - name: EVM_CHAIN
42 description: Alias for AVALANCHE_NETWORK. EVM chain to connect to.
43 required: false
44 configPaths:
45 - ~/.evalanche/keys/agent.json
46 install:
47 - id: node
48 kind: node
49 package: evalanche
50 bins:
51 - evalanche-mcp
52 label: Install evalanche (npm)
53---
54
55# Evalanche — Multi-EVM Agent Wallet
56
57Headless wallet SDK with ERC-8004 identity, x402 payments, Li.Fi bridging, and Gas.zip gas funding. Works on 21+ EVM chains. Works as CLI tools or MCP server.
58
59**Source:** https://github.com/iJaack/evalanche
60**License:** MIT
61
62## Supported Chains
63
64Ethereum, Base, Arbitrum, Optimism, Polygon, BSC, Avalanche, Fantom, Gnosis, zkSync Era, Linea, Scroll, Blast, Mantle, Celo, Moonbeam, Cronos, Berachain, + testnets (Fuji, Sepolia, Base Sepolia).
65
66Routescan RPCs preferred where available, with public fallback RPCs.
67
68## Security Model
69
70### Key Storage & Encryption
71
72`Evalanche.boot()` manages keys autonomously with **encrypted-at-rest** storage:
73
741. **First run:** Generates a BIP-39 mnemonic via `ethers.HDNodeWallet.createRandom()`
752. **Encryption:** AES-128-CTR + scrypt KDF (geth-compatible keystore format)
763. **Password derivation:** 32-byte random entropy file via `crypto.randomBytes(32)`
774. **File permissions:** chmod 0o600 (owner read/write only)
785. **Storage location:** `~/.evalanche/keys/` by default
79
80### MCP Server Access Controls
81
82- **Stdio mode (default):** stdin/stdout only. No network exposure.
83- **HTTP mode (`--http`):** localhost:3402. Do not expose publicly without auth.
84
85### OpenClaw External Secrets (Preferred when available)
86
87Priority: OpenClaw secrets → raw env vars → encrypted keystore.
88
89## Setup
90
91### 1. Install
92```bash
93npm install -g evalanche
94```
95
96### 2. Boot on any chain
97```javascript
98import { Evalanche } from 'evalanche';
99
100// Base
101const { agent } = await Evalanche.boot({ network: 'base' });
102
103// Ethereum
104const { agent: eth } = await Evalanche.boot({ network: 'ethereum' });
105
106// Arbitrum
107const { agent: arb } = await Avalanche.boot({ network: 'arbitrum' });
108
109// Avalanche (with identity)
110const { agent: avax } = await Evalanche.boot({
111 network: 'avalanche',
112 identity: { agentId: '1599' },
113});
114```
115
116### 3. Run as MCP server
117```bash
118AVALANCHE_NETWORK=base evalanche-mcp
119```
120
121## Available Tools (MCP)
122
123### Wallet
124| Tool | Description |
125|------|-------------|
126| `get_address` | Get agent wallet address |
127| `get_balance` | Get native token balance |
128| `sign_message` | Sign arbitrary message |
129| `send_avax` | Send native tokens |
130| `call_contract` | Call a contract method |
131
132### Identity (ERC-8004)
133| Tool | Description |
134|------|-------------|
135| `resolve_identity` | Resolve agent identity + reputation |
136| `resolve_agent` | Look up any agent by ID |
137
138### Payments (x402)
139| Tool | Description |
140|------|-------------|
141| `pay_and_fetch` | x402 payment-gated HTTP request |
142
143### Reputation
144| Tool | Description |
145|------|-------------|
146| `submit_feedback` | Submit on-chain reputation feedback |
147
148### Network & Chains
149| Tool | Description |
150|------|-------------|
151| `get_network` | Get current network config |
152| `get_supported_chains` | List all 21+ supported chains |
153| `get_chain_info` | Get details for a specific chain |
154| `switch_network` | Switch to different EVM chain |
155
156### Bridging
157| Tool | Description |
158|------|-------------|
159| `get_bridge_quote` | Get cross-chain bridge quote (Li.Fi) |
160| `get_bridge_routes` | Get all bridge route options |
161| `bridge_tokens` | Bridge tokens between chains |
162| `fund_destination_gas` | Fund gas via Gas.zip |
163
164## Programmatic Usage
165
166### Check balance on Base
167```bash
168node -e "
169const { Evalanche } = require('evalanche');
170const agent = new Evalanche({ privateKey: process.env.AGENT_PRIVATE_KEY, network: 'base' });
171agent.provider.getBalance(agent.address).then(b => {
172 const { formatEther } = require('ethers');
173 console.log(formatEther(b) + ' ETH');
174});
175"
176```
177
178### Bridge tokens (Ethereum → Arbitrum)
179```bash
180node -e "
181const { Evalanche } = require('evalanche');
182const agent = new Evalanche({ privateKey: process.env.AGENT_PRIVATE_KEY, network: 'ethereum' });
183agent.bridgeTokens({
184 fromChainId: 1, toChainId: 42161,
185 fromToken: '0x0000000000000000000000000000000000000000',
186 toToken: '0x0000000000000000000000000000000000000000',
187 fromAmount: '0.1', fromAddress: agent.address,
188}).then(r => console.log('tx:', r.txHash));
189"
190```
191
192### Cross-chain transfer on Avalanche (requires mnemonic)
193```bash
194node -e "
195const { Evalanche } = require('evalanche');
196const agent = new Evalanche({ mnemonic: process.env.AGENT_MNEMONIC, multiVM: true });
197agent.transfer({ from: 'C', to: 'P', amount: '25' })
198 .then(r => console.log('export:', r.exportTxId, 'import:', r.importTxId));
199"
200```
201
202## Key Concepts
203
204### ERC-8004 Agent Identity (Avalanche only)
205- On-chain agent identity registry on Avalanche C-Chain
206- Agent ID → tokenURI, owner, reputation score (0-100), trust level
207- Trust levels: **high** (≥75), **medium** (≥40), **low** (<40)
208
209### Li.Fi Bridging
210- Aggregated bridge routes across all major bridges (Across, Stargate, Hop, etc.)
211- Supports native tokens and ERC-20s across all chains
212- Uses Li.Fi REST API (no SDK dependency needed)
213
214### Gas.zip
215- Cheap cross-chain gas funding
216- Send gas to any destination chain via deposit addresses
217
218### x402 Payment Protocol
219- HTTP 402 Payment Required → parse requirements → sign payment → retry
220- `maxPayment` prevents overspending
221
222### Multi-VM (Avalanche X-Chain, P-Chain)
223- Requires **mnemonic** and `network: 'avalanche'` or `'fuji'`
224- C-Chain: EVM (ethers v6), X-Chain: AVM (UTXO), P-Chain: PVM (staking)
225
226## Contracts
227
228| Contract | Address | Chain |
229|----------|---------|-------|
230| Identity Registry | `0x8004A169FB4a3325136EB29fA0ceB6D2e539a432` | AVAX C-Chain (43114) |
231| Reputation Registry | `0x8004BAa17C55a88189AE136b182e5fdA19dE9b63` | AVAX C-Chain (43114) |