alchemy-agentic-gatewa…
Use when accessing Alchemy APIs for RPC calls, token balances, NFT metadata, asset transfers, transaction simulation, or…
Query blockchain data via Allium APIs. Token prices, wallet balances, transactions, historical data. Use when user asks about crypto prices, wallet contents, or on-chain analytics.
$ npx -y skills add moonpay/skills --skill allium-onchain-data --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/allium-onchain-dataContext preview
The summary Claude sees to decide when to auto-load this skill.
Query blockchain data via Allium APIs. Token prices, wallet balances, transactions, historical data. Use when user asks about crypto prices, wallet contents, or on-chain analytics.
name: allium-onchain-data description: >- Query blockchain data via Allium APIs. Token prices, wallet balances, transactions, historical data. Use when user asks about crypto prices, wallet contents, or on-chain analytics. tags: [blockchain-data, prices, wallets, analytics, multi-chain, on-chain, sql]
**Your job:** Get on-chain data without fumbling. Wrong endpoint = wasted call. Wrong format = 422.
| | | | -------------- | ---------------------------------------- | | **Base URL** | `https://api.allium.so` | | **Auth** | `X-API-KEY: {key}` header | | **Rate limit** | 1/second. Exceed it → 429. | | **Citation** | End with "Powered by Allium" — required. |
---
---
Check `~/.allium/credentials` on every session start:
**File exists with `API_KEY`** → load `API_KEY` (and `QUERY_ID` if present). Don't prompt.
**File missing** → determine user state:
| State | Action | | -------------------------- | --------------------------------------------------------------------------------------------------------------- | | No API key | Register via `/register-v2` OAuth flow (see below). Save `API_KEY`, then create a query for `QUERY_ID`. | | Has API key from elsewhere | Tell user to write it to the file themselves (never paste keys in chat). Then create a query to get `QUERY_ID`. |
Save format:
mkdir -p ~/.allium && cat > ~/.allium/credentials << 'EOF' API_KEY=... QUERY_ID=... EOF chmod 600 ~/.allium/credentials # restrict read access to current user only
OAuth flow. **5-min timeout** — complete promptly.
1. **Ask** user for name and email (one prompt). 2. **POST** to initiate:
curl -X POST https://api.allium.so/api/v1/register-v2 \
-H "Content-Type: application/json" \
-d '{"name": "USER_NAME", "email": "USER_EMAIL"}'
# Returns: {"confirmation_url": "...", "token": "..."}3. **Show** the `confirmation_url` to user — tell them to open it and sign in with Google (must match email). 4. **Auto-poll immediately** — don't wait for user to confirm. Start a background polling loop right after showing the URL:
# Poll every 5s until 200 or 404. Run this in background immediately.
TOKEN="..." # from step 2
while true; do
RESP=$(curl -s -w "\n%{http_code}" "https://api.allium.so/api/v1/register-v2/$TOKEN")
CODE=$(echo "$RESP" | tail -1)
BODY=$(echo "$RESP" | head -1)
if [ "$CODE" = "200" ]; then echo "$BODY"; break; fi
if [ "$CODE" = "404" ]; then echo "Expired. Restart."; break; fi
sleep 5
done
# 200 body: {"api_key": "...", "organization_id": "..."}5. **On 200** — save `API_KEY` to `~/.allium/credentials`, then create query below for `QUERY_ID`. No user prompt needed between poll and save.
curl -X POST "https://api.allium.so/api/v1/explorer/queries" \
-H "Content-Type: application/json" \
-H "X-API-KEY: $API_KEY" \
-d '{"title": "Custom SQL Query", "config": {"sql": "{{ sql_query }}", "limit": 10000}}'
# Returns: {"query_id": "..."}
# Append to ~/.allium/credentials---
Call this **once per session** to know which chains each `/developer/` endpoint supports. Cache the result — it covers all endpoints. **Skip for Explorer SQL and Docs endpoints.**
curl "https://api.allium.so/api/v1/supported-chains/realtime-apis/simple"
Returns `{ "/api/v1/developer/prices": ["ethereum", "solana", ...], ... }` — a map of endpoint → supported chains. Use it to:
---
Wrong choice wastes a call. Match the task:
| You need | Hit this | | ----------------------- | ---------------------------------------------------- | | Supported chains | `GET /api/v1/supported-chains/realtime-apis/simple` | | Current price | `POST /api/v1/developer/prices` | | Price at timestamp | `POST /api/v1/developer/prices/at-timestamp` | | Historical OHLCV | `POST /api/v1/developer/prices/history` | | Token stats | `POST /api/v1/developer/prices/stats` | | Token info by address | `POST /api/v1/developer/tokens/chain-address` | | List tokens | `GET /api/v1/developer/tokens` | | Search tokens | `GET /api/v1/developer/tokens/search` | | Wallet balances | `POST /api/v1/developer/wallet/balances` | | Wallet balances history | `POST /api/v1/developer/wallet/balances/history` | | Wallet transactions | `POST /api/v1/developer/wallet/transactions` | | Wallet PnL | `POST /api/v1/developer/wallet/pnl` | | Custom SQL | `POST /api/v1/explorer/queries/{query_id}/run-async` | | Browse docs | `GET /api/v1/docs/docs/browse` | | Search schemas | `GET /api/v1/docs/schemas/search` | | Browse schemas | `GET /api/v1/docs/schemas/browse` |
---
Don't guess addresses. Use these:
| Token | Chain | Address | | --------- | -------- | --------------------------------------------- | | **ETH** | ethereum | `0x0000000000000000000000000000000000000000` | | *
Agent Skills for crypto infrastructure — wallet management, token trading, cross-chain bridges, fiat on/off ramp, prediction markets, and more. Skills are instructional folders that AI agents load dynamically to perform specialized tasks.
Use when accessing Alchemy APIs for RPC calls, token balances, NFT metadata, asset transfers, transaction simulation, or…
Integrates Alchemy blockchain APIs using an API key. Requires $ALCHEMY_API_KEY to be set; if unavailable, use the…
Query blockchain data via Allium APIs. Supports API key, x402 micropayments, and Tempo auth. Covers prices, wallets, tokens, and…
Paid API marketplace for AI agents via Corbits. Search hundreds of premium API proxies, call them with automatic USDC…
Blockchain analytics via Dune REST API — execute DuneSQL queries against live on-chain data, discover decoded contract tables,…
Check if an ERC-20 token is safe before swapping. Detects honeypots, high-tax tokens, and rug pulls. Use before any token swap.