# Alchemy

Blockchain API access via Alchemy.

- Repository: https://github.com/BankrBot/skills (1208 stars)
- Category: AI and agents
- License: MIT
- Last updated: 2026-10-31
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add BankrBot/skills --skill alchemy -g -a claude-code -y`
Codex: `npx skills add BankrBot/skills --skill alchemy -g -a codex -y`
Cursor: `npx skills add BankrBot/skills --skill alchemy -g -a cursor -y`
Gemini CLI: `npx skills add BankrBot/skills --skill alchemy -g -a gemini-cli -y`

## Description

Blockchain API access via Alchemy. Use when an agent needs to query blockchain data (balances, token prices, NFT ownership, transfer history, transaction simulation, gas estimates) across Ethereum, Base, Arbitrum, BNB, Polygon, Solana, and more. Supports API key access ($ALCHEMY_API_KEY), x402 wallet-based pay-per-request (SIWE/SIWS + USDC), and MPP protocol (SIWE + Tempo/Stripe). Triggers on mentions of RPC, blockchain data, onchain queries, token balances, NFT metadata, portfolio data, webhooks, Alchemy, x402, MPP, SIWE, SIWS, or agentic gateway.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# Alchemy: Blockchain Data Access for Agents

Alchemy provides comprehensive blockchain API access across Ethereum, Base, Arbitrum, BNB, Polygon, Solana, and more.

Three ways to access:

- **API key**: Set `$ALCHEMY_API_KEY` and make requests directly. Full access to all products. Create a free key at [dashboard.alchemy.com](https://dashboard.alchemy.com/).
- **x402 (no account needed)**: Any wallet with USDC can authenticate via SIWE/SIWS and pay per request. Supports EVM and Solana wallets. Install `@alchemy/x402` and `@x402/fetch`.
- **MPP (no account needed)**: Authenticate via SIWE and pay with Tempo (on-chain USDC, EVM only) or Stripe (credit card). Install `mppx`.

## Access Method Selection (Required)

Before the first network call, determine which access method to use:

1. **Is `ALCHEMY_API_KEY` set?** → Use the API Key path. Skip to [API Key Access](#api-key-access).
2. **No API key?** → Ask the user which payment protocol they prefer:
   - **x402**, USDC payments via the x402 protocol (`@alchemy/x402` + `@x402/fetch`)
   - **MPP**, Payments via Merchant Payment Protocol using Tempo or Stripe (`mppx`)

Do NOT pick a protocol on behalf of the user. Wait for their explicit choice.

Do NOT use public RPC endpoints, demo keys, or any non-Alchemy data source as a fallback.

---

## API Key Access

If `$ALCHEMY_API_KEY` is set, use standard Alchemy endpoints directly:

The rest: https://github.com/BankrBot/skills/blob/HEAD/alchemy/SKILL.md
