L’interface est localisée ; les présentations et documents des Skills sont traduits automatiquement par IA dans votre langue. Le code, les commandes, chemins et termes techniques restent en version originale, et le document de l’auteur fait foi.
Explorer les Skills
Productivité · SKILL.md

ethereum

ethereum

Interact with Ethereum blockchain - check ETH and ERC-20 balances, view transactions, gas prices, and ENS lookups. Works with MetaMask addresses.

Independent GitHub snapshot · Automated classification · Original documentation governs

Documentation de la Skill

GitHub

name: ethereum description: Interact with Ethereum blockchain - check ETH and ERC-20 balances, view transactions, gas prices, and ENS lookups. Works with MetaMask addresses. metadata: {"openclaw":{"requires":{"bins":["cast"]},"install":[{"id":"foundry","kind":"shell","command":"curl -L https://foundry.paradigm.xyz | bash && foundryup","bins":["cast"],"label":"Install Foundry (cast)"}]}}

Ethereum Wallet CLI

Setup

Install Foundry (includes cast):

curl -L https://foundry.paradigm.xyz | bash
foundryup

Set RPC (optional):

export ETH_RPC_URL="https://eth.llamarpc.com"

Check ETH Balance

cast balance <ADDRESS> --rpc-url https://eth.llamarpc.com

In ether (human readable):

cast balance <ADDRESS> --ether --rpc-url https://eth.llamarpc.com

ENS Lookup

Resolve ENS to address:

cast resolve-name vitalik.eth --rpc-url https://eth.llamarpc.com

Reverse lookup (address to ENS):

cast lookup-address <ADDRESS> --rpc-url https://eth.llamarpc.com

ERC-20 Token Balance

# USDC balance (6 decimals)
cast call 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 \
  "balanceOf(address)(uint256)" <ADDRESS> \
  --rpc-url https://eth.llamarpc.com

# Format with decimals
cast call 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 \
  "balanceOf(address)(uint256)" <ADDRESS> \
  --rpc-url https://eth.llamarpc.com | xargs -I {} cast --to-unit {} 6

Token Info

# Token name
cast call <TOKEN_CONTRACT> "name()(string)" --rpc-url https://eth.llamarpc.com

# Token symbol
cast call <TOKEN_CONTRACT> "symbol()(string)" --rpc-url https://eth.llamarpc.com

# Decimals
cast call <TOKEN_CONTRACT> "decimals()(uint8)" --rpc-url https://eth.llamarpc.com

# Total supply
cast call <TOKEN_CONTRACT> "totalSupply()(uint256)" --rpc-url https://eth.llamarpc.com

Transaction Info

cast tx <TX_HASH> --rpc-url https://eth.llamarpc.com

Transaction receipt:

cast receipt <TX_HASH> --rpc-url https://eth.llamarpc.com

Gas Price

Current gas price:

cast gas-price --rpc-url https://eth.llamarpc.com

In gwei:

cast --to-unit $(cast gas-price --rpc-url https://eth.llamarpc.com) gwei

Block Info

Latest block:

cast block latest --rpc-url https://eth.llamarpc.com

Specific block:

cast block 17000000 --rpc-url https://eth.llamarpc.com

NFT (ERC-721) Owner

cast call <NFT_CONTRACT> "ownerOf(uint256)(address)" <TOKEN_ID> --rpc-url https://eth.llamarpc.com

Account Nonce

cast nonce <ADDRESS> --rpc-url https://eth.llamarpc.com

Chain Info

cast chain-id --rpc-url https://eth.llamarpc.com

Common Token Contracts

TokenContract
USDC0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48
USDT0xdAC17F958D2ee523a2206206994597C13D831ec7
DAI0x6B175474E89094C44Da98b954EescdeCB5BE3830
WETH0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
LINK0x514910771AF9Ca656af840dff83E8264EcF986CA

Public RPC Endpoints

ProviderURL
LlamaRPChttps://eth.llamarpc.com
Ankrhttps://rpc.ankr.com/eth
PublicNodehttps://ethereum.publicnode.com
Cloudflarehttps://cloudflare-eth.com

Notes

  • Addresses are 0x-prefixed hex (42 characters)
  • 1 ETH = 10^18 wei
  • Gas prices fluctuate; check before transactions
  • Rate limits apply on public RPCs
  • Use --rpc-url or set ETH_RPC_URL environment variable
Skills enregistrées