Logo
Nuevos usuarios de RPC: 35% de descuento el primer mesVer oferta
RPC Assistant

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

Resumen

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.

Base de conocimiento RPC

Detalles RPC relacionados

Selección de proveedor RPCStarknet

Cómo elegir un proveedor RPC de Starknet para tu dApp

# Cómo elegir un proveedor RPC de Starknet para tu dApp Starknet es un rollup de validez (ZK-rollup) en Ethereum que ofrece alto rendimiento, bajos co...

RPC de redBifrost

Puntos de conexión RPC de Bifrost: Configuración de red, opciones de proveedor y configuración para desarrolladores

Bifrost es una blockchain de Capa 1 compatible con EVM que cuenta con un protocolo de liquidez de staking. Este artículo cubre los puntos de conexión ...

Selección de proveedor RPCSolana

¿Cómo se comparan los niveles de uso entre los proveedores populares de RPC de Solana?

Los niveles de uso de RPC de Solana generalmente se dividen en tres categorías: puntos finales públicos con rendimiento compartido y sin SLA, niveles ...

RPC de testnetSolana

Solana Devnet RPC: Configuración de Endpoints, Airdrops y Depuración

Solana devnet es el clúster de pruebas donde validas programas, transacciones y código de cliente antes de tocar mainnet. Esta página explica cómo con...

Selección de proveedor RPCSui

Nodos Sui gRPC dedicados: Streaming, capacidad y aislamiento

Los nodos Sui gRPC dedicados brindan a tu equipo un entorno de nodo completo aislado para el acceso a datos de Sui de alto rendimiento. En lugar de co...

RPC de redEfinity

¿Qué es un nodo de Starknet y cómo se ejecuta o se conecta a uno?

Un nodo de Starknet es un software que se sincroniza con la red de Starknet, valida transiciones de estado y sirve solicitudes JSON-RPC para dApps e i...

Nunca te preocupes por la infraestructura nuevamente

OnFinality elimina la carga pesada de DevOps para que puedas construir de forma más inteligente y rápida.

Comenzar