npx skills add https://github.com/alphaonedev/openclaw-graph
terminalskills/skills
ethers-js
>- Interact with Ethereum and EVM blockchains using ethers.js. Use when a user asks to connect to Ethereum, read blockchain data, send transactions, interact with smart contracts, or build a dApp frontend.
Installation
npx skills add terminalskills/skills --skill ethers-js
Similar popular skills
Related neighbors and high-traction skills in the same topics — useful to compare before installing.
Browser automation CLI for AI agents. Use when the user needs to interact with websites, includ…
11.9K installsGuidance for distinctive, intentional visual design when building new UI or reshaping an existi…
4.3K installsReview UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "chec…
4.7K installsBuild, deploy, evaluate, optimize, fine-tune, and manage Microsoft Foundry agents, models, and …
1.7K installsDebug Azure production issues on Azure using AppLens, Azure Monitor, resource health, and safe …
1.6K installsExecute Azure deployments for ALREADY-PREPARED applications that have existing .azure/deploymen…
1.5K installsAlso in this package
Other skills from terminalskills/skills · top by installs.
npx skills add terminalskills/skills
More details
Agent compatibility
Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.
Also listed on
Alternate registries and mirrors of this skill.
Repository health
main
Skill metadata
Parsed from SKILL.md frontmatter.
More metadata
- author
- terminal-skills
- version
- 1.0.0
- category
- development
- tags
- ["ethers","ethereum","web3","blockchain","smart-contracts"]
Package contents
Files included with this skill beyond the listing page.
-
skill md
SKILL.md3,010 B -
docs
SUMMARY.md219 B
History
- First seen on skills.sh
- First recorded snapshot · 3 installs
SKILL.md
ethers.js
Overview
ethers.js is the most popular library for interacting with Ethereum and EVM-compatible blockchains (Polygon, Arbitrum, Base, BSC). It handles wallet connections, contract interactions, transaction signing, and blockchain queries.
Instructions
Step 1: Setup
npm install ethers
Step 2: Read Blockchain Data
// lib/ethereum.ts — Read-only blockchain access
import { ethers } from 'ethers'
// Connect to Ethereum (read-only)
const provider = new ethers.JsonRpcProvider('https://eth-mainnet.g.alchemy.com/v2/YOUR_KEY')
// Get ETH balance
const balance = await provider.getBalance('0x742d35Cc6634C0532925a3b844Bc9e7595f2bD18')
console.log(ethers.formatEther(balance)) // "1.234"
// Get current block
const block = await provider.getBlockNumber()
// Get transaction
const tx = await provider.getTransaction('0x...')
Step 3: Interact with Smart Contracts
// Read from a contract (no wallet needed)
const USDC_ADDRESS = '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48'
const ERC20_ABI = [
'function balanceOf(address) view returns (uint256)',
'function decimals() view returns (uint8)',
'function symbol() view returns (string)',
'function transfer(address to, uint256 amount) returns (bool)',
]
const usdc = new ethers.Contract(USDC_ADDRESS, ERC20_ABI, provider)
const balance = await usdc.balanceOf('0x...')
const decimals = await usdc.decimals()
console.log(ethers.formatUnits(balance, decimals)) // "1000.00"
Step 4: Send Transactions
// Write to blockchain (needs wallet)
const wallet = new ethers.Wallet(process.env.PRIVATE_KEY!, provider)
const usdcWithSigner = usdc.connect(wallet)
// Transfer USDC
const tx = await usdcWithSigner.transfer(
'0xRecipient...',
ethers.parseUnits('100', 6) // 100 USDC (6 decimals)
)
await tx.wait() // wait for confirmation
console.log('TX hash:', tx.hash)
Step 5: Frontend (MetaMask)
// Connect to user's MetaMask wallet
const provider = new ethers.BrowserProvider(window.ethereum)
const signer = await provider.getSigner()
const address = await signer.getAddress()
Guidelines
- ethers.js v6 is current — v5 syntax is different (avoid mixing).
- Never expose private keys in frontend code — use MetaMask/WalletConnect for user wallets.
- Use Alchemy, Infura, or QuickNode as RPC providers — don't run your own node unless needed.
- Always
await tx.wait()before confirming success —tx.hashalone doesn't mean it's mined.