What it does
Alchemy gives node access to Ethereum and other blockchains through JSON-RPC, for example to read the latest block or a balance without running a node. Requests are POST calls with a JSON body and JSON answers. Free with a free API key for 30 million compute units a month and 15 requests a second. An official MCP server at https://mcp.alchemy.com/mcp lets AI agents read chain data.
At a glance
- API key
- Needed, free · More APIs with a free key
- Pricing
- Free with a free API key for 30 million compute units a month and 15 requests a second.
- Formats
- JSON
- Interface
- REST, MCP
- Provider
- alchemy.com
More information: https://www.alchemy.com/docs
Is this your service? Show that it is listed
Put this badge on your website or in your README; it links to this page. About the badge
Example request
curl
curl -X POST 'https://eth-mainnet.g.alchemy.com/v2/YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"eth_blockNumber","params":[]}'
JavaScript
const response = await fetch("https://eth-mainnet.g.alchemy.com/v2/YOUR_API_KEY", {
method: 'POST',
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({"jsonrpc":"2.0","id":1,"method":"eth_blockNumber","params":[]}),
});
const data = await response.json();
console.log(data);
Python
import requests
response = requests.post(
"https://eth-mainnet.g.alchemy.com/v2/YOUR_API_KEY",
headers={
"Content-Type": "application/json",
},
json={
"jsonrpc": "2.0",
"id": 1,
"method": "eth_blockNumber",
"params": {},
},
timeout=30,
)
print(response.json())
Replace YOUR_API_KEY with your own key.