返回 Skill 列表
extension
分类: 开发与工程需要 API Key

Helius API

通过 Helius API 查询 Solana 数据。适用于用户询问 Solana 钱包余额、代币及 NFT 持仓、交易历史、转账活动、钱包身份标签、资金来源、交易解析或其他链上数据。

person作者: itsahedgehubclawhub

Helius API

Query comprehensive Solana data via REST endpoints. Requires HELIUS_API_KEY env var.

Setup

export HELIUS_API_KEY="your-key-here"

Get a key at https://dashboard.helius.dev

Base URLs

  • Wallet API: https://api.helius.xyz/v1/wallet/{address}/...?api-key=KEY
  • Enhanced Transactions: https://api-mainnet.helius-rpc.com/v0/...?api-key=KEY

Auth: ?api-key=$HELIUS_API_KEY query param or X-Api-Key header.

Wallet API Endpoints

| Endpoint | Path | Description | |----------|------|-------------| | Balances | /v1/wallet/{address}/balances | Token + NFT holdings with USD values | | History | /v1/wallet/{address}/history | Parsed transaction history with balance changes | | Transfers | /v1/wallet/{address}/transfers | Token transfer activity (sent/received) | | Identity | /v1/wallet/{address}/identity | Known wallet labels (exchanges, protocols) | | Batch Identity | /v1/wallet/batch-identity (POST) | Look up up to 100 addresses at once | | Funded By | /v1/wallet/{address}/funded-by | Original funding source of a wallet |

Enhanced Transactions Endpoints

| Endpoint | Path | Description | |----------|------|-------------| | Parse Transactions | /v0/transactions/ (POST) | Parse signatures into human-readable data | | Transaction History | /v0/addresses/{address}/transactions | Enhanced tx history with type/time/slot filtering |

Reference Files

Read the appropriate file for detailed parameters, response formats, and examples:

Implementation Notes

  • Use curl or fetch — no SDK required
  • All endpoints return JSON
  • Pagination: use page param (balances) or before/cursor (history, transfers)
  • Default limit: 100 per request
  • Wallet API requests cost 100 credits each
  • Identity returns 404 for unknown wallets — handle gracefully
  • Funded By returns 404 if wallet never received SOL
  • Enhanced Transactions uses a different base URL (api-mainnet.helius-rpc.com)