Logo
新用户订阅 RPC,首月享 6.5 折优惠查看优惠
RPC Assistant

Asset Hub Kusama RPC Endpoints: Chain Settings, Faucet, and Debugging Tips

摘要

Asset Hub Kusama is the Kusama system parachain for hosting and transferring fungible and non-fungible assets. This article provides the RPC endpoints, chain settings, faucet information, and common debugging tips to help developers connect and build on Asset Hub Kusama, whether using public endpoints or dedicated node infrastructure.

Asset Hub Kusama Decision Checklist

Before integrating with Asset Hub Kusama, evaluate these criteria to choose the right infrastructure:

CriterionWhat to checkWhy it matters
Endpoint availabilityDoes the provider offer public or dedicated RPC endpoints for Asset Hub Kusama?Public endpoints may have rate limits; dedicated nodes offer reliability for production.
Archive data supportIs archive state available for historical queries?Required for certain dApps, analytics, and compliance.
WebSocket supportDoes the endpoint support WSS?Needed for real-time subscriptions (block events, balance changes).
Rate limits and pricingWhat are the request limits and cost structure?Affects scaling and budget planning.
Network proximityWhere are the nodes geographically located?Lower latency improves user experience.
Support and SLAsIs there technical support and uptime guarantees?Critical for production deployments.

What Is Asset Hub Kusama?

Asset Hub Kusama (formerly known as Statemine) is a common-good parachain on the Kusama network. It provides a low-cost environment for creating and managing digital assets—both fungible tokens and NFTs. It also serves as the native KSM transfer layer, enabling fast and cheap transactions compared to the Relay Chain.

Key features:

  • Asset creation and management via the assets pallet.
  • XCM (Cross-Consensus Message) support for cross-chain transfers.
  • Smart contract support (EVM-compatible) via pallet-evm.
  • Low transaction fees compared to the Relay Chain.

Chain Settings for Asset Hub Kusama

When connecting to Asset Hub Kusama, use these chain-specific parameters:

  • Network name: Kusama Asset Hub
  • Chain ID: 420420418 (EVM)
  • Currency symbol: KSM
  • Block explorer: https://assethub-kusama.subscan.io
  • RPC URL (public): See endpoints below.
  • WebSocket URL: See endpoints below.

Note: The EVM chain ID is used when interacting via Ethereum-compatible JSON-RPC. For Substrate-native calls, use the Substrate RPC methods.

RPC Endpoints for Asset Hub Kusama

You can connect to Asset Hub Kusama using public or dedicated RPC endpoints. Public endpoints are suitable for development and low-traffic use, while dedicated nodes are recommended for production applications.

Public Endpoints (use with caution)

  • HTTP: https://rpc.assethub-kusama.subscan.io
  • WebSocket: wss://rpc.assethub-kusama.subscan.io/ws

These are rate-limited and not guaranteed to be always available. For reliable access, consider a managed RPC provider.

Using OnFinality for Dedicated Nodes

OnFinality provides dedicated and shared RPC endpoints for Asset Hub Kusama with archive and trace support. You can spin up a dedicated node or use the shared API service with predictable pricing. See our supported networks for availability and RPC pricing for cost details.

To get started with OnFinality:

  1. Sign up at OnFinality and create an API key.
  2. Select "Kusama Asset Hub" from the network list.
  3. Choose between shared or dedicated endpoints.
  4. Use the provided HTTP and WebSocket URLs in your application.

Connecting via curl

Test a basic JSON-RPC call to Asset Hub Kusama:

curl -H "Content-Type: application/json" -d '{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "chain_getHeader",
  "params": []
}' https://rpc.assethub-kusama.subscan.io

For EVM queries (using chain ID 420420418):

curl -X POST \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}' \
  https://rpc.assethub-kusama.subscan.io

Connecting via Polkadot.js

const { ApiPromise, WsProvider } = require('@polkadot/api');

const wsProvider = new WsProvider('wss://rpc.assethub-kusama.subscan.io/ws');
const api = await ApiPromise.create({ provider: wsProvider });

// Get chain info
const chain = await api.rpc.system.chain();
console.log('Connected to:', chain.toString());

Faucet and Test Tokens

Asset Hub Kusama does not have a dedicated testnet. Developers typically use the mainnet KSM for testing in development environments after acquiring tokens through an exchange or bridge. For low-risk testing, you can:

  • Use a separate wallet with small amounts.
  • Leverage the Asset Hub's low transaction fees (fractions of a cent).
  • Use the Westend testnet for Polkadot ecosystem testing (note: Westend has its own Asset Hub).

Common Pitfalls and Troubleshooting

1. Incorrect Chain ID

When using EVM JSON-RPC, ensure you specify chain ID 420420418. Using the Relay Chain's chain ID will result in transaction failures.

2. Rate Limiting on Public Endpoints

Public endpoints often have strict rate limits. If you encounter HTTP 429 errors, switch to a dedicated provider like OnFinality or implement client-side throttling.

3. WebSocket Disconnections

Unstable WebSocket connections can disrupt real-time subscriptions. Use reconnection logic in your client or choose a provider with stable WebSocket infrastructure.

4. Archive Data Access

Some historical queries require archive node access. OnFinality's dedicated nodes support archive mode—ensure you select the archive feature when provisioning.

5. Cross-Chain Transfers (XCM)

Asset Hub Kusama supports XCM for sending assets to other parachains. Common issues include insufficient XCM deposit (ED) or incorrect destination. Always verify the destination parachain ID and asset ID.

Key Takeaways

  • Asset Hub Kusama is the system parachain for assets on Kusama, offering low-cost asset creation and transfer.
  • Chain ID for EVM is 420420418; use Substrate-native calls for pallet interactions.
  • Public RPC endpoints are available but rate-limited; for production, consider dedicated nodes.
  • OnFinality provides reliable dedicated and shared endpoints with archive, trace, and WebSocket support.
  • Test with small KSM amounts; no testnet exists but mainnet fees are minimal.
  • Monitor for rate limiting, WebSocket drops, and correct chain ID when troubleshooting.

Frequently Asked Questions

Q: What is the difference between Asset Hub Kusama and the Kusama Relay Chain?

A: Asset Hub Kusama is a parachain that handles asset logic and native KSM transfers, offloading work from the Relay Chain. The Relay Chain focuses on security, consensus, and cross-chain message routing.

Q: Can I deploy EVM smart contracts on Asset Hub Kusama?

A: Yes, Asset Hub Kusama includes pallet-evm, enabling deployment of Solidity smart contracts. The EVM chain ID is 420420418.

Q: How do I get KSM for testing?

A: Obtain KSM from an exchange and transfer it to your Asset Hub Kusama address. The fees are very low, so small amounts suffice for development.

Q: Does OnFinality support archive nodes for Asset Hub Kusama?

A: Yes, OnFinality offers archive node options. Check the network page for details.

Q: What tools can I use to interact with Asset Hub Kusama?

A: You can use Polkadot.js for Substrate calls, ethers.js or web3.js for EVM calls, and Subscan for block exploration.

Q: Is there a rate limit on OnFinality's shared endpoints?

A: Shared endpoints have fair-use limits. For predictable performance, choose a dedicated node plan. See pricing.

Q: How do I recover from a WebSocket disconnect?

A: Implement exponential backoff reconnection logic. Many libraries like Polkadot.js have built-in auto-reconnect options.

RPC 知识库

相关 RPC 内容

网络 RPCAvalanche

Crust Network 质押:GPoS 如何运作以及质押 CRU 前需要检查什么

Crust Network 是一个基于 Substrate 的 layer-1 区块链,提供去中心化的 IPFS 存储。其 GPoS(担保权益证明)共识将质押权力与存储资源挂钩,因此验证人和担保人质押 CRU 来保护网络安全并获得奖励。本文解释了质押如何运作、在选择验证人或提供商之前需要评估什么,以...

测试网 RPCSolana

什么是 Solana Devnet 地址以及如何使用?

Solana Devnet 地址是 Solana Devnet 集群上的公钥,这是一个测试网络,模拟主网行为但不使用真实的 SOL。您可以使用它来空投测试 SOL、部署程序并在发布到主网之前运行交易。地址格式与主网完全相同,因此唯一变化的是您的工具所指向的 RPC 端点。 本文解释了 Devnet ...

网络 RPCAsset Hub

什么是 Asset Hub,如何连接它?

Asset Hub 是 Polkadot 和 Kusama 上的一个系统平行链,用于承载同质化代币、NFT 和其他数字资产。它提供了一个专门的环境,用于以低费用和高吞吐量创建、管理和转移资产。本文解释了什么是 Asset Hub,如何将您的 dApp 连接到它,以及如何为您的用例选择合适的 RPC ...

区块链基础设施

什么是RWA节点基础设施,以及如何构建它?

RWA节点基础设施是支持代币化现实世界资产的区块链和数据层,包括RPC端点、索引器和节点操作。本文解释了核心组件、如何评估基础设施提供商,以及如何为生产级RWA应用设计弹性堆栈。...

网络 RPCKusama

Kusama API:端点、方法和如何连接

Kusama API 提供对 Kusama 金丝雀网络的 JSON-RPC 和 WebSocket 访问。本页涵盖可用的端点、常用方法、连接示例,以及如何为您的项目选择公共、共享或专用节点基础设施。...

网络 RPCBNB Chain

如何查找和配置 BNB Smart Chain 端点?

BNB Smart Chain(BSC)公开了 JSON-RPC 端点,用于读取区块链数据和发送交易。mainnet 端点是 https://bsc-dataseed.bnbchain.org,chain ID 为 56;testnet 端点使用 chain ID 97。公共端点适合原型开发,但存在...

永远不用担心基础设施

OnFinality 消除了 DevOps 的繁重工作,让您能够更聪明、更快地构建。

开始