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

Sora 项目和 Sora 网络:开发者需要了解什么?

Sora 是一个基于 Substrate 的去中心化金融网络,旨在通过受监管的金融框架连接法币和加密货币。本文介绍了 Sora 项目、其 SORA 网络架构,以及如何通过 RPC 端点进行开发访问。...

网络 RPCSui

Sui gRPC 指南:端点、流式传输与 JSON-RPC 迁移

Sui gRPC 是 Sui 全节点暴露的基于 Protocol Buffers 的类型安全 RPC 接口。它是生产环境中读取链状态、执行交易和消费实时流的推荐路径。OnFinality 在 mainnet 和 testnet 上提供托管 Sui gRPC 和 RPC 基础设施;当前端点详情发布在 ...

测试网 RPCSui

Sui 测试网 RPC 与 gRPC:端点、水龙头与开发者配置

Sui 测试网 RPC 为开发者提供了以 gRPC 为先的途径来查询检查点、对象和余额;模拟和执行交易;并使用 OnFinality 托管端点流式传输实时活动。现代工作流使用 LedgerService 获取检查点数据,使用 StateService 读取对象和余额,使用 TransactionEx...

网络 RPCMonad

什么是 peaq 主网,如何连接?

peaq 主网是面向 DePIN(去中心化物理基础设施网络)经济的生产级 Layer 1 区块链,旨在支持现实世界的设备和机器工作负载。本文解释了 peaq 主网是什么、其主要功能,以及如何使用 RPC 端点、链设置和实际示例连接您的应用程序。...

测试网 RPCBNB Chain

什么是BNB智能链测试网,如何连接?

# 什么是BNB智能链测试网,如何连接? BNB智能链测试网是一个开发环境,它镜像了BNB智能链主网,允许开发者部署和测试智能合约、dApp和交易,而无需使用真实的BNB。它采用相同的权益证明权威(PoSA)共识机制,并且完全兼容EVM,使得移植基于以太坊的项目变得容易。测试网拥有自己的原生代币tB...

网络 RPCEnjin

Enjin RPC:端点、链设置与开发者工作流

Enjin 运行两条基于 Substrate 的链:Enjin Matrix Chain(NFT 和代币的应用层)和 Enjin Relay Chain(共识和安全层)。两者都使用 Substrate RPC(而非 EVM JSON-RPC),因此开发者需要使用 Polkadot.js 或原始的 W...

永远不用担心基础设施

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

开始