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.
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.
Requests per Day
Network Uptime
Average Response Time
Technical Support
Technical characteristics and available endpoints
Mainnet & Testnet Support
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.
https://rpc.crypto-chief.com/nervos/{YOUR_API_KEY}wss://rpc.crypto-chief.com/nervos/ws/{YOUR_API_KEY}Replace {YOUR_API_KEY} with your actual API key from the dashboard.
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
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.
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:
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:
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.
Quick start for developers
Nervos CKB uses custom JSON-RPC methods designed for Cell model:
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);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"])}')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...');Asset preservation infrastructure
Infrastructure optimized for long-term value storage with <80ms RPC latency and proof-of-work security.
Production infrastructure with NC-MAX PoW consensus achieving 99.9% uptime and Bitcoin-equivalent security.
Comprehensive monitoring of Cell creation/consumption, capacity utilization, state rent metrics, and network activity.
Worldwide deployment supporting Nervos CKB's secure asset preservation network.
Infrastructure designed for long-term operation through sustainable state rent economic model.
24/7 support from engineers specialized in Cell model, RISC-V VM, state rent economics, and layered architecture.
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.
Create tokenized representations of valuable assets leveraging CKB's proof-of-work security and long-term preservation focus.
Build secure storage platforms for high-value digital assets requiring maximum security guarantees over long time periods.
Launch NFT platforms where ownership records are preserved long-term on proof-of-work blockchain with sustainable economics.
Develop Layer 2 computational solutions using CKB as secure settlement and asset storage foundation layer.
Create decentralized identity platforms leveraging CKB's immutable Cell model for credential storage.
Build institutional custody and vault services using CKB's security-focused architecture and state rent model.