LeoYeAI/agent-master-skills / skills/alchemy-official
alchemy-official
Verifiedreferences/recipes-get-token-metadata.md
View on GitHub---
id: references/recipes-get-token-metadata.md
name: 'Recipe: Get Token Metadata'
description: ''
tags:
- alchemy
- recipes
- recipe
related:
- data-token-api.md
updated: 2026-02-05
---
# Recipe: Get Token Metadata
## Goal
Resolve token metadata (name, symbol, decimals, logo) for a contract.
## Inputs
- `contractAddress`
- `network`
- `ALCHEMY_API_KEY`
## Steps
1. Call `alchemy_getTokenMetadata`.
2. Cache results for repeated use.
## Example (curl)
```bash
curl -s https://eth-mainnet.g.alchemy.com/v2/$ALCHEMY_API_KEY \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"alchemy_getTokenMetadata","params":["0xA0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"]}'
```
## Example (TypeScript)
```ts
const url = `https://eth-mainnet.g.alchemy.com/v2/${process.env.ALCHEMY_API_KEY}`;
const body = {
jsonrpc: "2.0",
id: 1,
method: "alchemy_getTokenMetadata",
params: ["0xA0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"],
};
const res = await fetch(url, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify(body),
});
const json = await res.json();
```
## Output
- Token name, symbol, decimals, logo URI (when available).
## Related Files
- `data-token-api.md`
## Official Docs
- [alchemy_getTokenMetadata](https://www.alchemy.com/docs/reference/alchemy-gettokenmetadata)
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |