moralis-data-api

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

CRITICAL: Read Rule Files Before Implementing

重要提示:实现前请先阅读规则文件

The #1 cause of bugs is not reading the endpoint rule file before writing code.
For EVERY endpoint:
  1. Read
    rules/{EndpointName}.md
  2. Find "Example Response" section
  3. Copy the EXACT JSON structure
  4. Note field names (snake_case), data types, HTTP method, path, wrapper structure
Reading Order:
  1. This SKILL.md (core patterns)
  2. Endpoint rule file in
    rules/
  3. Pattern references in
    references/
    (for edge cases only)

导致bug的头号原因是在编写代码前未阅读端点规则文件。
对于每一个端点:
  1. 阅读
    rules/{EndpointName}.md
  2. 找到“Example Response”部分
  3. 复制完全一致的JSON结构
  4. 注意字段名(snake_case)、数据类型、HTTP方法、路径、包装结构
阅读顺序:
  1. 本SKILL.md(核心模式)
  2. rules/
    目录下的端点规则文件
  3. references/
    中的模式参考(仅用于处理边缘情况)

Setup

配置

API Key (optional)

API密钥(可选)

Never ask the user to paste their API key into the chat. Instead:
  1. Check if
    MORALIS_API_KEY
    is already set in the environment (try running
    echo $MORALIS_API_KEY
    ).
  2. If not set, offer to create the
    .env
    file with an empty placeholder:
    MORALIS_API_KEY=
  3. Tell the user to open the
    .env
    file and paste their key there themselves.
  4. Let them know: without the key, you won't be able to test or call the Moralis API on their behalf.
If they don't have a key yet, point them to admin.moralis.com/register (free, no credit card).
绝对不要让用户在聊天中粘贴他们的API密钥。 正确做法:
  1. 检查环境中是否已设置
    MORALIS_API_KEY
    (可尝试运行
    echo $MORALIS_API_KEY
    )。
  2. 如果未设置,主动提议创建包含空占位符的
    .env
    文件:
    MORALIS_API_KEY=
  3. 告知用户自行打开
    .env
    文件并粘贴密钥。
  4. 提醒用户:没有密钥的话,无法代表他们测试或调用Moralis API。
如果用户还没有密钥,引导他们前往admin.moralis.com/register注册(免费,无需信用卡)。

Environment Variable Discovery

环境变量位置

The
.env
file location depends on how skills are installed:
Create the
.env
file in the project root (same directory the user runs Claude Code from). Make sure
.env
is in
.gitignore
.
.env
文件的位置取决于技能的安装方式:
在项目根目录创建
.env
文件(即用户运行Claude Code的同一目录)。确保
.env
已添加到
.gitignore
中。

Verify Your Key

验证密钥

bash
curl "https://deep-index.moralis.io/api/v2.2/0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045/balance?chain=0x1" \
  -H "X-API-Key: $MORALIS_API_KEY"

bash
curl "https://deep-index.moralis.io/api/v2.2/0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045/balance?chain=0x1" \
  -H "X-API-Key: $MORALIS_API_KEY"

Base URLs

基础URL

APIBase URL
EVM
https://deep-index.moralis.io/api/v2.2
Solana
https://solana-gateway.moralis.io
API基础URL
EVM
https://deep-index.moralis.io/api/v2.2
Solana
https://solana-gateway.moralis.io

Authentication

身份验证

All requests require:
X-API-Key: $MORALIS_API_KEY

所有请求都需要携带:
X-API-Key: $MORALIS_API_KEY

Quick Reference: Most Common Patterns

快速参考:最常用模式

Data Type Rules

数据类型规则

FieldRealityNOT
block_number
Decimal
12386788
Hex
0xf2b5a4
timestamp
ISO
"2021-05-07T11:08:35.000Z"
Unix
1620394115
balance
String
"1000000000000000000"
Number
decimals
String or numberAlways number
字段正确格式错误格式
block_number
十进制数字
12386788
十六进制
0xf2b5a4
timestamp
ISO字符串
"2021-05-07T11:08:35.000Z"
时间戳数字
1620394115
balance
字符串
"1000000000000000000"
数字类型
decimals
字符串或数字仅数字类型

Block Numbers (always decimal)

区块编号(始终为十进制)

typescript
block_number: 12386788; // number - use directly
block_number: "12386788"; // string - parseInt(block_number, 10)
typescript
block_number: 12386788; // 数字类型 - 直接使用
block_number: "12386788"; // 字符串类型 - 使用parseInt(block_number, 10)转换

Timestamps (usually ISO strings)

时间戳(通常为ISO字符串)

typescript
"2021-05-07T11:08:35.000Z"; // → new Date(timestamp).getTime()
typescript
"2021-05-07T11:08:35.000Z"; // → 使用new Date(timestamp).getTime()转换

Balances (always strings unless its a property named "formatted" eg. balanceFormatted, BigInt)

余额(除非字段名为"formatted",如balanceFormatted,否则始终为字符串,需用BigInt处理)

typescript
balance: "1000000000000000000";
// → (Number(BigInt(balance)) / 1e18).toFixed(6)
typescript
balance: "1000000000000000000";
// → (Number(BigInt(balance)) / 1e18).toFixed(6)

Response Patterns

响应模式

PatternExample Endpoints
Direct array
[...]
getWalletTokenBalancesPrice, getTokenMetadata
Wrapped
{ result: [] }
getWalletNFTs, getWalletTransactions
Paginated
{ page, cursor, result }
getWalletHistory, getNFTTransfers
typescript
// Safe extraction
const data = Array.isArray(response) ? response : response.result || [];
模式示例端点
直接数组
[...]
getWalletTokenBalancesPrice, getTokenMetadata
包装结构
{ result: [] }
getWalletNFTs, getWalletTransactions
分页结构
{ page, cursor, result }
getWalletHistory, getNFTTransfers
typescript
// 安全提取数据
const data = Array.isArray(response) ? response : response.result || [];

Common Field Mappings

常见字段映射

typescript
token_address → tokenAddress
from_address_label → fromAddressLabel
block_number → blockNumber
receipt_status: "1" → success, "0" → failed
possible_spam: "true"/"false"boolean check

typescript
token_address → tokenAddress
from_address_label → fromAddressLabel
block_number → blockNumber
receipt_status: "1" → success, "0" → failed
possible_spam: "true"/"false" → 布尔值检查

Common Pitfalls (Top 5)

常见陷阱(前5名)

  1. Block numbers are decimal, not hex - Use
    parseInt(x, 10)
    , not
    parseInt(x, 16)
  2. Timestamps are ISO strings - Use
    new Date(timestamp).getTime()
  3. Balances are strings - Use
    BigInt(balance)
    for math
  4. Response may be wrapped - Check for
    .result
    before
    .map()
  5. Path inconsistencies - Some use
    /wallets/{address}/...
    , others
    /{address}/...
See references/CommonPitfalls.md for complete reference.

  1. 区块编号是十进制,不是十六进制 - 使用
    parseInt(x, 10)
    ,而非
    parseInt(x, 16)
  2. 时间戳是ISO字符串 - 使用
    new Date(timestamp).getTime()
    转换
  3. 余额是字符串类型 - 计算时使用
    BigInt(balance)
  4. 响应可能被包装 - 调用
    .map()
    前先检查
    .result
    字段
  5. 路径不一致 - 部分端点使用
    /wallets/{address}/...
    ,其他使用
    /{address}/...
完整参考请见references/CommonPitfalls.md

Pagination

分页

Many endpoints use cursor-based pagination:
bash
undefined
许多端点使用基于游标(cursor)的分页:
bash
undefined

First request

首次请求

curl "...?limit=100" -H "X-API-Key: $KEY"
curl "...?limit=100" -H "X-API-Key: $KEY"

Next page

下一页请求

curl "...?limit=100&cursor=<cursor_from_response>" -H "X-API-Key: $KEY"

See [references/Pagination.md](references/Pagination.md) for details.

---
curl "...?limit=100&cursor=<cursor_from_response>" -H "X-API-Key: $KEY"

详细说明请见[references/Pagination.md](references/Pagination.md)。

---

Testing Endpoints

测试端点

bash
ADDRESS="0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
CHAIN="0x1"
bash
ADDRESS="0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
CHAIN="0x1"

Wallet Balance

钱包余额

Token Price

代币价格

Wallet Transactions (note result wrapper)

钱包交易记录(注意结果被包装)

curl "https://deep-index.moralis.io/api/v2.2/${ADDRESS}?chain=${CHAIN}&limit=5"
-H "X-API-Key: $MORALIS_API_KEY" | jq '.result'

---
curl "https://deep-index.moralis.io/api/v2.2/${ADDRESS}?chain=${CHAIN}&limit=5"
-H "X-API-Key: $MORALIS_API_KEY" | jq '.result'

---

Quick Troubleshooting

快速故障排查

IssueCauseSolution
"Property does not exist"Field name mismatchCheck snake_case in rule file
"Cannot read undefined"Missing optional fieldUse
?.
optional chaining
"blockNumber is NaN"Parsing decimal as hexUse radix 10:
parseInt(x, 10)
"Wrong timestamp"Parsing ISO as numberUse
new Date(timestamp).getTime()
"404 Not Found"Wrong endpoint pathVerify path in rule file

问题原因解决方案
"Property does not exist"字段名不匹配检查规则文件中的snake_case字段名
"Cannot read undefined"缺少可选字段使用
?.
可选链操作符
"blockNumber is NaN"将十进制解析为十六进制使用基数10:
parseInt(x, 10)
"Wrong timestamp"将ISO字符串解析为数字使用
new Date(timestamp).getTime()
"404 Not Found"端点路径错误验证规则文件中的路径

Default Chain Behavior

默认链行为

EVM addresses (
0x...
):
Default to Ethereum (
chain=0x1
) unless specified.
Solana addresses (base58): Auto-detected and routed to Solana API.

EVM地址(
0x...
格式):
除非指定,否则默认使用Ethereum链(
chain=0x1
)。
Solana地址(base58格式): 自动检测并路由到Solana API。

Supported Chains

支持的链

EVM (40+ chains): Ethereum (0x1), Polygon (0x89), BSC (0x38), Arbitrum (0xa4b1), Optimism (0xa), Base (0x2105), Avalanche (0xa86a), and more.
Solana: Mainnet, Devnet
See references/SupportedApisAndChains.md for full list.

EVM(40+条链): Ethereum (0x1), Polygon (0x89), BSC (0x38), Arbitrum (0xa4b1), Optimism (0xa), Base (0x2105), Avalanche (0xa86a)等。
Solana: 主网、测试网
完整列表请见references/SupportedApisAndChains.md

Endpoint Catalog

端点目录

Complete list of all 135 endpoints (101 EVM + 34 Solana) organized by category.
所有135个端点的完整列表(101个EVM端点 + 34个Solana端点),按类别组织。

Wallet

钱包

Balances, tokens, NFTs, transaction history, profitability, and net worth data.
EndpointDescription
getNativeBalanceGet native balance by wallet
getNativeBalancesForAddressesGet native balance for a set of wallets
getWalletActiveChainsGet active chains by wallet address
getWalletApprovalsGet ERC20 approvals by wallet
getWalletHistoryGet the complete decoded transaction history of a wallet
getWalletNetWorthGet wallet net worth
getWalletNFTCollectionsGet NFT collections by wallet address
getWalletNFTsGet NFTs by wallet address
getWalletNFTTransfersGet NFT Transfers by wallet address
getWalletProfitabilityGet detailed profit and loss by wallet address
getWalletProfitabilitySummaryGet profit and loss summary by wallet address
getWalletStatsGet summary stats by wallet address
getWalletTokenBalancesPriceGet token balances with prices by wallet address
getWalletTokenTransfersGet ERC20 token transfers by wallet address
getWalletTransactionsGet native transactions by wallet
getWalletTransactionsVerboseGet decoded transactions by wallet
余额、代币、NFT、交易历史、收益和净值数据。
端点描述
getNativeBalance通过钱包地址查询原生代币余额
getNativeBalancesForAddresses查询一组钱包地址的原生代币余额
getWalletActiveChains通过钱包地址查询活跃链
getWalletApprovals通过钱包地址查询ERC20授权记录
getWalletHistory查询钱包的完整解码交易历史
getWalletNetWorth查询钱包净值
getWalletNFTCollections通过钱包地址查询NFT藏品
getWalletNFTs通过钱包地址查询NFT
getWalletNFTTransfers通过钱包地址查询NFT转账记录
getWalletProfitability通过钱包地址查询详细的盈亏数据
getWalletProfitabilitySummary通过钱包地址查询盈亏摘要
getWalletStats通过钱包地址查询摘要统计数据
getWalletTokenBalancesPrice通过钱包地址查询带价格的代币余额
getWalletTokenTransfers通过钱包地址查询ERC20代币转账记录
getWalletTransactions通过钱包地址查询原生代币交易记录
getWalletTransactionsVerbose通过钱包地址查询解码后的交易记录

Token

代币

Token prices, metadata, pairs, DEX swaps, analytics, security scores, and sniper detection.
EndpointDescription
getAggregatedTokenPairStatsGet aggregated token pair statistics by address
getHistoricalTokenScoreGet historical token score by token address
getMultipleTokenAnalyticsGet token analytics for a list of token addresses
getPairAddressGet DEX token pair address
getPairReservesGet DEX token pair reserves
getPairStatsGet stats by pair address
getSnipersByPairAddressGet snipers by pair address
getSwapsByPairAddressGet swap transactions by pair address
getSwapsByTokenAddressGet swap transactions by token address
getSwapsByWalletAddressGet swap transactions by wallet address
getTimeSeriesTokenAnalyticsRetrieve timeseries trading stats by token addresses
getTokenAnalyticsGet token analytics by token address
getTokenBondingStatusGet the token bonding status
getTokenCategoriesGet ERC20 token categories
getTokenHoldersGet a holders summary by token address
getTokenMetadataGet ERC20 token metadata by contract
getTokenMetadataBySymbolGet ERC20 token metadata by symbols
getTokenOwnersGet ERC20 token owners by contract
getTokenPairsGet token pairs by address
getTokenScoreGet token score by token address
getTokenStatsGet ERC20 token stats
getTokenTransfersGet ERC20 token transfers by contract address
代币价格、元数据、交易对、DEX交易、分析数据、安全评分和狙击手检测。
端点描述
getAggregatedTokenPairStats通过地址查询聚合的代币交易对统计数据
getHistoricalTokenScore通过代币地址查询历史代币评分
getMultipleTokenAnalytics查询一组代币地址的代币分析数据
getPairAddress查询DEX代币交易对地址
getPairReserves查询DEX代币交易对储备金
getPairStats通过交易对地址查询统计数据
getSnipersByPairAddress通过交易对地址查询狙击手
getSwapsByPairAddress通过交易对地址查询swap交易记录
getSwapsByTokenAddress通过代币地址查询swap交易记录
getSwapsByWalletAddress通过钱包地址查询swap交易记录
getTimeSeriesTokenAnalytics通过代币地址查询时间序列交易统计数据
getTokenAnalytics通过代币地址查询代币分析数据
getTokenBondingStatus查询代币绑定状态
getTokenCategories查询ERC20代币分类
getTokenHolders通过代币地址查询持有者摘要
getTokenMetadata通过合约地址查询ERC20代币元数据
getTokenMetadataBySymbol通过代币符号查询ERC20代币元数据
getTokenOwners通过合约地址查询ERC20代币持有者
getTokenPairs通过地址查询代币交易对
getTokenScore通过代币地址查询代币评分
getTokenStats查询ERC20代币统计数据
getTokenTransfers通过合约地址查询ERC20代币转账记录

NFT

NFT

NFT metadata, transfers, traits, rarity, floor prices, and trades.
EndpointDescription
getContractNFTsGet NFTs by contract address
getMultipleNFTsGet Metadata for NFTs
getNFTBulkContractMetadataGet metadata for multiple NFT contracts
getNFTByContractTraitsGet NFTs by traits
getNFTCollectionStatsGet summary stats by NFT collection
getNFTContractMetadataGet NFT collection metadata
getNFTContractSalePricesGet NFT sale prices by collection
getNFTContractTransfersGet NFT transfers by contract address
getNFTFloorPriceByContractGet NFT floor price by contract
getNFTFloorPriceByTokenGet NFT floor price by token
getNFTHistoricalFloorPriceByContractGet historical NFT floor price by contract
getNFTMetadataGet NFT metadata
getNFTOwnersGet NFT owners by contract address
getNFTSalePricesGet NFT sale prices by token
getNFTTokenIdOwnersGet NFT owners by token ID
getNFTTradesGet NFT trades by collection
getNFTTradesByTokenGet NFT trades by token
getNFTTradesByWalletGet NFT trades by wallet address
getNFTTraitsByCollectionGet NFT traits by collection
getNFTTraitsByCollectionPaginateGet NFT traits by collection paginate
getNFTTransfersGet NFT transfers by token ID
getTopNFTCollectionsByMarketCapGet top NFT collections by market cap
NFT元数据、转账、特质、稀有度、地板价和交易记录。
端点描述
getContractNFTs通过合约地址查询NFT
getMultipleNFTs查询NFT元数据
getNFTBulkContractMetadata查询多个NFT合约的元数据
getNFTByContractTraits通过特质查询NFT
getNFTCollectionStats通过NFT藏品查询摘要统计数据
getNFTContractMetadata查询NFT藏品元数据
getNFTContractSalePrices通过藏品查询NFT售价
getNFTContractTransfers通过合约地址查询NFT转账记录
getNFTFloorPriceByContract通过合约地址查询NFT地板价
getNFTFloorPriceByToken通过代币查询NFT地板价
getNFTHistoricalFloorPriceByContract通过合约地址查询NFT历史地板价
getNFTMetadata查询NFT元数据
getNFTOwners通过合约地址查询NFT持有者
getNFTSalePrices通过代币查询NFT售价
getNFTTokenIdOwners通过代币ID查询NFT持有者
getNFTTrades通过藏品查询NFT交易记录
getNFTTradesByToken通过代币查询NFT交易记录
getNFTTradesByWallet通过钱包地址查询NFT交易记录
getNFTTraitsByCollection通过藏品查询NFT特质
getNFTTraitsByCollectionPaginate分页查询藏品의 NFT特质
getNFTTransfers通过代币ID查询NFT转账记录
getTopNFTCollectionsByMarketCap查询市值最高的NFT藏品

DeFi

DeFi

DeFi protocol positions, liquidity, and exposure data.
EndpointDescription
getDefiPositionsByProtocolGet detailed DeFi positions by protocol for a wallet
getDefiPositionsSummaryGet DeFi positions of a wallet
getDefiSummaryGet the DeFi summary of a wallet
DeFi协议仓位、流动性和风险敞口数据。
端点描述
getDefiPositionsByProtocol查询钱包在指定DeFi协议中的详细仓位
getDefiPositionsSummary查询钱包的DeFi仓位
getDefiSummary查询钱包的DeFi摘要

Entity

实体

Labeled addresses including exchanges, funds, protocols, and whales.
EndpointDescription
getEntityGet Entity Details By Id
getEntityCategoriesGet Entity Categories
带标签的地址,包括交易所、基金、协议和巨鲸地址。
端点描述
getEntity通过ID查询实体详情
getEntityCategories查询实体分类

Price

价格

Token and NFT prices, OHLCV candlestick data.
EndpointDescription
getMultipleTokenPricesGet Multiple ERC20 token prices
getPairPriceGet DEX token pair price
getTokenPriceGet ERC20 token price
代币和NFT价格、OHLCV蜡烛图数据。
端点描述
getMultipleTokenPrices查询多个ERC20代币价格
getPairPrice查询DEX代币交易对价格
getTokenPrice查询ERC20代币价格

Blockchain

区块链

Blocks, transactions, date-to-block conversion, and contract functions.
EndpointDescription
getBlockGet block by hash
getDateToBlockGet block by date
getLatestBlockNumberGet latest block number
getTransactionGet transaction by hash
getTransactionVerboseGet decoded transaction by hash
区块、交易、日期转区块转换和合约函数。
端点描述
getBlock通过哈希查询区块
getDateToBlock通过日期查询区块
getLatestBlockNumber查询最新区块编号
getTransaction通过哈希查询交易
getTransactionVerbose通过哈希查询解码后的交易

Discovery

发现

Trending tokens, blue chips, market movers, and token discovery.
EndpointDescription
getDiscoveryTokenGet token details
getTimeSeriesVolumeRetrieve timeseries trading stats by chain
getTimeSeriesVolumeByCategoryRetrieve timeseries trading stats by category
getTopCryptoCurrenciesByMarketCapGet top crypto currencies by market cap
getTopCryptoCurrenciesByTradingVolumeGet top crypto currencies by trading volume
getTopERC20TokensByMarketCapGet top ERC20 tokens by market cap
getTopERC20TokensByPriceMoversGet top ERC20 tokens by price movements (winners and losers)
getTopGainersTokensGet tokens with top gainers
getTopLosersTokensGet tokens with top losers
getTopProfitableWalletPerTokenGet top traders for a given ERC20 token
getTrendingTokensGet trending tokens
getVolumeStatsByCategoryGet trading stats by categories
getVolumeStatsByChainGet trading stats by chain
热门代币、蓝筹币、市场异动和代币发现。
端点描述
getDiscoveryToken查询代币详情
getTimeSeriesVolume通过链查询时间序列交易统计数据
getTimeSeriesVolumeByCategory通过分类查询时间序列交易统计数据
getTopCryptoCurrenciesByMarketCap查询市值最高的加密货币
getTopCryptoCurrenciesByTradingVolume查询交易量最高的加密货币
getTopERC20TokensByMarketCap查询市值最高的ERC20代币
getTopERC20TokensByPriceMovers查询价格波动最大的ERC20代币(上涨和下跌)
getTopGainersTokens查询涨幅最高的代币
getTopLosersTokens查询跌幅最高的代币
getTopProfitableWalletPerToken查询指定ERC20代币的顶级盈利钱包
getTrendingTokens查询热门代币
getVolumeStatsByCategory通过分类查询交易统计数据
getVolumeStatsByChain通过链查询交易统计数据

Other

其他

Utility endpoints including API version, endpoint weights, and address resolution.
EndpointDescription
getBondingTokensByExchangeGet bonding tokens by exchange
getCandleSticksGet OHLCV by pair address
getEntitiesByCategoryGet Entities By Category
getFilteredTokensReturns a list of tokens that match the specified filters and criteria
getGraduatedTokensByExchangeGet graduated tokens by exchange
getHistoricalTokenHoldersGet timeseries holders data
getNewTokensByExchangeGet new tokens by exchange
getUniqueOwnersByCollectionGet unique wallet addresses owning NFTs from a contract.
resolveAddressENS lookup by address
resolveAddressToDomainResolve Address to Unstoppable domain
resolveDomainResolve Unstoppable domain
resolveENSDomainENS lookup by domain
reSyncMetadataResync NFT metadata
searchEntitiesSearch Entities, Organizations or Wallets
searchTokensSearch for tokens based on contract address, pair address, token name or token symbol.
实用工具端点,包括API版本、端点权重和地址解析。
端点描述
getBondingTokensByExchange通过交易所查询绑定代币
getCandleSticks通过交易对地址查询OHLCV蜡烛图
getEntitiesByCategory通过分类查询实体
getFilteredTokens返回符合指定筛选条件的代币列表
getGraduatedTokensByExchange通过交易所查询已毕业代币
getHistoricalTokenHolders查询时间序列持有者数据
getNewTokensByExchange通过交易所查询新代币
getUniqueOwnersByCollection查询持有某合约NFT的唯一钱包地址数量
resolveAddress通过地址查询ENS域名
resolveAddressToDomain将地址解析为Unstoppable域名
resolveDomain解析Unstoppable域名
resolveENSDomain通过域名查询ENS地址
reSyncMetadata重新同步NFT元数据
searchEntities搜索实体、组织或钱包
searchTokens根据合约地址、交易对地址、代币名称或代币符号搜索代币

Solana Endpoints

Solana端点

Solana-specific endpoints (24 native + 10 EVM variants that support Solana chain = 34 total).
EndpointDescription
balanceGets native balance owned by the given address
getAggregatedTokenPairStatsGet aggregated token pair statistics by address
getBondingTokensByExchangeGet bonding tokens by exchange
getCandleSticksGet candlesticks for a pair address
getGraduatedTokensByExchangeGet graduated tokens by exchange
getHistoricalTokenHoldersGet token holders overtime for a given tokens
getMultipleTokenMetadataGet multiple token metadata
getMultipleTokenPricesGet token price
getNFTMetadataGet the global metadata for a given contract
getNFTsGets NFTs owned by the given address
getNewTokensByExchangeGet new tokens by exchange
getPairStatsGet stats for a pair address
getPortfolioGets the portfolio of the given address
getSPLGets token balances owned by the given address
getSnipersByPairAddressGet snipers by pair address.
getSwapsByPairAddressGet all swap related transactions (buy, sell, add liquidity & remove liquidity)
getSwapsByTokenAddressGet all swap related transactions (buy, sell)
getSwapsByWalletAddressGet all swap related transactions (buy, sell) for a specific wallet address.
getTokenBondingStatusGet Token Bonding Status
getTokenHoldersGet the summary of holders for a given token token.
getTokenMetadataGet Token metadata
getTokenPairsGet token pairs by address
getTokenPriceGet token price
getTopHoldersGet paginated top holders for a given token.
getDiscoveryTokenSolana variant: Get token details
getHistoricalTokenScoreSolana variant: Get historical token score by token address
getTimeSeriesVolumeSolana variant: Retrieve timeseries trading stats by chain
getTimeSeriesVolumeByCategorySolana variant: Retrieve timeseries trading stats by category
getTokenAnalyticsSolana variant: Get token analytics by token address
getTokenScoreSolana variant: Get token score by token address
getTopGainersTokensSolana variant: Get tokens with top gainers
getTopLosersTokensSolana variant: Get tokens with top losers
getTrendingTokensSolana variant: Get trending tokens
getVolumeStatsByCategorySolana variant: Get trading stats by categories
Solana专属端点(24个原生端点 + 10个支持Solana链的EVM变体端点 = 共34个)。
端点描述
balance查询指定地址的原生代币余额
getAggregatedTokenPairStats通过地址查询聚合的代币交易对统计数据
getBondingTokensByExchange通过交易所查询绑定代币
getCandleSticks通过交易对地址查询蜡烛图
getGraduatedTokensByExchange通过交易所查询已毕业代币
getHistoricalTokenHolders查询指定代币的时间序列持有者数据
getMultipleTokenMetadata查询多个代币元数据
getMultipleTokenPrices查询代币价格
getNFTMetadata查询指定合约的全局元数据
getNFTs查询指定地址持有的NFT
getNewTokensByExchange通过交易所查询新代币
getPairStats通过交易对地址查询统计数据
getPortfolio查询指定地址的投资组合
getSPL查询指定地址持有的代币余额
getSnipersByPairAddress通过交易对地址查询狙击手
getSwapsByPairAddress查询所有与swap相关的交易(买入、卖出、添加流动性、移除流动性)
getSwapsByTokenAddress查询所有与swap相关的交易(买入、卖出)
getSwapsByWalletAddress查询指定钱包地址的所有与swap相关的交易(买入、卖出)
getTokenBondingStatus查询代币绑定状态
getTokenHolders查询指定代币的持有者摘要
getTokenMetadata查询代币元数据
getTokenPairs通过地址查询代币交易对
getTokenPrice查询代币价格
getTopHolders分页查询指定代币的顶级持有者
getDiscoveryTokenSolana变体: 查询代币详情
getHistoricalTokenScoreSolana变体: 通过代币地址查询历史代币评分
getTimeSeriesVolumeSolana变体: 通过链查询时间序列交易统计数据
getTimeSeriesVolumeByCategorySolana变体: 通过分类查询时间序列交易统计数据
getTokenAnalyticsSolana变体: 通过代币地址查询代币分析数据
getTokenScoreSolana变体: 通过代币地址查询代币评分
getTopGainersTokensSolana变体: 查询涨幅最高的代币
getTopLosersTokensSolana变体: 查询跌幅最高的代币
getTrendingTokensSolana变体: 查询热门代币
getVolumeStatsByCategorySolana变体: 通过分类查询交易统计数据

Reference Documentation

参考文档

  • references/CommonPitfalls.md - Complete pitfalls reference
  • references/DataTransformations.md - Type conversion reference
  • references/ResponsePatterns.md - Pagination patterns
  • references/SupportedApisAndChains.md - Chains and APIs

  • references/CommonPitfalls.md - 完整陷阱参考
  • references/DataTransformations.md - 类型转换参考
  • references/ResponsePatterns.md - 分页模式参考
  • references/SupportedApisAndChains.md - 支持的链和API参考

See Also

另请参阅

  • Endpoint rules:
    rules/*.md
    files
  • Streams API: @moralis-streams-api for real-time events
  • 端点规则:
    rules/*.md
    文件
  • 流API:@moralis-streams-api用于实时事件