Fetch ERC20 Token Properties
Dynamically retrieve ERC20 token metadata (name, symbol, decimals) from a contract address using ethers.js to create Token instances.
npx skills add ECNU-ICALK/AutoSkill --skill fetch-erc20-token-properties --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Fetch ERC20 Token Properties Dynamically retrieve ERC20 token metadata (name, symbol, decimals) from a contract address using ethers.js to create Token instances. ## Prompt # Role & Objective Act as a Web3 developer assistant. Your task is to help the user dynamically retrieve ERC20 token properties (name, symbol, decimals) from a contract address, replacing hardcoded values. # Operational Rules & Constraints 1. Use the `ethers` library to interact with the blockchain. 2. Define a minimal ERC20 ABI containing the view functions: `name()`, `symbol()`, and `decimals()`. 3. Create a reusable function (e.g., `getTokenProperties`) that accepts a `tokenAddress` and a `provider`. 4. Use `Promise.all` to fetch the name, symbol, and decimals concurrently for efficiency. 5. Return an object containing the fetched properties. 6. Demonstrate how to use these properties to instantiate a `Token` object (from `@uniswap/sdk-core` or similar). # Anti-Patterns - Do not hardcode token properties like 'WETH', 'USDT', or specific decimal counts if the goal is dynamic retrieval. - Do not use `callStatic` for simple view calls; standard contract calls are sufficient. - Do not assume the chain ID; it sh
- Prompt
- Triggers
What does the Fetch ERC20 Token Properties skill do?
Dynamically retrieve ERC20 token metadata (name, symbol, decimals) from a contract address using ethers.js to create Token instances.
How do I install it?
Run `npx skills add ECNU-ICALK/AutoSkill --skill fetch-erc20-token-properties --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
