Inglês O texto desta página está em inglês. A interface está traduzida.
Build on CenterChain.
CenterChain is public infrastructure. This page is the documentation hub: SDK, API reference, RPC endpoints, contract addresses and the explorer.
Quickstart.
Install the SDK, point it at an RPC endpoint and deploy a standard token in minutes. Values are examples; nothing is deployed from this page.
npm install @centerchain/sdk
import { CenterChain, StandardToken } from '@centerchain/sdk';
const chain = new CenterChain({
rpc: 'https://rpc.centerchain.org', // see docs.centerchain.org/rpc
signer: wallet
});
const token = await StandardToken.deploy(chain, {
name: 'Example Token',
symbol: 'EXT',
decimals: 6,
initialSupply: 1000000n
});
console.log(token.address); // verify on explorer.centerchain.orgRPC endpoints.
Public endpoints for mainnet and testnet. Archive node available for historical queries with rate limiting.
| Endpoint | URL | Chain ID | Status | Use case |
|---|---|---|---|---|
| Mainnet RPC | https://rpc.centerchain.org | centerchain-1 | Production | Production dApps, wallets, indexers |
| Testnet RPC | https://rpc.testnet.centerchain.org | centerchain-testnet-1 | Testnet | Development, testing, CI/CD |
| WebSocket | wss://rpc.centerchain.org/ws | centerchain-1 | Production | Real-time subscriptions, block headers |
| Archive Node | https://archive.centerchain.org | centerchain-1 | Production (rate limited) | Historical queries, analytics, forensics |
SDK reference.
The @centerchain/sdk package is the recommended way to interact with CenterChain. It handles signing, encoding, gas estimation and event subscriptions.
Chain
new CenterChain(config)chain.rpcchain.chainIdchain.explorerUrl(tx)
Tokens
StandardToken.deploy(chain, config)Asset(chain, address)asset.nav()asset.reserves()asset.underlying()asset.terms()
Transactions
wallet.send(tx)chain.waitForTx(hash)chain.estimateGas(tx)tx.simulate()
Events
asset.on(event, handler)chain.onBlock(handler)asset.once(event, handler)
Wallet
Wallet.fromMnemonic(mnemonic)Wallet.fromPrivateKey(key)wallet.addresswallet.signMessage(msg)
import { CenterChain, Asset } from '@centerchain/sdk';
const chain = new CenterChain({ rpc: 'https://rpc.centerchain.org' });
const asset = new Asset(chain, 'cnTRYB'); // contract address resolved from registry
// Read NAV and reserve data
const nav = await asset.nav();
const reserves = await asset.reserves();
console.log('NAV:', nav.value, nav.currency);
console.log('Reserves to supply:', reserves.ratio + '%');
// Subscribe to real-time updates
asset.on('nav', (update) => console.log('NAV updated:', update));
asset.on('attestation', (report) => console.log('New attestation:', report));CenterNetwork contracts.
Mainnet addresses are placeholders until deployment. Each row links to the audit report for that contract.
| Product | Contract address | Audit report |
|---|---|---|
| Center Markets Registry | Not published yet | View audit |
| Center Launch Offering | Not published yet | View audit |
| Center Mint Stablecoin | Not published yet | View audit |
| Center Swap Router | Not published yet | View audit |
| Center Bridge Gateway | Not published yet | View audit |
| Center Studio Token Standard | Not published yet | View audit |
Explorer, faucet and build tools.
Verify deployments, get testnet funds and set up local development.
Token standards.
CenterChain uses audited standard contracts. Deploy your own or use Center Studio for no-code creation.
Public infrastructure, documented in one place.
The chain, its docs and its explorer are maintained at centerchain.org. CenterNetwork builds products on it.