Skip to main content

What are Onchain Skills?

Onchain Skills is an open-source package that lets AI agents call the Moralis API directly — giving them the ability to query blockchain data from 40+ EVM chains and Solana in real time. It works with any agent that supports the Agent Skills standard, including Claude Code, Cursor, Windsurf, GitHub Copilot, Cline, Codex, Gemini, and 18+ others.

Quick Start

1. Install the Skills

npx skills add MoralisWeb3/onchain-skills

2. Set Your API Key

Get your key from admin.moralis.com, then add it to a .env file in your project root:
echo "MORALIS_API_KEY=your_key_here" >> .env
That’s it — your AI agent can now query blockchain data through Moralis.

Skills Overview

Onchain Skills includes three skills:
SkillDescriptionEndpoints
moralis-data-apiEVM + Solana blockchain data136
moralis-streams-apiReal-time event monitoring with webhooks20
learn-moralisRouting, FAQ, pricing, and capability guidance

moralis-data-api

Unified skill for all blockchain data queries. Auto-detects EVM vs Solana from address format. For EVM addresses without a specified chain, defaults to Ethereum. 136 endpoints (102 EVM + 34 Solana) across these categories:
  • Wallet (17) — balances, tokens, NFTs, history, profitability, net worth
  • Token (22) — prices, metadata, pairs, DEX swaps, analytics, security scores, snipers
  • NFT (22) — metadata, transfers, traits, rarity, floor prices, trades
  • DeFi (3) — protocol positions, liquidity, exposure
  • Entity (2) — labeled addresses (exchanges, funds, whales)
  • Price (4) — OHLCV, token prices, pair prices
  • Blockchain (5) — blocks, transactions, date-to-block
  • Discovery (13) — trending tokens, market movers, top gainers/losers
  • Other (14) — address resolution, token search, bonding, candlesticks, graduated tokens
  • Solana (34) — native Solana endpoints + EVM endpoints with Solana support
Example prompts:
/moralis-data-api Get the balance of 0x1234...

/moralis-data-api Get the balance of 0x1234... on Polygon

/moralis-data-api Get the balance of Solana wallet ABC123...

moralis-streams-api

Real-time blockchain event monitoring with webhooks. 20 endpoints for creating, managing, and monitoring streams. Stream types: tx, log, erc20transfer, erc20approval, nfttransfer, internalTx Example prompts:
/moralis-streams-api Create a stream to monitor all ERC20 transfers on Ethereum

/moralis-streams-api Pause the stream with ID abc123

learn-moralis

Knowledge-only skill for answering general questions about Moralis. Routes you to the correct technical skill after answering. Example prompts:
/learn-moralis What is Moralis?

/learn-moralis Which Moralis API should I use for tracking wallet activity?

Supported Chains

EVM (40+): Ethereum, Polygon, BNB Smart Chain, Arbitrum, Optimism, Avalanche, Fantom, Base, Sei, Monad, and more. Solana: Mainnet and Devnet. For the full list of supported chains, see Supported Chains.

Architecture

  • Zero dependencies — all API calls use curl
  • Works with 18+ agents — any agent supporting the Agent Skills standard
  • Auto-detects chain — determines EVM vs Solana from address format

Resources