Install
openclaw skills install @plagtech/crypto-skillReal-time crypto prices, gas, trending tokens, wallet balances, ENS resolution, and token info for OpenClaw agents. Zero API keys required. Use when the user asks about crypto prices, token info, wallet balances, gas costs, trending coins, name resolution, or any blockchain data lookup.
openclaw skills install @plagtech/crypto-skillReal-time crypto intelligence. No API keys. No setup. Just ask.
Use this skill when the user asks about:
Get current USD price for any token by symbol.
curl -s "https://gateway.spraay.app/api/price?symbol=ETH"
Works with any major token symbol: BTC, ETH, SOL, USDC, USDT, ARB, OP, MATIC, AVAX, LINK, UNI, AAVE, etc.
For multiple prices in sequence:
curl -s "https://gateway.spraay.app/api/price?symbol=BTC"
curl -s "https://gateway.spraay.app/api/price?symbol=ETH"
curl -s "https://gateway.spraay.app/api/price?symbol=SOL"
When the user asks for a price conversion (e.g. "how much is 2 ETH in USD"):
When comparing tokens, fetch both prices and calculate the ratio.
Get trending tokens with price, volume, and activity data via DexScreener.
curl -s "https://api.dexscreener.com/token-boosts/latest/v1" | head -c 4000
For trending on a specific chain:
curl -s "https://api.dexscreener.com/token-profiles/latest/v1" | head -c 4000
Search for a specific token across all DEXes:
curl -s "https://api.dexscreener.com/latest/dex/search?q=PEPE" | head -c 4000
When presenting trending tokens:
Check current gas prices on EVM chains using public RPCs.
Base:
curl -s -X POST https://mainnet.base.org -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","method":"eth_gasPrice","id":1}' | jq -r '.result' | xargs printf "%d\n"
Ethereum:
curl -s -X POST https://eth.llamarpc.com -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","method":"eth_gasPrice","id":1}' | jq -r '.result' | xargs printf "%d\n"
Arbitrum:
curl -s -X POST https://arb1.arbitrum.io/rpc -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","method":"eth_gasPrice","id":1}' | jq -r '.result' | xargs printf "%d\n"
Polygon:
curl -s -X POST https://polygon-rpc.com -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","method":"eth_gasPrice","id":1}' | jq -r '.result' | xargs printf "%d\n"
The result is in wei. Convert to gwei by dividing by 1,000,000,000. Present as: "[Chain]: X.XX gwei" For Ethereum, also estimate a standard transfer cost: gas price × 21000 gas units, converted to ETH and USD.
Resolve human-readable names to addresses and vice versa.
curl -s "https://gateway.spraay.app/api/resolve?name=vitalik.eth"
Works with:
When the user provides a name anywhere in a crypto context, resolve it automatically before using the address.
Check ETH/native token balance on any EVM chain using public RPCs.
Base (replace ADDRESS with the wallet address):
curl -s -X POST https://mainnet.base.org -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","method":"eth_getBalance","params":["ADDRESS","latest"],"id":1}' | jq -r '.result' | xargs printf "%d\n"
Ethereum:
curl -s -X POST https://eth.llamarpc.com -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","method":"eth_getBalance","params":["ADDRESS","latest"],"id":1}' | jq -r '.result' | xargs printf "%d\n"
The result is in wei. Divide by 1,000,000,000,000,000,000 (10^18) to get ETH.
For ERC-20 token balances (e.g. USDC on Base):
# USDC on Base: 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
# balanceOf(address) selector: 0x70a08231
curl -s -X POST https://mainnet.base.org -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","method":"eth_call","params":[{"to":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","data":"0x70a08231000000000000000000000000ADDRESS_WITHOUT_0x"},"latest"],"id":1}' | jq -r '.result' | xargs printf "%d\n"
USDC has 6 decimals — divide result by 1,000,000.
If the user provides a name (e.g. vitalik.eth), resolve it first, then check the balance.
When reporting balances:
Look up token details — contract address, decimals, chain.
Common Base tokens (use these addresses for balance checks):
0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 (6 decimals)0x4200000000000000000000000000000000000006 (18 decimals)0x50c5725949A6F0c72E6C4a641F24049A917DB0Cb (18 decimals)0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf (8 decimals)0x2Ae3F1Ec7F1F5012CFEab0185bfc7aa3cf0DEc22 (18 decimals)0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA (6 decimals)For tokens not in this list, search DexScreener:
curl -s "https://api.dexscreener.com/latest/dex/search?q=TOKEN_SYMBOL" | head -c 3000
This returns the contract address, chain, price, liquidity, and pair info.
curl -s "https://gateway.spraay.app/api/chains"
Spraay supports: Base, Ethereum, Arbitrum, Polygon, BNB Chain, Avalanche, Solana, Unichain, Plasma, BOB, Stacks, XRP Ledger, Bittensor.