# Send Alchemy Web3 to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "alchemy-web3",
    "name": "Alchemy Web3",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/gizmo-dev/alchemy-web3",
    "canonicalUrl": "https://clawhub.ai/gizmo-dev/alchemy-web3",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/alchemy-web3",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=alchemy-web3",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "README.md",
      "SKILL.md",
      "references/agent-workflows.md",
      "references/chains.md",
      "references/nft-api.md",
      "references/node-api.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "alchemy-web3",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-29T20:06:10.718Z",
      "expiresAt": "2026-05-06T20:06:10.718Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=alchemy-web3",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=alchemy-web3",
        "contentDisposition": "attachment; filename=\"alchemy-web3-1.0.3.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "alchemy-web3"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/alchemy-web3"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/alchemy-web3",
    "downloadUrl": "https://openagent3.xyz/downloads/alchemy-web3",
    "agentUrl": "https://openagent3.xyz/skills/alchemy-web3/agent",
    "manifestUrl": "https://openagent3.xyz/skills/alchemy-web3/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/alchemy-web3/agent.md"
  }
}
```
## Documentation

### Alchemy Web3 Skill

Query blockchain data, NFTs, tokens, and transfers using Alchemy's production-grade APIs. Supports Ethereum, Polygon, Arbitrum, Base, Solana, and 80+ other chains.

Built by GizmoLab — Web3 development agency specializing in dApps, smart contracts, and blockchain infrastructure.

### 1. Get API Key

Sign up at alchemy.com (free tier available)
Create an app for your target chain
Copy your API key

💡 New to Web3 development? GizmoLab offers full-stack blockchain development services.

### 2. Configure

# Add to ~/.openclaw/.env
ALCHEMY_API_KEY=your_api_key_here

# Optional: Set default chain (defaults to eth-mainnet)
ALCHEMY_CHAIN=eth-mainnet

### Supported Chains

ChainEndpoint PrefixEthereumeth-mainnet, eth-sepoliaPolygonpolygon-mainnet, polygon-amoyArbitrumarb-mainnet, arb-sepoliaOptimismopt-mainnet, opt-sepoliaBasebase-mainnet, base-sepoliaSolanasolana-mainnet, solana-devnetzkSynczksync-mainnetLinealinea-mainnetScrollscroll-mainnetBlastblast-mainnet

Full list: alchemy.com/docs/chains

### CLI Usage

# Set your API key first
export ALCHEMY_API_KEY="your_key"

# Use the CLI
~/.openclaw/workspace/skills/alchemy-web3/scripts/alchemy.sh <command> [options]

### Commands

Get ETH Balance

./alchemy.sh balance 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045
# Returns: 1234.56 ETH

Get Token Balances

./alchemy.sh tokens 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045
# Returns: All ERC-20 tokens held by address

Get NFTs for Owner

./alchemy.sh nfts 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045
# Returns: All NFTs owned by address

Get NFT Metadata

./alchemy.sh nft-metadata 0x5180db8F5c931aaE63c74266b211F580155ecac8 1590
# Returns: Metadata for specific NFT

Get Asset Transfers

./alchemy.sh transfers 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045
# Returns: Transaction history (in/out)

Get Block Info

./alchemy.sh block latest
./alchemy.sh block 12345678

Get Transaction

./alchemy.sh tx 0x123...abc

Resolve ENS

./alchemy.sh ens vitalik.eth
# Returns: 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045

Switch Chain

./alchemy.sh --chain polygon-mainnet balance 0x...
./alchemy.sh --chain arb-mainnet nfts 0x...

### Node API (JSON-RPC)

# Get ETH balance
curl -X POST "https://eth-mainnet.g.alchemy.com/v2/$ALCHEMY_API_KEY" \\
  -H "Content-Type: application/json" \\
  -d '{
    "jsonrpc": "2.0",
    "method": "eth_getBalance",
    "params": ["0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045", "latest"],
    "id": 1
  }'

### NFT API

# Get NFTs for owner
curl "https://eth-mainnet.g.alchemy.com/nft/v3/$ALCHEMY_API_KEY/getNFTsForOwner?owner=vitalik.eth&pageSize=10"

# Get NFT metadata
curl "https://eth-mainnet.g.alchemy.com/nft/v3/$ALCHEMY_API_KEY/getNFTMetadata?contractAddress=0x5180db8F5c931aaE63c74266b211F580155ecac8&tokenId=1590"

# Get NFTs for collection
curl "https://eth-mainnet.g.alchemy.com/nft/v3/$ALCHEMY_API_KEY/getNFTsForContract?contractAddress=0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D&limit=10"

### Token API

# Get token balances
curl -X POST "https://eth-mainnet.g.alchemy.com/v2/$ALCHEMY_API_KEY" \\
  -H "Content-Type: application/json" \\
  -d '{
    "jsonrpc": "2.0",
    "method": "alchemy_getTokenBalances",
    "params": ["0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"],
    "id": 1
  }'

# Get token metadata
curl -X POST "https://eth-mainnet.g.alchemy.com/v2/$ALCHEMY_API_KEY" \\
  -H "Content-Type: application/json" \\
  -d '{
    "jsonrpc": "2.0",
    "method": "alchemy_getTokenMetadata",
    "params": ["0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"],
    "id": 1
  }'

### Transfers API

# Get asset transfers (transaction history)
curl -X POST "https://eth-mainnet.g.alchemy.com/v2/$ALCHEMY_API_KEY" \\
  -H "Content-Type: application/json" \\
  -d '{
    "jsonrpc": "2.0",
    "method": "alchemy_getAssetTransfers",
    "params": [{
      "fromBlock": "0x0",
      "toBlock": "latest",
      "toAddress": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
      "category": ["external", "erc20", "erc721", "erc1155"],
      "maxCount": "0x14"
    }],
    "id": 1
  }'

### Using Fetch (Node 18+)

const apiKey = process.env.ALCHEMY_API_KEY;
const baseURL = \`https://eth-mainnet.g.alchemy.com/v2/${apiKey}\`;

// Get ETH Balance
async function getBalance(address) {
  const response = await fetch(baseURL, {
    method: 'POST',
    headers: { 'Content-Type': 'application/json' },
    body: JSON.stringify({
      jsonrpc: '2.0',
      method: 'eth_getBalance',
      params: [address, 'latest'],
      id: 1
    })
  });
  const data = await response.json();
  return parseInt(data.result, 16) / 1e18; // Convert to ETH
}

// Get NFTs
async function getNFTs(owner) {
  const url = \`https://eth-mainnet.g.alchemy.com/nft/v3/${apiKey}/getNFTsForOwner?owner=${owner}\`;
  const response = await fetch(url);
  return await response.json();
}

### Using Alchemy SDK

npm install alchemy-sdk

import { Alchemy, Network } from 'alchemy-sdk';

const alchemy = new Alchemy({
  apiKey: process.env.ALCHEMY_API_KEY,
  network: Network.ETH_MAINNET
});

// Get NFTs
const nfts = await alchemy.nft.getNftsForOwner('vitalik.eth');
console.log(nfts.ownedNfts);

// Get token balances
const balances = await alchemy.core.getTokenBalances('vitalik.eth');
console.log(balances);

// Get transaction history
const transfers = await alchemy.core.getAssetTransfers({
  toAddress: '0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045',
  category: ['external', 'erc20']
});

### Webhooks (Real-time Notifications)

Receive HTTP POST requests when onchain events happen.

### Webhook Types

TypeUse CaseAddress ActivityTrack transfers to/from specific addressesNFT ActivityTrack NFT sales, transfers, mintsMined TransactionsTrack when your txs are minedDropped TransactionsGet notified if tx is droppedGas PriceAlert on gas price thresholds

### Create Webhook (Dashboard)

Go to dashboard.alchemy.com/webhooks
Click "Create Webhook"
Select type and configure
Add your endpoint URL

### Webhook Payload Example

{
  "webhookId": "wh_abc123",
  "id": "evt_xyz789",
  "createdAt": "2024-01-15T12:00:00.000Z",
  "type": "ADDRESS_ACTIVITY",
  "event": {
    "network": "ETH_MAINNET",
    "activity": [{
      "fromAddress": "0x123...",
      "toAddress": "0x456...",
      "value": 1.5,
      "asset": "ETH"
    }]
  }
}

### Portfolio Tracker

# Get all assets for a wallet
./alchemy.sh balance 0x...      # ETH balance
./alchemy.sh tokens 0x...       # ERC-20 tokens
./alchemy.sh nfts 0x...         # NFTs

### Transaction History

# Get full tx history for address
./alchemy.sh transfers 0x... --category external,erc20,erc721

### NFT Collection Analysis

# Get all NFTs in a collection
./alchemy.sh collection 0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D

### Multi-chain Query

# Check same address across chains
for chain in eth-mainnet polygon-mainnet arb-mainnet base-mainnet; do
  echo "=== $chain ==="
  ./alchemy.sh --chain $chain balance 0x...
done

### Rate Limits

PlanCompute Units/secMonthly CUsFree330300MGrowth660UnlimitedScaleCustomCustom

Most endpoints cost 1-50 CUs. Check alchemy.com/docs/rate-limits for details.

### Error Handling

// Rate limited
{"error": {"code": 429, "message": "Too Many Requests"}}

// Invalid API key
{"error": {"code": 401, "message": "Invalid API Key"}}

// Invalid params
{"error": {"code": -32602, "message": "Invalid params"}}

### Resources

Get API Key: alchemy.com (free tier)
Dashboard: dashboard.alchemy.com
Docs: alchemy.com/docs
SDK: github.com/alchemyplatform/alchemy-sdk-js
Status: status.alchemy.com

### About

Built by GizmoLab 🔧

GizmoLab is a Web3 development agency building dApps, smart contracts, and blockchain tools.

🌐 gizmolab.io — Agency services
🛠️ tools.gizmolab.io — Free blockchain dev tools
🎨 ui.gizmolab.io — Web3 UI components

Need custom blockchain development? Get in touch

### AI Agent Workflows

The skill is designed for both human developers AND AI agents. See references/agent-workflows.md for complete examples:

Whale Tracker — Monitor large wallets for moves
Portfolio Monitor — Track balances across chains
NFT Floor Alert — Alert on price drops
Token Change Detector — Detect incoming/outgoing tokens
Gas Optimizer — Wait for low gas to transact
Mint Detector — Watch for new NFT mints
Dashboard Generator — Auto-generate wallet dashboards

### Agent Pattern

QUERY → STORE → ANALYZE → DECIDE → ACT → REPEAT

Example cron job for an agent:

# Every hour, check whale activity and alert if >100 ETH moved
0 * * * * ~/.openclaw/workspace/skills/alchemy-web3/scripts/whale-tracker.sh

### See Also

references/nft-api.md - Full NFT API reference
references/token-api.md - Full Token API reference
references/node-api.md - Full Node API reference
references/chains.md - All supported chains
references/agent-workflows.md - AI agent automation examples
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: gizmo-dev
- Version: 1.0.3
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-04-29T20:06:10.718Z
- Expires at: 2026-05-06T20:06:10.718Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/alchemy-web3)
- [Send to Agent page](https://openagent3.xyz/skills/alchemy-web3/agent)
- [JSON manifest](https://openagent3.xyz/skills/alchemy-web3/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/alchemy-web3/agent.md)
- [Download page](https://openagent3.xyz/downloads/alchemy-web3)