Etherlink Skill
Interact with Etherlink, an EVM-compatible L2 built on Tezos.
Quick Start
1. Configure MCP Server
Add to your Claude/MCP config:
CODEBLOCK0
2. Select Network
Use network name or chain ID:
- - Mainnet:
etherlink or INLINECODE1 - Testnet:
etherlink-shadownet or INLINECODE3
Networks
| Network | Chain ID | RPC | Explorer |
|---|
| Etherlink Mainnet | 42793 | https://node.mainnet.etherlink.com | https://explorer.etherlink.com |
| Etherlink Shadownet |
127823 | https://node.shadownet.etherlink.com | https://shadownet.explorer.etherlink.com |
Native Currency: XTZ (18 decimals)
Common Operations
Check Balance
CODEBLOCK1
Send Transaction
CODEBLOCK2
Read Contract
CODEBLOCK3
Get Block Info
CODEBLOCK4
Etherlink-Specific Notes
Key Differences
- 1. Native Currency: XTZ (Tez), not ETH
- No EIP-1559: Fee market not yet implemented - use legacy gas pricing
- Block Hashes: Computed differently (can't verify from header alone)
- Rate Limits: Public RPC limited to 1000 req/min
Supported Endpoints
- - ✅ ethblockNumber, ethchainId, ethgetBalance
- ✅ ethcall, ethestimateGas, ethgasPrice
- ✅ ethsendRawTransaction, ethgetLogs
- ✅ debugtraceTransaction
- ❌ ethsubscribe (experimental only)
- ❌ Filter endpoints (eth_newFilter, etc.)
Tezos L1 Bridge
Etherlink bridges to Tezos L1 for deposits/withdrawals. Bridge operations require Tezos tooling. See
Etherlink Docs for details.
Testnet Faucet
Get testnet XTZ: https://shadownet.faucet.etherlink.com
Troubleshooting
"Unsupported network": Use correct network name (etherlink, etherlink-shadownet) or chain ID.
Rate limited: Public RPC has 1000 req/min limit. For production, run your own node.
Transaction failing: No EIP-1559 - don't set maxFeePerGas/maxPriorityFeePerGas.
Resources
Etherlink 技能
与基于Tezos构建的EVM兼容L2网络Etherlink进行交互。
快速开始
1. 配置MCP服务器
添加到您的Claude/MCP配置中:
json
{
mcpServers: {
etherlink: {
command: bun,
args: [run, /path/to/etherlink-mcp-server/src/index.ts],
env: {
EVMPRIVATEKEY: your-private-key-here
}
}
}
}
2. 选择网络
使用网络名称或链ID:
- - 主网:etherlink 或 42793
- 测试网:etherlink-shadownet 或 127823
网络
| 网络 | 链ID | RPC | 浏览器 |
|---|
| Etherlink 主网 | 42793 | https://node.mainnet.etherlink.com | https://explorer.etherlink.com |
| Etherlink Shadownet |
127823 | https://node.shadownet.etherlink.com | https://shadownet.explorer.etherlink.com |
原生货币:XTZ(18位小数)
常见操作
查询余额
在etherlink上查询0x...的余额
发送交易
在etherlink上向0x...发送0.1 XTZ
读取合约
在etherlink上调用合约0x...的balanceOf方法,查询地址0x...
获取区块信息
在etherlink上获取最新区块
Etherlink 特别说明
主要差异
- 1. 原生货币:XTZ(Tez),而非ETH
- 无EIP-1559:费用市场尚未实现 - 请使用传统Gas定价
- 区块哈希:计算方式不同(无法仅从区块头验证)
- 速率限制:公共RPC限制为1000次请求/分钟
支持的端点
- - ✅ ethblockNumber, ethchainId, ethgetBalance
- ✅ ethcall, ethestimateGas, ethgasPrice
- ✅ ethsendRawTransaction, ethgetLogs
- ✅ debugtraceTransaction
- ❌ ethsubscribe(仅限实验性)
- ❌ 过滤器端点(eth_newFilter等)
Tezos L1 桥接
Etherlink通过桥接连接到Tezos L1进行存款/提现。桥接操作需要Tezos工具。详情请参阅
Etherlink文档。
测试网水龙头
获取测试网XTZ:https://shadownet.faucet.etherlink.com
故障排除
不支持的网络:使用正确的网络名称(etherlink、etherlink-shadownet)或链ID。
速率限制:公共RPC有1000次请求/分钟的限制。生产环境请运行自己的节点。
交易失败:不支持EIP-1559 - 不要设置maxFeePerGas/maxPriorityFeePerGas。
资源