Learn Moralis
Behavior
If the user invokes /learn-moralis with no question (or just says "learn moralis"), respond with a friendly platform overview. Walk them through:
- 1. What Moralis is (enterprise Web3 data platform)
- The two skills available and when to use each:
-
@moralis-data-api (136 endpoints) — query wallet balances, tokens, NFTs, DeFi positions, prices, transactions, analytics. Use for "what is the current/historical state?"
-
@moralis-streams-api (20 endpoints, EVM only) — real-time EVM event monitoring via webhooks. Use for "notify me when something happens"
- 3. Supported chains: 40+ EVM chains for both skills, Solana for Data API only
- How to get started: set
MORALIS_API_KEY in .env, then use the skill that fits their need
Keep it conversational and concise — think "onboarding tour", not "dump the docs". End by asking what they'd like to build so you can point them to the right skill.
If the user invokes /learn-moralis with a specific question, answer that question directly using the knowledge below, then route them to the appropriate technical skill.
What is Moralis?
Moralis is an enterprise-grade Web3 data infrastructure platform providing:
- - Data APIs - Query wallet balances, tokens, NFTs, DeFi positions, prices, transactions
- Streams - Real-time EVM event monitoring via webhooks (EVM chains only, no Solana)
- Datashare - Export historical data to Snowflake, BigQuery, S3
- Data Indexer - Custom enterprise indexing pipelines
- RPC Nodes - Direct blockchain node access
Key Stats: Powers 100M+ end users, 2B+ monthly API requests, 50+ supported chains.
Routing to Technical Skills
After answering a general question, route users to the appropriate skill:
| User Need | Route To |
|---|
| Query wallet data (balances, tokens, NFTs, history) | @moralis-data-api |
| Get token prices, metadata, analytics |
@moralis-data-api |
| Query NFT metadata, traits, floor prices | @moralis-data-api |
| Get DeFi positions, protocol data | @moralis-data-api |
| Query blocks, transactions | @moralis-data-api |
|
Real-time wallet monitoring (EVM) | @moralis-streams-api |
|
Real-time contract events (EVM) | @moralis-streams-api |
| Webhooks for EVM on-chain events | @moralis-streams-api |
| Track EVM transfers as they happen | @moralis-streams-api |
Rule of thumb:
- - Data API = "What is the current/historical state?"
- Streams = "Notify me when something happens"
Quick Capability Reference
Can Moralis Do This?
| Question | Answer | Skill |
|---|
| Get wallet token balances? | Yes, with USD prices | @moralis-data-api |
| Get wallet NFTs? |
Yes, with metadata | @moralis-data-api |
| Get wallet transaction history? | Yes, decoded | @moralis-data-api |
| Get token prices? | Yes, real-time + OHLCV | @moralis-data-api |
| Get NFT floor prices? | Yes (ETH, Base, Sei) | @moralis-data-api |
| Get DeFi positions? | Yes (major chains) | @moralis-data-api |
| Monitor wallets in real-time? | Yes (EVM only) | @moralis-streams-api |
| Track contract events live? | Yes (EVM only) | @moralis-streams-api |
| Get historical events? | Use Data API queries | @moralis-data-api |
| ENS/Unstoppable domain lookup? | Yes | @moralis-data-api |
| Token security scores? | Yes | @moralis-data-api |
| Detect snipers/bots? | Yes | @moralis-data-api |
| Get trending tokens? | Yes | @moralis-data-api |
| Get top tokens by market cap? | Yes | @moralis-data-api |
| Search tokens by name/symbol? | Yes | @moralis-data-api |
What Moralis Cannot Do
- - Execute transactions (read-only APIs)
- Provide private node access (use RPC Nodes product separately)
- Index custom smart contracts (use Data Indexer product)
- Store user data (you handle storage)
- Provide testnet price data (only mainnet prices)
Supported Chains
Full API Support
| Chain | Chain ID | Notes |
|---|
| Ethereum | 0x1 | All APIs including floor prices |
| Base |
0x2105 | All APIs including floor prices |
| Polygon | 0x89 | Missing only floor prices |
| BSC | 0x38 | No profitability, no floor prices |
| Arbitrum | 0xa4b1 | No profitability, no floor prices |
| Optimism | 0xa | No profitability, no floor prices |
| Avalanche | 0xa86a | No profitability, no floor prices |
| Sei | 0x531 | Nearly full (no profitability), includes floor prices |
| Monad | 0x8f | New chain, good support |
Also Supported
Linea, Fantom, Cronos, Gnosis, Chiliz, Moonbeam, Moonriver, Flow, Ronin, Lisk, Pulse
Solana
Mainnet and Devnet supported via @moralis-data-api only. Streams does not support Solana. Use __solana suffix endpoints.
Coming Soon
Blast, zkSync, Mantle, opBNB, Polygon zkEVM, Zetachain
Pricing Overview
| Plan | Monthly CUs | Throughput | Price |
|---|
| Free | 40K/day | 1,000 CU/s | $0 |
| Starter |
2M | 1,000 CU/s | $49/mo |
| Pro | 100M | 2,000 CU/s | $199/mo |
| Business | 500M | 5,000 CU/s | $490/mo |
| Enterprise | Custom | Custom | Contact |
Compute Units (CUs): Each API call costs CUs based on complexity. Simple queries ~1-5 CUs, complex queries ~10-50 CUs.
Overages: Starter $11.25/M, Pro $5/M, Business $4/M
Free tier includes: All APIs (Wallet, Token, NFT, Price, DeFi, Blockchain, Streams)
Getting Started
- 1. Sign up: https://admin.moralis.com/register
- Get API key: Dashboard → API Keys
- Set up
.env: Add MORALIS_API_KEY=your_key to your .env file (the skill will help you create it) - Use skill: Ask what you want to build — the skill will check for your key and guide you
Common Use Cases
Wallet/Portfolio Tracker
Need: Display user's tokens, NFTs, balances, and transaction history.
Solution: @moralis-data-api endpoints:
- -
getWalletTokenBalancesPrice - Token balances with prices - INLINECODE9 - NFT holdings
- INLINECODE10 - Decoded transaction history
- INLINECODE11 - Total portfolio value
Crypto Tax/Compliance
Need: Export transaction history with cost basis.
Solution: @moralis-data-api endpoints:
- -
getWalletHistory - All transactions decoded - INLINECODE13 - Realized gains/losses
NFT Marketplace
Need: Display NFT metadata, traits, prices, and ownership.
Solution: @moralis-data-api endpoints:
- -
getNFTMetadata - Full metadata + traits - INLINECODE15 - Floor price
- INLINECODE16 - Current holders
- INLINECODE17 - Sale history
DeFi Dashboard
Need: Show user's DeFi positions across protocols.
Solution: @moralis-data-api endpoints:
- -
getDefiPositionsSummary - All positions - INLINECODE19 - Protocol-specific data
Trading Bot / Alerts
Need: React to on-chain events in real-time.
Solution: @moralis-streams-api:
- - Create stream with
topic0 for target events - Receive webhook when event occurs
- Process and act on data
Token Analytics Platform
Need: Token prices, holders, trading volume, security scores.
Solution: @moralis-data-api endpoints:
- -
getTokenPrice - Current price - INLINECODE22 - Volume, liquidity
- INLINECODE23 - Holder distribution
- INLINECODE24 - Security analysis
Data API vs Streams: When to Use
| Scenario | Use |
|---|
| Display current wallet balance | Data API |
| Alert when balance changes |
Streams |
| Show transaction history | Data API |
| Log every new transaction | Streams |
| Get NFT metadata | Data API |
| Notify on NFT transfer | Streams |
| Query token price | Data API |
| Track DEX swaps live | Streams |
Performance Expectations
Most Data API endpoints respond quickly. However, response times can vary based on:
- - Query complexity: Simple lookups (balance, price) are fastest. Decoded endpoints (wallet history, DeFi positions) do more processing.
- Wallet size: Wallets with large transaction histories take longer. Use pagination with smaller limits for whale/power-user wallets.
- Chain: Response times vary across chains. Some chains are inherently slower than others.
Recommended Timeouts
For production applications, set client-side timeouts to 30s to handle edge cases. Most requests return much faster, but large wallets or slower chains can occasionally take longer.
For detailed optimization guidance, see @moralis-data-api → references/PerformanceAndLatency.md.
Reference Documentation
For detailed information:
Support Resources
- - Docs: https://docs.moralis.com
- Discord: Community support
- Forum: https://forum.moralis.io
- Stack Overflow: Tag INLINECODE25
Next Steps
After answering a question, always suggest the next action:
- 1. If user needs to query data: "Use @moralis-data-api — make sure your
MORALIS_API_KEY is set in your .env file, then I can help you fetch the data."
- 2. If user needs real-time events: "Use @moralis-streams-api — make sure your
MORALIS_API_KEY is set in your .env file and have your webhook URL ready, then I can help set up the stream."
- 3. If user is exploring: Suggest specific endpoints based on their use case.
学习 Moralis
行为
如果用户调用 /learn-moralis 但没有提出具体问题(或仅说学习 moralis),请以友好的平台概述进行回复。引导用户了解:
- 1. Moralis 是什么(企业级 Web3 数据平台)
- 两个可用技能及其适用场景:
-
@moralis-data-api(136 个端点)— 查询钱包余额、代币、NFT、DeFi 仓位、价格、交易、分析数据。适用于当前/历史状态是什么?
-
@moralis-streams-api(20 个端点,仅限 EVM)— 通过 webhook 实现实时 EVM 事件监控。适用于当某事发生时通知我
- 3. 支持的链:两个技能均支持 40+ EVM 链,Solana 仅支持 Data API
- 如何开始:在 .env 中设置 MORALISAPIKEY,然后使用符合需求的技能
保持对话风格且简洁 — 将其视为引导式介绍,而非文档堆砌。最后询问用户想要构建什么,以便引导至正确的技能。
如果用户调用 /learn-moralis 并提出具体问题,请使用以下知识直接回答该问题,然后将用户引导至相应的技术技能。
什么是 Moralis?
Moralis 是一个企业级 Web3 数据基础设施平台,提供:
- - Data API — 查询钱包余额、代币、NFT、DeFi 仓位、价格、交易
- Streams — 通过 webhook 实现实时 EVM 事件监控(仅限 EVM 链,不支持 Solana)
- Datashare — 将历史数据导出至 Snowflake、BigQuery、S3
- Data Indexer — 自定义企业级索引管道
- RPC 节点 — 直接区块链节点访问
关键数据: 服务 1 亿+ 终端用户,每月 20 亿+ API 请求,支持 50+ 条链。
路由至技术技能
回答一般性问题后,将用户引导至相应技能:
| 用户需求 | 路由至 |
|---|
| 查询钱包数据(余额、代币、NFT、历史记录) | @moralis-data-api |
| 获取代币价格、元数据、分析数据 |
@moralis-data-api |
| 查询 NFT 元数据、特征、地板价 | @moralis-data-api |
| 获取 DeFi 仓位、协议数据 | @moralis-data-api |
| 查询区块、交易 | @moralis-data-api |
|
实时钱包监控(EVM) | @moralis-streams-api |
|
实时合约事件(EVM) | @moralis-streams-api |
| EVM 链上事件的 Webhook | @moralis-streams-api |
| 追踪实时 EVM 转账 | @moralis-streams-api |
经验法则:
- - Data API = 当前/历史状态是什么?
- Streams = 当某事发生时通知我
快速能力参考
Moralis 能否做到?
| 问题 | 答案 | 技能 |
|---|
| 获取钱包代币余额? | 可以,含美元价格 | @moralis-data-api |
| 获取钱包 NFT? |
可以,含元数据 | @moralis-data-api |
| 获取钱包交易历史? | 可以,已解码 | @moralis-data-api |
| 获取代币价格? | 可以,实时 + OHLCV | @moralis-data-api |
| 获取 NFT 地板价? | 可以(ETH、Base、Sei) | @moralis-data-api |
| 获取 DeFi 仓位? | 可以(主要链) | @moralis-data-api |
| 实时监控钱包? | 可以(仅 EVM) | @moralis-streams-api |
| 实时追踪合约事件? | 可以(仅 EVM) | @moralis-streams-api |
| 获取历史事件? | 使用 Data API 查询 | @moralis-data-api |
| ENS/Unstoppable 域名查询? | 可以 | @moralis-data-api |
| 代币安全评分? | 可以 | @moralis-data-api |
| 检测狙击手/机器人? | 可以 | @moralis-data-api |
| 获取热门代币? | 可以 | @moralis-data-api |
| 获取市值排名靠前的代币? | 可以 | @moralis-data-api |
| 按名称/符号搜索代币? | 可以 | @moralis-data-api |
Moralis 无法做到
- - 执行交易(只读 API)
- 提供私有节点访问(请单独使用 RPC 节点产品)
- 索引自定义智能合约(请使用 Data Indexer 产品)
- 存储用户数据(由您处理存储)
- 提供测试网价格数据(仅主网价格)
支持的链
完整 API 支持
| 链 | 链 ID | 备注 |
|---|
| Ethereum | 0x1 | 所有 API,含地板价 |
| Base |
0x2105 | 所有 API,含地板价 |
| Polygon | 0x89 | 仅缺少地板价 |
| BSC | 0x38 | 无盈利能力,无地板价 |
| Arbitrum | 0xa4b1 | 无盈利能力,无地板价 |
| Optimism | 0xa | 无盈利能力,无地板价 |
| Avalanche | 0xa86a | 无盈利能力,无地板价 |
| Sei | 0x531 | 近乎完整(无盈利能力),含地板价 |
| Monad | 0x8f | 新链,支持良好 |
也支持
Linea、Fantom、Cronos、Gnosis、Chiliz、Moonbeam、Moonriver、Flow、Ronin、Lisk、Pulse
Solana
主网和开发网仅通过 @moralis-data-api 支持。Streams 不支持 Solana。请使用 solana 后缀端点。
即将支持
Blast、zkSync、Mantle、opBNB、Polygon zkEVM、Zetachain
定价概览
| 套餐 | 每月 CU | 吞吐量 | 价格 |
|---|
| 免费 | 4 万/天 | 1,000 CU/秒 | $0 |
| 入门 |
200 万 | 1,000 CU/秒 | $49/月 |
| 专业 | 1 亿 | 2,000 CU/秒 | $199/月 |
| 商业 | 5 亿 | 5,000 CU/秒 | $490/月 |
| 企业 | 自定义 | 自定义 | 联系客服 |
计算单位(CU): 每次 API 调用根据复杂度消耗 CU。简单查询约 1-5 CU,复杂查询约 10-50 CU。
超额费用: 入门 $11.25/百万,专业 $5/百万,商业 $4/百万
免费套餐包含: 所有 API(钱包、代币、NFT、价格、DeFi、区块链、Streams)
开始使用
- 1. 注册: https://admin.moralis.com/register
- 获取 API 密钥: 控制台 → API 密钥
- 设置 .env: 将 MORALISAPIKEY=your_key 添加到您的 .env 文件中(该技能将帮助您创建)
- 使用技能: 询问您想要构建什么 — 该技能将检查您的密钥并引导您
常见用例
钱包/投资组合追踪器
需求: 显示用户的代币、NFT、余额和交易历史。
解决方案: @moralis-data-api 端点:
- - getWalletTokenBalancesPrice — 带价格的代币余额
- getWalletNFTs — NFT 持仓
- getWalletHistory — 已解码的交易历史
- getWalletNetWorth — 总投资组合价值
加密货币税务/合规
需求: 导出带成本基础的交易历史。
解决方案: @moralis-data-api 端点:
- - getWalletHistory — 所有已解码交易
- getWalletProfitability — 已实现收益/亏损
NFT 市场
需求: 显示 NFT 元数据、特征、价格和所有权。
解决方案: @moralis-data-api 端点:
- - getNFTMetadata — 完整元数据 + 特征
- getNFTFloorPriceByContract — 地板价
- getNFTOwners — 当前持有者
- getNFTTrades — 销售历史
DeFi 仪表盘
需求: 显示用户跨协议的 DeFi 仓位。
解决方案: @moralis-data-api 端点:
- - getDefiPositionsSummary — 所有仓位
- getDefi