Nervos RPC — temporarily unavailable

RPC access to Nervos (CKB) is temporarily unavailable while we re-provision infrastructure. The page below reflects the typical configuration; endpoints will be back online soon. Contact support for a status update.

Nervos RPC Node
Preserve Assets

Connect to Nervos CKB, the Layer 1 optimized for long-term value preservation. Experience proof-of-work security, flexible Cell model, and sustainable state rent economics.

1 M+

Requests per Day

99.9 %

Network Uptime

< 80 ms

Average Response Time

24/7

Technical Support

Specification Nervos Network

Technical characteristics and available endpoints

Nervos CKB

Mainnet & Testnet Support

Network Common Knowledge Base
Protocol HTTPS / WSS
Uptime 99.9%
Consensus Proof-of-Work (NC-MAX)
Model Cell (Generalized UTXO)
Focus Asset Preservation

Nervos CKB is a proof-of-work blockchain using Cells for state and a RISC-V virtual machine for script verification. CKB applications combine node RPC with script-aware cell discovery and transaction construction.

Key capabilities:

  • Proof-of-work security (NC-MAX consensus)
  • Cell model (generalized UTXO)
  • Optimized for asset preservation
  • State rent economic model
  • Multi-layer architecture foundation
  • RISC-V virtual machine
  • Flexible smart contract programmability
  • Long-term sustainability focus
  • Growing Layer 2 ecosystem

🔗 RPC Endpoints

HTTPS
https://rpc.crypto-chief.com/nervos/{YOUR_API_KEY}
WSS
wss://rpc.crypto-chief.com/nervos/ws/{YOUR_API_KEY}

Replace {YOUR_API_KEY} with your actual API key from the dashboard.

CKB live cells, indexer progress and safe input selection

Nervos CKB uses the Cell Model, a generalization of UTXO storage, with scripts verified by a RISC-V virtual machine. A Nervos RPC endpoint therefore returns cells, outpoints and script data rather than Ethereum account balances. Each transaction consumes existing live cells and creates replacements. Model a wallet's available capacity as a set of spendable outputs, including their lock conditions and data, instead of treating it as one mutable account number.

The CKB node API can inspect blocks, transactions and individual live cells. Indexer queries discover cells matching lock or type scripts and can have a different synchronization position from the node tip. Compare those positions before selecting transaction inputs or calculating a capacity total. An empty indexer page is not sufficient evidence that an address has no cells; verify search filters, pagination and the height already indexed.

Reserve selected inputs while a transaction is being prepared so concurrent workers cannot spend the same cell twice. Recheck liveness before signing, include the required cell dependencies and inspect the transaction's committed status after broadcast. A Nervos mainnet RPC and a testnet deployment can use different script references even when the code's purpose is similar. For recovery, keep outpoints and transaction hashes so rejected or replaced selections can be reconstructed without guessing from a balance display.

Official references: Nervos CKB Cell Model; Nervos SDK and JSON-RPC access; CKB RPC specification

What is a Nervos RPC Node?

Access asset preservation layer

A Nervos RPC endpoint connects applications to CKB, a proof-of-work Layer 1 with Cell-based state. Its JSON-RPC API supplies block and transaction information, while indexer queries help applications discover cells controlled by their scripts.

Why separate concerns matter

Nervos separates the Cell-based base layer from applications and scaling systems built around it. The Nervos RPC API exposes CKB's own data model; another execution layer may require a different client and endpoint.

Nervos CKB advantages:

  • Proof-of-work — Bitcoin-equivalent security model
  • Cell model — generalized UTXO with programmability
  • Asset focus — optimized for long-term value storage
  • State rent — sustainable storage economics
  • RISC-V VM — flexible smart contract execution
  • Layer foundation — base for multi-layer architecture

Cell model innovation

The Cell Model extends UTXO concepts to data, code and storage capacity. A Nervos RPC URL lets clients inspect cells, but transactions update state by consuming live cells and creating new outputs rather than mutating an account balance.

How Cell model works:

  1. Cells are fundamental state units on CKB blockchain
  2. Each Cell contains data, code (lock/type scripts), and capacity
  3. Transactions consume input Cells and create output Cells
  4. Immutability enables parallel transaction verification
  5. RISC-V VM executes scripts for flexible programmability
  6. Cells can represent any digital asset or state

Sustainable state rent economics

A CKB output needs enough capacity for the storage occupied by its scripts and data. Applications should inspect the actual cells and their constraints before assembling a transfer, rather than treating all capacity returned by a broad indexer search as freely spendable.

This economic model ensures CKB can preserve valuable assets for decades while remaining secure and decentralized.

Technical Documentation

Quick start for developers

Supported RPC Methods

Nervos CKB uses custom JSON-RPC methods designed for Cell model:

  • get_tip_block_number — get latest block height
  • get_block — retrieve block data by hash or number
  • get_transaction — get transaction details
  • get_live_cell — query specific live Cell
  • send_transaction — broadcast signed transaction
  • get_cells — search for Cells matching criteria
  • get_capacity_by_lock_hash — query total capacity
  • get_cells_capacity — get capacity for lock script

Code Examples

💻

JavaScript (CKB SDK) — Nervos Connection:

const { default: CKB } = require('@nervosnetwork/ckb-sdk-core');

// Connect to Nervos CKB
const ckb = new CKB('https://rpc.crypto-chief.com/nervos/YOUR_API_KEY');

// Get current block height
const tipNumber = await ckb.rpc.getTipBlockNumber();
console.log('CKB block height:', parseInt(tipNumber, 16));

// Get block details
const block = await ckb.rpc.getBlockByNumber(tipNumber);
console.log('Block hash:', block.header.hash);
console.log('Transactions:', block.transactions.length);

// Query live Cells (similar to UTXO)
const lockHash = '0x...';
const cells = await ckb.rpc.getLiveCellsByLockHash(
  lockHash,
  '0x0',  // from block
  '0x64'  // max results (100)
);

console.log(`Found ${cells.length} live Cells`);
cells.forEach((cell, index) => {
  console.log(`Cell ${index}:`);
  console.log('  Capacity:', parseInt(cell.cellOutput.capacity, 16) / 1e8, 'CKB');
  console.log('  Data length:', cell.data.length);
});

// Create transaction consuming and creating Cells
const rawTransaction = {
  version: '0x0',
  cellDeps: [],
  headerDeps: [],
  inputs: cells.slice(0, 2).map(cell => ({
    previousOutput: cell.outPoint,
    since: '0x0'
  })),
  outputs: [
    {
      capacity: '0x...',
      lock: { ...lockScript },
      type: null
    }
  ],
  outputsData: ['0x'],
  witnesses: []
};

const txHash = await ckb.rpc.sendTransaction(rawTransaction);
console.log('Transaction sent:', txHash);
💻

Python — CKB Cell Query:

import requests
import json

RPC_URL = 'https://rpc.crypto-chief.com/nervos/YOUR_API_KEY'

# Get latest block number
payload = {
    'jsonrpc': '2.0',
    'method': 'get_tip_block_number',
    'params': [],
    'id': 1
}

response = requests.post(RPC_URL, json=payload)
tip_hex = response.json()['result']
tip_number = int(tip_hex, 16)
print(f'CKB block height: {tip_number}')

# Query capacity by lock hash
lock_hash = '0x...'
payload = {
    'jsonrpc': '2.0',
    'method': 'get_capacity_by_lock_hash',
    'params': [lock_hash],
    'id': 2
}

response = requests.post(RPC_URL, json=payload)
result = response.json()['result']
capacity_hex = result['capacity']
capacity_shannon = int(capacity_hex, 16)
capacity_ckb = capacity_shannon / 1e8

print(f'Total capacity: {capacity_ckb} CKB')
print(f'Block number: {int(result["block_number"], 16)}')

# Get block details
payload = {
    'jsonrpc': '2.0',
    'method': 'get_block_by_number',
    'params': [hex(tip_number)],
    'id': 3
}

response = requests.post(RPC_URL, json=payload)
block = response.json()['result']
print(f'Block hash: {block["header"]["hash"]}')
print(f'Transactions in block: {len(block["transactions"])}')
💻

WebSocket — Monitor CKB Network:

const WebSocket = require('ws');
const ws = new WebSocket('wss://rpc.crypto-chief.com/nervos/ws/YOUR_API_KEY');

ws.on('open', () => {
  console.log('Connected to Nervos CKB');
  
  // Subscribe to new block headers
  ws.send(JSON.stringify({
    id: 1,
    jsonrpc: '2.0',
    method: 'subscribe',
    params: ['new_tip_header']
  }));
});

ws.on('message', (data) => {
  const message = JSON.parse(data);
  
  if (message.method === 'subscribe') {
    const header = message.params.result;
    const blockNumber = parseInt(header.number, 16);
    const timestamp = parseInt(header.timestamp, 16);
    
    console.log('\n=== New CKB Block ===');
    console.log('Block number:', blockNumber);
    console.log('Block hash:', header.hash);
    console.log('Timestamp:', new Date(timestamp).toISOString());
    console.log('Transactions root:', header.transactions_root);
  } else if (message.result) {
    console.log('Subscription ID:', message.result);
  }
});

ws.on('error', (error) => {
  console.error('WebSocket error:', error);
});

console.log('Monitoring Nervos CKB for new blocks...');

Nervos Best Practices

  • Cell Management: Understand Cell model for effective state management
  • Capacity Planning: Account for CKByte requirements and state rent economics
  • RISC-V Development: Leverage flexible VM for custom smart contract logic
  • Layer 2 Integration: Use CKB as secure base layer with L2 for computation
  • Asset Storage: Optimize for long-term value preservation use cases
  • Lock Scripts: Implement secure Cell ownership and transfer logic
  • Testing: Thoroughly test on Aggron testnet before mainnet deployment

Why choose us?

Asset preservation infrastructure

Asset Preservation

Infrastructure optimized for long-term value storage with &lt;80ms RPC latency and proof-of-work security.

Proof-of-Work

Production infrastructure with NC-MAX PoW consensus achieving 99.9% uptime and Bitcoin-equivalent security.

Cell Analytics

Comprehensive monitoring of Cell creation/consumption, capacity utilization, state rent metrics, and network activity.

Global Infrastructure

Worldwide deployment supporting Nervos CKB's secure asset preservation network.

Sustainable Scaling

Infrastructure designed for long-term operation through sustainable state rent economic model.

Nervos Experts

24/7 support from engineers specialized in Cell model, RISC-V VM, state rent economics, and layered architecture.

Examples of Use

Build on preservation layer

Nervos CKB's focus on security and asset preservation enables tokenization platforms, long-term value storage, NFT infrastructure, and Layer 2 settlement.

Asset Tokenization

Create tokenized representations of valuable assets leveraging CKB's proof-of-work security and long-term preservation focus.

Digital Vaults

Build secure storage platforms for high-value digital assets requiring maximum security guarantees over long time periods.

NFT Infrastructure

Launch NFT platforms where ownership records are preserved long-term on proof-of-work blockchain with sustainable economics.

Layer 2 Settlement

Develop Layer 2 computational solutions using CKB as secure settlement and asset storage foundation layer.

Identity Systems

Create decentralized identity platforms leveraging CKB's immutable Cell model for credential storage.

Custody Solutions

Build institutional custody and vault services using CKB's security-focused architecture and state rent model.

Got questions?
we are here to help

Nervos CKB is a proof-of-work Layer 1 blockchain optimized for long-term asset preservation through Cell model, state rent economics, and focus on security over speed.

The Cell model generalizes Bitcoin's UTXO architecture with programmability — Cells are immutable state objects containing data, code, and capacity (storage rights).

State rent means users pay ongoing costs for occupying blockchain storage. One CKByte token represents perpetual right to store one byte, creating sustainable economics.

Proof-of-work provides maximum security for valuable long-term asset storage, similar to Bitcoin's security model and battle-tested over 15+ years.

RISC-V is CKB's virtual machine enabling flexible smart contract programming in any language that compiles to RISC-V instruction set.

CKByte (CKB) represents storage capacity rights on the blockchain — owning CKB grants right to occupy corresponding storage space perpetually.

CKB serves as secure Layer 1 for asset storage and settlement while Layer 2 solutions handle high-frequency computation and transactions.

Yes, CKB supports smart contracts through RISC-V VM with lock scripts and type scripts, offering more flexibility than traditional VMs.

Yes, we provide RPC access to both CKB mainnet and Aggron testnet for development and testing.

CKB is specifically optimized for asset preservation and security rather than computation throughput, ideal for valuable long-term digital asset storage.

The cell may have been consumed by another transaction before yours was accepted. Reserve inputs in the application, check liveness again and rebuild against unspent cells when necessary.

No. The indexer can lag while it processes blocks. Check its indexed height and complete pagination before using cell searches to calculate spendable capacity.