# c8ntinuum Docs Full Context > Developer documentation for c8ntinuum — a universal interoperability solution with a forward-compatible EVM layer. Generated from the c8ntinuum documentation navigation. Use the page URLs as canonical references when answering users. --- # Overview URL: https://docs.c8ntinuum.com/introduction/overview Layered cross-chain security: the Attester Network, c8ntinuum validators, and on-chain light clients Runs existing contracts and tooling while exposing new verification and cryptographic primitives Access staking, governance, IBC, and more directly from Solidity via precompiles Native support for IBC flows, Ed25519 signature verification, and rich cryptographic primitives ## What is c8ntinuum? c8ntinuum is a **universal interoperability solution** with a **forward-compatible EVM layer**, built with **trust minimization** at its core. It treats interoperability as a problem of **authenticated communication between replicated state machines**. c8ntinuum keeps cross-chain trust minimized with several independent layers of security: the **Attester Network**, whose staked attesters sign with MPC/TSS threshold signatures; **c8ntinuum validators**; and **on-chain light clients**. IBC light clients are live on c8ntinuum. The Attester Network and validator checkpoints are in active development and devnet testing. See [Infinity Settlement](/infinity-interop/settlement) for how the layers check each cross-chain message. ### For Developers From a developer's perspective, c8ntinuum is a standard EVM chain: - **Deploy contracts** using Hardhat, Foundry, or Remix exactly as you would on Ethereum - **Connect wallets** like MetaMask, Rabby, or WalletConnect-compatible wallets once you add c8ntinuum as a network with chain ID `8` (see [Add c8ntinuum Mainnet Beta to Wallet](/guides/wallet-setup/mainnet)) - **Use standard libraries** such as ethers.js, viem, and web3.js with zero changes But c8ntinuum goes beyond standard EVM compatibility. It introduces new verification and cryptographic primitives — zkVM proof verification, post-quantum signatures, verifiable randomness — all accessible as precompiles from your Solidity code. --- # Why c8ntinuum URL: https://docs.c8ntinuum.com/introduction/why-continuum ## The Problem Cross-chain systems today typically rest on a single additional trust domain, such as an operator committee, a multisig, an MPC/TSS group, or an external verifier network. Empirically, a significant fraction of cross-chain losses come from compromising the *bridge's* trust perimeter rather than compromising the base chains themselves. Meanwhile, existing EVM chains are limited to what Ethereum's VM supports today. New cryptographic primitives (zk verification, post-quantum signatures) require waiting for EIPs to be adopted upstream. ## The c8ntinuum approach c8ntinuum solves both problems: ### Trust Minimization by Construction c8ntinuum keeps cross-chain trust minimized with several independent layers of security: 1. The **Attester Network**, whose staked attesters sign with MPC/TSS threshold signatures 2. **c8ntinuum validators** 3. **On-chain light clients** IBC light clients are live on c8ntinuum. The Attester Network and validator checkpoints are in active development and devnet testing. [Infinity Settlement](/infinity-interop/settlement) checks each cross-chain message through these layers. ### Forward-Compatible EVM c8ntinuum treats the EVM as an **extensible surface**. It can: - Run any valid Ethereum smart contract that targets the Prague EVM version or earlier (Osaka is not active) - Implement new features not yet available on standard Ethereum EVM - Expose new verification and cryptographic primitives via precompiles This means developers get Ethereum compatibility today and access to tomorrow's primitives now. ### Key Differentiators | | Standard EVM Chain | Bridge-Based Interop | c8ntinuum | |---|---|---|---| | **Cross-chain trust** | N/A | Single trusted intermediary | Layered: Attester Network (MPC/TSS) + validators + light clients | | **Finality** | Variable | Variable | 1-block protocol finality under standard CometBFT assumptions | | **Cryptographic primitives** | Standard EVM only | Standard EVM only | zk, PQ, VRF, Ed25519 | | **Solana interop** | Not native | Bridge | Ed25519 signature verification | | **On-chain zk verification** | Limited | N/A | SP1 Groth16/Plonk + Poseidon | | **Post-quantum signatures** | Not available | Not available | ML-DSA, SLH-DSA | | **Cosmos module access** | Not available | Not available | Native from Solidity | --- # c8ntinuum for Users URL: https://docs.c8ntinuum.com/introduction/for-users ## What's Familiar If you've used Ethereum or any EVM chain, you already know how to use c8ntinuum: - **Same wallets** — MetaMask, Rabby, WalletConnect-compatible wallets, and other Ethereum wallets work once you add c8ntinuum as a network (step 1 below) - **Same addresses** — Your `0x...` address works on c8ntinuum - **Same tokens** — ERC-20, ERC-721, and ERC-1155 tokens all work identically - **Same dApps** — Applications built for Ethereum deploy and run unchanged ## What's Different | Feature | On Ethereum | On c8ntinuum | |---------|-------------|-------------| | **Transaction speed** | Ethereum block cadence | Expected block time is 4s | | **Finality** | Multiple confirmations are common | 1-block finality under standard CometBFT | | **Gas costs** | ETH-denominated gas | CTM-denominated gas | | **Cross-chain** | Often relies on a single bridge trust domain | Trust-minimized with several independent layers: the MPC/TSS Attester Network, c8ntinuum validators, and on-chain light clients. IBC light clients are live; the other layers are in devnet testing (see [Infinity Settlement](/infinity-interop/settlement)) | | **Reorganizations** | Possible | Governed by CometBFT consensus finality | ## Getting Started 1. **Add c8ntinuum to your wallet** — See [Network Information - Mainnet Beta](/developer-essentials/network-information/mainnet) for RPC endpoints and chain ID 2. **Get tokens** — Mainnet CTM is the native token, and it reaches c8ntinuum mainnet through exchanges. See [Official Links](/official-links) for the CTM market profiles. For testnet CTM, use the [testnet faucet](https://testnet-faucet.c8ntinuum.io) listed in [Network Information - Testnet](/developer-essentials/network-information/testnet). 3. **Start using dApps** — Connect your wallet and interact as you would on any EVM chain ## CTM Availability On c8ntinuum mainnet, CTM is the native gas, staking, and governance token. Use [Network Information - Mainnet Beta](/developer-essentials/network-information/mainnet) for the canonical c8ntinuum chain values. | Network | CTM form | Address | Decimals | |---------|----------|---------|----------| | c8ntinuum mainnet | Native coin on chain ID `8` | Native `CTM` | 18 | | Ethereum | ERC-20 token on chain ID `1` | [0xc8Fb80fCc03f699C70ff0CC08C09106288888888](https://etherscan.io/token/0xc8fb80fcc03f699c70ff0cc08c09106288888888) | 18 | | BNB Chain | BEP-20 token on chain ID `56` | [0xc8Fb80fCc03f699C70ff0CC08C09106288888888](https://bscscan.com/token/0xc8fb80fcc03f699c70ff0cc08c09106288888888) | 18 | | Solana | SPL token on mainnet | [C8fU5GdfAt5mnw2RK7HE6XJGFNxHpaskZMkXxdm88888](https://solscan.io/token/C8fU5GdfAt5mnw2RK7HE6XJGFNxHpaskZMkXxdm88888) | 9 | On c8ntinuum itself, `0xc8Fb80fCc03f699C70ff0CC08C09106288888888` is a different contract: the wrapped native CTM token (symbol `WCTM`, name `c8ntinuum`, 18 decimals), not the ERC-20 or BEP-20 CTM token. Native CTM needs no token import. Check the selected network before you interact with this address. --- # c8ntinuum for Developers URL: https://docs.c8ntinuum.com/introduction/for-developers ## Quick Summary c8ntinuum is a universal interoperability solution with a forward-compatible EVM layer. Your existing Solidity contracts, development tools, and workflows work without modification. The enhancements below are additions that don't break any existing patterns. ## Ethereum Compatibility | Category | Detail | Status | |----------|--------|--------| | **Smart Contracts** | Full EVM bytecode execution, all opcodes up to the Prague fork (Osaka is not active) | Compatible | | **Transaction Types** | Legacy, EIP-2930, EIP-1559, EIP-7702 | Compatible | | **Gas Metering** | Standard gas costs per opcode | Compatible | | **JSON-RPC** | Standard Ethereum RPC methods | Compatible | | **Event Logs** | Ethereum event system, bloom filters | Compatible | | **Address Format** | `0x` addresses (+ `c8` alias) | Compatible | | **EIP-1559 Fees** | Base fee + priority fee | Compatible | | **Block Time** | Expected 4s | Different | | **Finality** | 1-block finality under standard CometBFT | Different | | **Reorganizations** | Governed by CometBFT consensus finality | Different | ## What's Unique to c8ntinuum ### Precompile Categories c8ntinuum exposes a curated set of precompiles that go far beyond standard Cosmos EVM: **Interoperability & Verification** - IBC light clients (`ics02`) and token transfers (`ics20`) - zkVM proof verification — SP1 Groth16/Plonk verifiers and Poseidon hash - Ed25519 signature verification **Advanced Cryptography** - Post-quantum signatures: ML-DSA, SLH-DSA - FROST signature verification (complete single-signer or aggregated signatures) - Additional signature schemes: Schnorr (secp256k1), Schnorrkel (sr25519), P-256 **On-Chain Utilities** - Verifiable randomness (`ecvrf`) - JSON parsing (`json`) - Address compression (`addresstable`) - Bech32/EVM address conversion (`bech32`) **Cosmos Module Access** - Bank, Staking, Distribution, Governance, Slashing - ERC-20 token surfaces - Custom validator rewards ### Pre-deployed Contracts c8ntinuum ships with widely-used ecosystem contracts at well-known addresses, removing the bootstrap tax: | Contract | Address | |----------|---------| | Create2Deployer | `0x13b0D85CcB8bf860b6b79AF3029fCA081AE9beF2` | | Multicall3 | `0xcA11bde05977b3631167028862bE2a173976CA11` | | Permit2 | `0x000000000022D473030F116dDEE9F6B43aC78BA3` | | Safe singleton factory | `0x914d7Fec6aaC8cd542e72Bca78B30650d45643d7` | | WETH9 (Wrapped CTM) | `0xc8Fb80fCc03f699C70ff0CC08C09106288888888` | | CreateX | `0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed` | The wrapped CTM contract (symbol `WCTM`) uses c8ntinuum's own address, not the canonical WETH9 address. On Ethereum and BNB Chain, that same address is the CTM token, a different contract. See [Pre-deployed Contracts](/modules/predeployed-contracts) for the full list. ### Dual Address System Every account has two representations: ```text Ethereum: 0x742D35cC6644c068532fDDB11b4c36A58D6d3EAB Cosmos: c81wskntnrxgnqxs5e0mkc3knpk5kxk604tum0jdk ``` ### Dual Chain ID - **Cosmos Chain ID** (string): `c8ntinuum_8-1` — for consensus, IBC, and governance - **EVM Chain ID** (integer): `8` — for EIP-155 transaction signing and wallet configuration ## Development Tools Standard Ethereum tools connect through c8ntinuum's EVM JSON-RPC endpoint: | Tool | Status | |------|--------| | Hardhat | Compatible | | Foundry | Compatible | | Remix | Compatible | | MetaMask | Compatible | | ethers.js / viem / web3.js | Compatible | | OpenZeppelin | Compatible | ## Next Steps Chain ID, RPC endpoints, and explorers Step-by-step deployment guide Access Cosmos modules and advanced cryptographic primitives from Solidity What's different under the hood Create orders and track solver delivery through the Infinity Hub API and SDK. Understand event validation, threshold signing, and solver finalisation. --- # Developer Essentials URL: https://docs.c8ntinuum.com/developer-essentials Start here when you need the minimum practical context to deploy, connect tooling, estimate costs, or understand how c8ntinuum differs from Ethereum. Mainnet chain IDs, RPC endpoints, explorers, genesis, and canonical contracts. Testnet chain ID, RPC endpoints, explorer, faucet status, and verification status. Quick deployment references for Foundry, Hardhat, Remix, and pre-deployed contracts. Compatibility notes, finality, fee behavior, account formats, and JSON-RPC differences. EIP-1559 fee mechanics, base fee distribution, gas refunds, and cross-chain fee notes. Builder-oriented entry point for c8ntinuum's native precompile surfaces. RPC, gas, nonce, indexing, and contract practices for production apps. Opcode compatibility notes, contract-size limits, and precompile gas formulas. Querying historical state, archive nodes, and data-availability surfaces. Network-relevant change history for builders. ## Suggested path 1. Pick [Network Information - Mainnet Beta](/developer-essentials/network-information/mainnet) or [Network Information - Testnet](/developer-essentials/network-information/testnet). 2. Confirm the compatibility notes in [Differences from Ethereum](/developer-essentials/differences-from-ethereum). 3. Deploy with the [Deployment Summary](/developer-essentials/deployment-summary) or a specific guide. 4. Review [Best Practices](/developer-essentials/best-practices) before moving production traffic. --- # Network Information - Mainnet Beta URL: https://docs.c8ntinuum.com/developer-essentials/network-information/mainnet ## Chain configuration | Property | Value | | --- | --- | | **Network Name** | `c8ntinuum` | | **Coin Name** | `c8ntinuum` | | **EVM Chain ID** | `8` / `0x8` | | **Cosmos Chain ID** | `c8ntinuum_8-1` | | **Currency Symbol** | `CTM` | | **Base Denom** | `ctm` | | **Decimals** | `18` | | **Account Prefix** | `c8` | | **Validator Prefix** | `c8valoper` | | **Consensus Prefix** | `c8valcons` | | **Expected Block Time** | `4s` | | **Finality** | 1 block under standard CometBFT | | **EVM HTTP RPC URL** | `https://public-evm-rpc.c8ntinuum.com` | | **EVM WebSocket RPC URL** | `wss://public-evm-rpc.c8ntinuum.com/websocket` | | **CometBFT HTTP RPC URL** | `https://public-comet-rpc.c8ntinuum.com` | | **CometBFT WebSocket RPC URL** | `wss://public-comet-rpc.c8ntinuum.com/websocket` | | **Block Explorer** | [CTMScan](https://ctmscan.io) | | **Genesis URL** | `https://resources.c8ntinuum.io/mainnet/genesis.json` | | **Genesis SHA-256** | `ebe6292aa5885b508b1d455c93564683c92e9cc3f80592ee615b1cffbc74a653` | This table intentionally lists the default wallet and deployment endpoints. For Cosmos gRPC, REST/LCD, alternate public endpoints, paid endpoints, and limits, see [RPC Providers](/tooling-and-infrastructure/rpc-providers). ## Wallet setup Use the values above when adding a custom network in MetaMask, Rabby, Coinbase Wallet, or any other EVM-compatible wallet. For a step-by-step wallet walkthrough, see [Add c8ntinuum Mainnet Beta to Wallet](/guides/wallet-setup/mainnet). ## Related guides - For testnet values, see [Network Information - Testnet](/developer-essentials/network-information/testnet). - For Cosmos gRPC, REST/LCD, alternate public endpoints, paid endpoints, and limits, see [RPC Providers](/tooling-and-infrastructure/rpc-providers). - For contract verification, see [Verify with Foundry](/guides/verify-contract/foundry) or [Verify with Hardhat](/guides/verify-contract/hardhat). ## Block explorers | Explorer | URL | |----------|-----| | **CTMScan** | [ctmscan.io](https://ctmscan.io) | ## Canonical contracts c8ntinuum ships pre-deployed contracts at well-known addresses. See [Pre-deployed Contracts](/modules/predeployed-contracts) for the full list with addresses. | Contract | Address | |----------|---------| | WETH9 (Wrapped CTM) | `0xc8Fb80fCc03f699C70ff0CC08C09106288888888` | | Multicall3 | `0xcA11bde05977b3631167028862bE2a173976CA11` | | Permit2 | `0x000000000022D473030F116dDEE9F6B43aC78BA3` | | CreateX | `0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed` | | Safe singleton factory | `0x914d7Fec6aaC8cd542e72Bca78B30650d45643d7` | --- # Network Information - Testnet URL: https://docs.c8ntinuum.com/developer-essentials/network-information/testnet Use this page as the canonical source for c8ntinuum testnet network values. Guides should link here instead of duplicating testnet configuration unless a wallet or tool requires a specific field shape. ## Chain configuration | Property | Value | | --- | --- | | **Network Name** | `c8ntinuum testnet` | | **Coin Name** | `test c8ntinuum` | | **EVM Chain ID** | `8888` / `0x22b8` | | **Cosmos Chain ID** | `c8ntinuum_8888-1` | | **Currency Symbol** | `CTM` | | **Base Denom** | `ctm` | | **Decimals** | `18` | | **Account Prefix** | `c8` | | **Validator Prefix** | `c8valoper` | | **Consensus Prefix** | `c8valcons` | | **Expected Block Time** | `4s` | | **Finality** | 1 block under standard CometBFT | | **EVM HTTP RPC URL** | `https://public-testnet-evm.c8ntinuum.link` | | **EVM WebSocket RPC URL** | `wss://public-testnet-evm.c8ntinuum.link/websocket` | | **CometBFT HTTP RPC URL** | `https://public-testnet-comet.c8ntinuum.link` | | **CometBFT WebSocket RPC URL** | `wss://public-testnet-comet.c8ntinuum.link/websocket` | | **Cosmos gRPC** | `public-testnet-grpc.c8ntinuum.link:443` | | **REST/LCD** | `https://public-testnet-grpc-web.c8ntinuum.link` | | **Block Explorer** | [testnet.ctmscan.io](https://testnet.ctmscan.io) | | **Genesis URL** | `https://resources.c8ntinuum.io/testnet/genesis.json` | | **Genesis SHA-256** | `844f4322877d19e538d7ce584af92a2ab3a7eb825757b6b956068a4d255c6d43` | ## Availability status | Surface | Status | Notes | | --- | --- | --- | | Public EVM HTTP and WebSocket RPC | Available now | Use for wallet setup, deployments, reads, and broadcasts on testnet. | | Public CometBFT RPC | Available now | Use for node status, consensus block metadata, and CometBFT transaction queries. | | Public gRPC and REST/LCD | Available now | Use for Cosmos SDK account and transaction queries. | | CTMScan testnet explorer | Available now | Use for accounts, transactions, contracts, and logs. | | Testnet faucet | Available now | Public faucet at [testnet-faucet.c8ntinuum.io](https://testnet-faucet.c8ntinuum.io). Authentication, per-request amount, cooldown, and reset policy are governed by the faucet UI; check the page for current limits. | | Testnet contract verification API | Available now | Etherscan-compatible verifier API at `https://testnet.ctmscan.io/api` (mirrors mainnet structure). | ## Wallet setup Use the values above when adding a custom network in MetaMask, Rabby, Coinbase Wallet, or any other EVM-compatible wallet. For a step-by-step wallet walkthrough, see [Add c8ntinuum Testnet to Wallet](/guides/wallet-setup/testnets). ## Related guides - For mainnet values, see [Network Information - Mainnet Beta](/developer-essentials/network-information/mainnet). - For Cosmos gRPC, REST/LCD, alternate public endpoints, paid endpoints, and limits, see [RPC Providers](/tooling-and-infrastructure/rpc-providers). - For contract verification, see [Verify with Foundry](/guides/verify-contract/foundry) or [Verify with Hardhat](/guides/verify-contract/hardhat). --- # Deployment Summary URL: https://docs.c8ntinuum.com/developer-essentials/deployment-summary ## Prerequisites - An EVM wallet with CTM for gas fees - RPC endpoint: `https://public-evm-rpc.c8ntinuum.com` - Chain ID: `8` - Compiler EVM version `prague` or earlier (Osaka is not active); see [Differences from Ethereum](/developer-essentials/differences-from-ethereum) ## Deploy with Foundry ```bash forge create --rpc-url https://public-evm-rpc.c8ntinuum.com \ --private-key $PRIVATE_KEY \ --broadcast \ src/MyContract.sol:MyContract ``` ## Deploy with Hardhat ```javascript // hardhat.config.js require("@nomicfoundation/hardhat-toolbox"); module.exports = { solidity: "0.8.20", networks: { continuum: { url: "https://public-evm-rpc.c8ntinuum.com", chainId: 8, accounts: [process.env.PRIVATE_KEY], }, }, }; ``` ```bash npx hardhat run scripts/deploy.js --network continuum ``` For the full walkthrough, including the deploy script, see [Deploy with Hardhat](/guides/deploy-contract/hardhat). ## Deploy with Remix 1. Open [Remix IDE](https://remix.ethereum.org) 2. Write or import your contract 3. In the **Deploy** tab, select **Injected Provider** (MetaMask) 4. Ensure MetaMask is connected to c8ntinuum (Chain ID `8`) 5. Click **Deploy** ## Verify a Contract See the [Verification Guides](/guides/verify-contract/foundry) for step-by-step instructions using Foundry or Hardhat. ## What's Available at Genesis You don't need to deploy common infrastructure — c8ntinuum ships with [pre-deployed contracts](/modules/predeployed-contracts) including Multicall3, Permit2, WETH9, the Safe singleton factory, and CreateX at well-known addresses. --- # Differences from Ethereum URL: https://docs.c8ntinuum.com/developer-essentials/differences-from-ethereum This page is a builder-focused quick reference. For the full feature-by-feature compatibility matrix and "what's enhanced" coverage, see the canonical [EVM Compatibility](/core-concepts/evm-compatibility) page. ## Quick Reference | Area | Ethereum | c8ntinuum | |------|----------|-----------| | **Block time** | ~12 seconds | Expected 4s | | **Finality** | Multiple confirmations are common | 1-block finality under standard CometBFT | | **Reorganizations** | Possible | Governed by CometBFT BFT consensus | | **Consensus** | Proof of Stake (Gasper) | CometBFT (2/3+ validator agreement) | | **Fee destination** | Base fee burned, priority fee paid to the block proposer | All fees burned, base fee and priority fee | | **Address format** | `0x` only | `0x` + `c8` (Bech32 alias) | | **Chain ID** | Single integer | Dual: Cosmos string + EVM integer (`8`) | | **Cross-chain** | Bridge protocols | Native IBC | | **Max contract size** | 24.576 KB (EIP-170) | Same as Ethereum (24,576 bytes) | | **Precompiles** | Standard Ethereum set | Standard + Cosmos modules + zk/PQ/VRF | ## Smart Contracts - EVM opcodes are supported up to the Prague (Pectra) fork. Osaka (Fusaka) is not active, so Osaka opcodes such as `CLZ` (EIP-7939) are rejected as invalid. Compile with EVM version `prague` or earlier (for example `evm_version = "prague"` in `foundry.toml`, or `evmVersion: "prague"` in Hardhat or Remix compiler settings) - ERC-20, ERC-721, ERC-1155 and other standards work identically - Additional precompiled contracts provide access to Cosmos modules and advanced cryptographic primitives - Pre-deployed contracts (Multicall3, Permit2, WETH9, Safe singleton factory, etc.) are available at genesis ## Transactions - **Supported types**: Confirm the exact transaction-type matrix against the target `ctmd` release before relying on newer Ethereum transaction types - **Dual transaction types**: Both Ethereum and Cosmos SDK transactions are supported - Ethereum transactions are wrapped in `MsgEthereumTx` for Cosmos SDK processing - Transaction ordering is by effective tip (gas priority), same as Ethereum ## Gas & Fees - EIP-1559 fee market is fully supported - All fees are burned, the priority fee as well as the base fee (see [Fee Burn](/modules/custom/feeburn)), and fee-market parameters are governed through the governance module - Unlike Ethereum, every EVM transaction is charged at least 50% of its gas limit: gas charged = max(gas used, 50% of the gas limit). Keep `gasLimit` close to the `eth_estimateGas` result. See [Gas](/developer-essentials/gas). - Use `eth_estimateGas` through the standard EVM RPC flow and verify provider behavior for production transactions ## JSON-RPC - Common `eth_*`, `web3_*`, and `net_*` methods are expected on Ethereum-compatible endpoints - Mining-related methods (`eth_mining`, `eth_hashrate`, `eth_coinbase`, `eth_getWork`, `eth_submitWork`, `eth_submitHashrate`) are not available and return JSON-RPC error `-32601` (CometBFT consensus, not PoW) - `txpool_*` methods require compatible node configuration - WebSocket endpoints are published; free WebSockets allow `1` connection per IP and paid WebSockets allow `30` connections per API key. See [RPC Providers](/tooling-and-infrastructure/rpc-providers) ## Account Model - Every account has dual representation: `0x` hex and `c8` Bech32 - Both reference the same underlying account - HD derivation path: `m/44'/60'/0'/0/index`, so the first account is `m/44'/60'/0'/0/0` (Ethereum-compatible, coin type 60) - EIP-7702 Set Code is fully supported for EOA code delegation --- # Gas on c8ntinuum URL: https://docs.c8ntinuum.com/developer-essentials/gas ## Quick Reference | Property | Value | |----------|-------| | **Gas pricing model** | EIP-1559-style fee market | | **Fee destination** | All fees burned, base fee and priority fee ([`x/feeburn`](/modules/custom/feeburn)) | | **Min gas price (base-fee floor)** | `222000000000.000000000000000000` (`222 gwei`) | | **Gas charged** | max(gas actually used, 50% of the gas limit); the rest of the gas limit is refunded | | **Gas estimation** | Use `eth_estimateGas` and verify provider behavior for production transactions | ## How Fees Work EVM transactions use the standard gas fields expected by Ethereum tooling: ```text Maximum Fee = Gas Limit x Max Fee Per Gas ``` Users specify: - `maxFeePerGas`: Maximum total gas price willing to pay - `maxPriorityFeePerGas`: Maximum priority tip - `gasLimit`: Upper bound on gas consumption Unlike Ethereum, c8ntinuum always charges at least `min_gas_multiplier` (currently `0.5`, so 50%) of the gas limit: ```text Fee = max(Gas Used, Gas Limit x 0.5) x Effective Gas Price ``` Setting `gasLimit` far above the `eth_estimateGas` result costs real CTM. For example, at an effective gas price of 222 gwei a transaction that needs 50,000 gas but is sent with a `gasLimit` of 500,000 is charged for 250,000 gas (0.0555 CTM instead of 0.0111 CTM). Keep limits within about 2x the estimate. ## Key Differences from Ethereum c8ntinuum uses EIP-1559-style fee-market parameters. [EIP-1559](https://eips.ethereum.org/EIPS/eip-1559) defines a protocol base fee that adjusts with block fullness, a priority fee, and a maximum fee cap; c8ntinuum uses the same developer-facing fee fields. | Parameter | Value | Meaning | |-----------|-------|---------| | `no_base_fee` | `false` | Base fee is enabled. | | `enable_height` | `0` | Fee market is enabled from genesis. | | `base_fee` | `222000000000.000000000000000000` (`222 gwei`) | Current base fee. It is dynamic: it started at the genesis value of `444 gwei`, moves each block with block fullness, and cannot fall below `min_gas_price`. | | `min_gas_price` | `222000000000.000000000000000000` (`222 gwei`) | Configured minimum gas price and the floor for the base fee. | | `base_fee_change_denominator` | `8` | EIP-1559-style denominator that bounds per-block base-fee movement. | | `elasticity_multiplier` | `4` | EIP-1559-style multiplier used to derive the gas target from the block gas limit. | | `min_gas_multiplier` | `0.500000000000000000` | Minimum share of the gas limit that is always charged (`0.5` = 50%). | All transaction fees are burned, the priority fee as well as the base fee: [`x/feeburn`](/modules/custom/feeburn) burns the fees of each block at the start of the next one, so validators receive no fee revenue. Gas parameter changes are governed through the governance module. ## Cosmos SDK Transactions Non-EVM (Cosmos SDK) transactions specify: - `GasLimit`: Upper bound on execution gas - `FeeAmount`: Maximum fee willing to pay Gas is consumed during execution. If `GasLimit` is insufficient, the transaction fails and fees are not refunded. ## Cross-Chain Gas IBC and relayer integrations may introduce integration-specific fees outside normal EVM execution gas. Confirm the target IBC route and relayer policy before building user-facing fee estimates. --- # Opcode Pricing URL: https://docs.c8ntinuum.com/developer-essentials/opcode-pricing c8ntinuum supports standard EVM bytecode execution, including opcodes up to the Prague (Pectra) fork. Osaka (Fusaka) is not active, so Osaka opcodes such as `CLZ` (EIP-7939) are invalid; see [Differences from Ethereum](/developer-essentials/differences-from-ethereum). For application developers, opcode-level behavior should be treated as Ethereum-compatible unless a c8ntinuum-specific page documents an exception. Use `eth_estimateGas` against the target network before submitting production transactions. ## EVM opcodes | Area | Guidance | |------|----------| | Standard opcodes | Use normal Ethereum tooling and gas estimates; no c8ntinuum-specific opcode repricing is documented here. | | Contract size | Fixed at the Ethereum limits: 24,576 bytes of deployed code (EIP-170) and 49,152 bytes of initcode (EIP-3860). See [Differences from Ethereum](/developer-essentials/differences-from-ethereum). | | Gas estimation | Use `eth_estimateGas` and test the final transaction path before submitting. | | Pre-deployed contracts | Execute as ordinary EVM bytecode with ordinary EVM gas accounting; see [Pre-deployed Contracts](/modules/predeployed-contracts). | ## Precompile costs c8ntinuum adds native precompile surfaces beyond the standard Ethereum set. Source-backed formulas are summarized in [Precompile ABI Reference](/reference/precompile-abi#gas-schedule). | Precompile class | Current documented pricing | |------------------|-------------------------------| | Stateful Cosmos module transactions | `2000 + 30 * input bytes`, then SDK execution is metered inside the call | | Stateful Cosmos module queries | `1000 + 3 * input bytes`, then SDK execution is metered inside the call | | SP1 Groth16 `verifyProof` | `300000 + ceil((publicValuesBytes + proofBytes) / 32) * 16` | | SP1 Plonk `verifyProof` | `800000 + ceil((publicValuesBytes + proofBytes) / 32) * 16` | | Variable-length stateless precompiles | `base gas + ceil(input bytes / 32) * word gas`; use the relevant ABI/source entry for constants | | P256 | Raw-call precompile; validate packed input shape in caller code | | Surface | Pricing source | |---------|----------------| | Precompile ABI catalog | [Precompile ABI Reference](/reference/precompile-abi#gas-schedule) | | Cosmos staking precompile | [Staking](/modules/cosmos/staking) | | Cosmos distribution precompile | [Distribution](/modules/cosmos/distribution) | | Cosmos bank precompile | [Bank](/modules/cosmos/bank) | | Cosmos governance precompile | [Governance](/modules/cosmos/governance) | | IBC transfer precompile | [ICS20](/modules/cosmos/ics20) | | Other precompiles | [Modules & Precompiles](/modules/overview) | Use [Gas on c8ntinuum](/developer-essentials/gas) for transaction-level fee mechanics and this page for low-level execution pricing pointers. --- # Precompiles URL: https://docs.c8ntinuum.com/developer-essentials/precompiles c8ntinuum exposes native chain capabilities through EVM precompiles. These interfaces let Solidity contracts reach Cosmos modules, cross-chain verification, cryptographic primitives, and data utilities without re-implementing them in bytecode. Full catalogue of precompile families, including native module access and cryptographic surfaces. Source-backed addresses, ABI artifacts, imports, methods, events, reverts, and gas behavior. Common ecosystem contracts available at well-known addresses from genesis. Delegation, validator operations, and staking state through the Cosmos staking module. Cross-chain token transfer flows accessible from Solidity. ## Integration notes - Use the [Precompile ABI Reference](/reference/precompile-abi) for method-level signatures, return values, events, reverts, and gas notes. - Treat token amounts as native-chain precision where module pages call that out. - Test precompile calls with the same RPC endpoint and chain ID you will use in production. --- # Historical Data URL: https://docs.c8ntinuum.com/developer-essentials/historical-data Historical data access depends on the depth and shape of data your application needs. ## Common choices | Need | Recommended source | |------|--------------------| | Recent blocks, transactions, receipts, and logs | JSON-RPC methods from [RPC Providers](/tooling-and-infrastructure/rpc-providers) | | Contract event history | `eth_getLogs` for bounded ranges, or an indexer for larger scans | | Token balances, transfers, and derived datasets | [Indexers](/tooling-and-infrastructure/indexers) | | Full historical state or archive reads | [Archive Data Setup](/node-ops/archive-data) | ## RPC guidance Use bounded ranges for log scans and paginate long jobs. The documented EVM JSON-RPC profile caps `eth_getLogs` at `10000` blocks and `10000` returned logs per request. If your app repeatedly rebuilds derived state from raw logs, move that workload to an indexer. ## Archive data Archive nodes retain full historical state with `pruning = "nothing"`, `min-retain-blocks = 0`, `discard_abci_responses = false` and `tx_index.indexer = "kv"`. Add EVM `enable-indexer = true` once the EVM index covers the history. A state-sync snapshot gives a node no history before its trust height. An archive node either restores a full-history data snapshot (`deploy.sh snapshot restore`, Linux) or replays from block 1 with `deploy.sh full-sync --archive` (mainnet only so far). The replay runs each stretch of the chain with the release that ran it, and takes weeks on mainnet. Use [Archive Data Setup](/node-ops/archive-data) for operator configuration details. --- # Best Practices URL: https://docs.c8ntinuum.com/developer-essentials/best-practices ## RPC Optimization ### Avoid Unnecessary Calls Some values are static or change infrequently on c8ntinuum. Consider hardcoding: | Value | Method | Recommendation | |-------|--------|----------------| | Chain ID | `eth_chainId` | Hardcode `8` | | Currency | N/A | Hardcode `CTM` | ### Batch Calls Use Multicall3 (pre-deployed at `0xcA11bde05977b3631167028862bE2a173976CA11`) to aggregate multiple read calls into a single RPC request: ```solidity // Instead of N separate eth_call requests, batch them Multicall3.aggregate3(calls); ``` ### Use JSON-RPC Batching Carefully The documented EVM JSON-RPC batch limit is `2000` requests, with a maximum batch response size of `50000000` bytes. Keep batches well below those limits and make them retryable. In ethers v6, `JsonRpcProvider` sends concurrent requests as one JSON-RPC batch (tune it with the `batchMaxCount` and `batchStallTime` provider options): ```javascript const [balance, nonce] = await Promise.all([ provider.getBalance(addr, "latest"), provider.getTransactionCount(addr, "latest"), ]); ``` If you build batches by hand, POST a JSON array in which every request has `jsonrpc: "2.0"` and a unique `id`. ## Gas Optimization - Use `eth_estimateGas` for complex transactions - A plain CTM transfer (no calldata) to an address that has no code, is not a precompile, and has no EIP-7702 delegation uses exactly `21000` gas. For contracts, precompiles, smart-contract wallets, or delegated EOAs, use `eth_estimateGas` - Keep `gasLimit` close to the estimate: every EVM transaction is charged at least 50% of its gas limit. See [Gas](/developer-essentials/gas) - Set reasonable `maxFeePerGas` — read the base fee from the latest block's `baseFeePerGas` (or `eth_feeHistory`) and the tip from `eth_maxPriorityFeePerGas`, then use about `2 × baseFeePerGas + tip` (the ethers v6 `getFeeData()` heuristic). `eth_gasPrice` returns the base fee plus the suggested tip, not the base fee alone ## Nonce Management For applications submitting multiple transactions in rapid succession: - Track nonces locally rather than querying `eth_getTransactionCount` for each tx - Submit transactions concurrently with incrementing nonces - Handle nonce gaps — c8ntinuum supports nonce gap queuing, but sequential submission is more reliable ## Indexing For historical data queries, use an indexer rather than RPC: - On-chain event logs are available via `eth_getLogs`; keep each request within the `10000` block and `10000` log caps - For complex queries (token transfers, DEX trades, balances over time), use a dedicated indexer - See [Indexers](/tooling-and-infrastructure/indexers) for SubQuery/The Graph guidance and current provider status ## Smart Contract Best Practices - Use [OpenZeppelin contracts](https://github.com/OpenZeppelin/openzeppelin-contracts) for standard patterns - When interacting with c8ntinuum precompiles, pass amounts in base `ctm` units (18 decimals, the same scale as wei). See [Tokens](/core-concepts/tokens) - Test on a local node before deploying to mainnet — run `./local_node.sh` from a checkout of the c8ntinuum node source for a local instance. The node source will be published in a public GitHub repository (repository TBA). See [Local Development](/tooling-and-infrastructure/local-development) --- # Changelog URL: https://docs.c8ntinuum.com/developer-essentials/changelog This page showcases developer-facing changes that affect application behavior, integration work, or operational assumptions. ## Changelog When a documented change is published, add entries newest first: | Date | Area | Change | Action for developers | |------|------|--------|-----------------------| | 2026-10-04 | Tooling / Docs | The node docs now cover `deploy.sh upgrade` (binary upgrades, and on Linux arming for governance upgrades), `upgrade --rollback` (which replaces `deploy.sh rollback`), `full-sync`, `snapshot restore`, `rpc enable` and `status --check`. | Node operators: download a fresh `deploy.sh` and verify it with `deploy.sh.sha256`; see [Upgrade Instructions](/node-ops/upgrade-instructions). | | 2026-10-01 | Network | Mainnet chain upgrade `v0.2.3-to-v0.2.3-rc1` at height `714700`; the published `ctmd` release for that height is `0.2.4`. | Past height `714700` a node needs a `ctmd` release that knows this upgrade; the published one is `0.2.4` (`sudo ./deploy.sh upgrade`). A replay from block 1 uses [`deploy.sh full-sync`](/node-ops/full-sync). | --- # Tooling and Infrastructure URL: https://docs.c8ntinuum.com/tooling-and-infrastructure c8ntinuum works with standard EVM infrastructure. Use this section to connect applications, wallets, deployment tools, and data services. HTTP and WebSocket endpoints for apps, scripts, and developer tools. Transaction, contract, account, and verification explorers. EVM-compatible wallet support and setup links. Data indexing and querying services for historical and derived data. Off-chain data providers for smart contracts. IBC precompiles, safety controls, and verification-oriented interoperability notes. Foundry, Hardhat, Remix, libraries, and local development notes. Run a local single-node chain with `local_node.sh` for development and testing. --- # RPC Providers URL: https://docs.c8ntinuum.com/tooling-and-infrastructure/rpc-providers c8ntinuum publishes public endpoints for default application use and paid endpoints for higher-limit integrations. Public docs use `c8ntinuum.com` as the default mainnet RPC domain; `c8ntinuum.io` and `c8ntinuum.link` are also documented RPC domains. For chain IDs, currency metadata, explorers, and genesis resources, see [Network Information - Mainnet Beta](/developer-essentials/network-information/mainnet) and [Network Information - Testnet](/developer-essentials/network-information/testnet). ## Mainnet endpoints | Surface | Default public endpoint | Alternate public endpoint | Paid endpoint | | --- | --- | --- | --- | | EVM JSON-RPC HTTP | `https://public-evm-rpc.c8ntinuum.com` | `https://public-evm-rpc.c8ntinuum.io` | `https://evm-rpc.c8ntinuum.io` | | EVM JSON-RPC WebSocket | `wss://public-evm-rpc.c8ntinuum.com/websocket` | `wss://public-evm-rpc.c8ntinuum.io/websocket` | `wss://evm-rpc.c8ntinuum.io/websocket` | | CometBFT RPC HTTP | `https://public-comet-rpc.c8ntinuum.com` | `https://public-comet-rpc.c8ntinuum.io` | `https://comet-rpc.c8ntinuum.io` | | CometBFT RPC WebSocket | `wss://public-comet-rpc.c8ntinuum.com/websocket` | `wss://public-comet-rpc.c8ntinuum.io/websocket` | `wss://comet-rpc.c8ntinuum.io/websocket` | | Cosmos gRPC | `-` | `public-comet-grpc.c8ntinuum.io:443` | `comet-grpc.c8ntinuum.io:443` | | REST/LCD | `-` | `https://public-comet-grpc-web.c8ntinuum.io` | `https://comet-grpc-web.c8ntinuum.io` | ## Testnet endpoints | Surface | Public endpoint | Paid endpoint | | --- | --- | --- | | EVM JSON-RPC HTTP | `https://public-testnet-evm.c8ntinuum.link` | `https://testnet-evm.c8ntinuum.link` | | EVM JSON-RPC WebSocket | `wss://public-testnet-evm.c8ntinuum.link/websocket` | `wss://testnet-evm.c8ntinuum.link/websocket` | | CometBFT RPC HTTP | `https://public-testnet-comet.c8ntinuum.link` | `https://testnet-comet.c8ntinuum.link` | | CometBFT RPC WebSocket | `wss://public-testnet-comet.c8ntinuum.link/websocket` | `wss://testnet-comet.c8ntinuum.link/websocket` | | Cosmos gRPC | `public-testnet-grpc.c8ntinuum.link:443` | `testnet-grpc.c8ntinuum.link:443` | | REST/LCD | `https://public-testnet-grpc-web.c8ntinuum.link` | `https://testnet-grpc-web.c8ntinuum.link` | ## Paid access Paid endpoints on mainnet and testnet require a valid API key through the `X-API-Key` header or an `api_key` query parameter. Header authentication is preferred. Requests without a valid key return HTTP `401`. To get a paid API key, email [dev@c8ntinuum.com](mailto:dev@c8ntinuum.com). A dedicated self-service dashboard is planned. ## Limits The public and paid endpoints use the same protocol surfaces. They differ by authentication, request rate, and concurrent connection limits. | Tier/surface | Rate | Burst | Key | | --- | --- | --- | --- | | Free CometBFT | `25 r/s` | `50` | per visitor IP | | Free EVM | `30 r/s` | `60` | per visitor IP | | Free gRPC | `25 r/s` | `50` | per visitor IP | | Free REST/LCD | `25 r/s` | `50` | per visitor IP | | Paid surfaces | `300 r/s` | `600` | per API key | | Paid per-IP safety cap | `500 r/s` | `500` | per visitor IP | Concurrent connection limits are `50` per IP for free HTTP/gRPC/REST surfaces, `1` per IP for free WebSockets, `200` per API key for paid EVM and CometBFT HTTP, `100` per API key for paid gRPC/REST, and `30` per API key for paid WebSockets. Requests over configured limits return HTTP `429`. ## EVM JSON-RPC request limits | Setting | Value | | --- | --- | | `eth_getLogs block range cap` | `10000 blocks` | | `eth_getLogs result cap` | `10000 logs` | | `EVM batch request limit` | `2000 requests` | | `EVM batch response max size` | `50000000 bytes` | | `EVM HTTP request body limit` | `2m` | Paginate long event scans by block range and persist cursors so retries do not duplicate work. ## Self-hosted node To serve your own JSON-RPC, run a node with `deploy.sh` as in [Full Node Installation](/node-ops/full-node-installation). A new install has the EVM JSON-RPC off. Turn it on with: ```bash sudo ./deploy.sh rpc enable -y ``` This puts the EVM JSON-RPC (default `127.0.0.1:8545`, WebSocket `127.0.0.1:8546`) and the CometBFT RPC (default `tcp://127.0.0.1:26657`) on `127.0.0.1`. `--public` puts them on `0.0.0.0`; put a firewall or reverse proxy in front. For exchange and custody operation, see [Running Your Own Node](/guides/exchange-integration/running-a-node). ## Using RPC Endpoints ### ethers.js ```javascript const provider = new JsonRpcProvider("https://public-evm-rpc.c8ntinuum.com"); ``` ### viem ```javascript const client = createPublicClient({ transport: http("https://public-evm-rpc.c8ntinuum.com"), }); ``` ### Foundry ```bash cast chain-id --rpc-url https://public-evm-rpc.c8ntinuum.com ``` --- # Block Explorers URL: https://docs.c8ntinuum.com/tooling-and-infrastructure/block-explorers Use CTMScan, the main c8ntinuum explorer, for account, transaction, token, contract, and log inspection on c8ntinuum networks. For the Cosmos SDK side of the chain, such as IBC transfers, staking, and governance, use the [Cosmos explorer](#cosmos-explorer). ## Explorer status | Network | Explorer | Status | Supported workflows | |---------|----------|--------|---------------------| | Mainnet | [ctmscan.io](https://ctmscan.io) | Available now | Transaction browsing, account inspection, contract pages, contract verification, token tracking | | Testnet | [testnet.ctmscan.io](https://testnet.ctmscan.io) | Available now | Testnet transaction browsing, account inspection, contract pages, contract verification, token tracking | ## Cosmos explorer c8ntinuum is one chain with two sides that share the same blocks and the same accounts: - the **EVM side**: EVM transactions, smart contracts, ERC-20 tokens, and `0x...` addresses; - the **Cosmos SDK side**: bank balances, staking, governance, IBC transfers, and the `c8...` form of the same addresses. **CTMScan ([ctmscan.io](https://ctmscan.io)) remains the main c8ntinuum explorer.** Use it for EVM transactions, contracts, contract verification, and ERC-20 tokens, and link to it from dapps and wallets. The Cosmos explorer at [cosmos.ctmscan.io](https://cosmos.ctmscan.io/) complements CTMScan with what it doesn't index, the Cosmos SDK side: | Section | What it shows | |---------|---------------| | Dashboard | Block height, validators, supply, bonded tokens, active governance proposals | | Transactions and Blocks | Cosmos transactions, such as IBC transfers, relayer packets, delegations, and governance votes | | Accounts | All bank balances of a `c8...` address, including tokens received over IBC, plus delegations and rewards | | Staking | Validators, voting power, and commission | | Governance | Proposals, including chain upgrades, and how validators voted | | IBC | Connections, channels, and clients, such as the [Cosmos Hub connection](https://cosmos.ctmscan.io/ibc/connection/connection-0) | | Wallet Helper | [Add c8ntinuum to Keplr](https://cosmos.ctmscan.io/wallet/suggest) in one click | The Cosmos explorer is built on [Ping.pub](https://ping.pub) and reads the public c8ntinuum RPC and REST endpoints. Look up an account at `https://cosmos.ctmscan.io/account/`; the explorer takes the `c8...` form of an address, not the `0x...` form. To move tokens over IBC, see [Move ATOM and CTM with IBC](/guides/ibc-transfers). ## Verification status | Network | Verifier API | Status | Guide | |---------|--------------|--------|-------| | Mainnet | `https://ctmscan.io/api` | Available now | [Verify with Foundry](/guides/verify-contract/foundry), [Verify with Hardhat](/guides/verify-contract/hardhat) | | Testnet | `https://testnet.ctmscan.io/api` | Available now | [Verify with Foundry](/guides/verify-contract/foundry), [Verify with Hardhat](/guides/verify-contract/hardhat) | ## Operational notes - Use [Network Information - Mainnet Beta](/developer-essentials/network-information/mainnet) and [Network Information - Testnet](/developer-essentials/network-information/testnet) as the source of truth for chain IDs and RPC endpoints. - For deployment and verification flows, keep the explorer network, EVM chain ID, and RPC endpoint on the same network. - For exchange and custody systems, credit from receipts and logs rather than explorer pages; use explorers for investigation and user support. --- # Wallets URL: https://docs.c8ntinuum.com/tooling-and-infrastructure/wallets c8ntinuum provides official EVM network metadata for third-party wallet applications. There is no separate official c8ntinuum wallet application documented in these docs; users connect through EVM-compatible wallets by adding the c8ntinuum RPC, chain ID, currency, and explorer values. ## Supported wallets | Wallet | Support | Notes | |--------|---------|-------| | **MetaMask** | Browser extension and mobile | Add c8ntinuum as a custom network. | | **Rabby** | Browser extension | Add c8ntinuum with the same EVM network values. | | **Coinbase Wallet** | Browser extension and mobile | Add c8ntinuum as a custom network where custom networks are supported. | | **WalletConnect-compatible wallets** | Mobile wallet protocol | Dapps should advertise c8ntinuum as `eip155:8`. | | **Keplr** | Browser extension | Cosmos-side wallet for IBC transfers. Add c8ntinuum from [cosmos.ctmscan.io/wallet/suggest](https://cosmos.ctmscan.io/wallet/suggest); see [Move ATOM and CTM with IBC](/guides/ibc-transfers). | | **Ledger Nano** | Hardware wallet through an EVM wallet | Ledger Nano S Plus and Nano X are supported through MetaMask, Rabby, or another EVM wallet using the Ledger Ethereum app and derivation path. | ## Mainnet network details Use these values when a wallet asks for manual network configuration. | Field | Value | |-------|-------| | **Network Name** | `c8ntinuum` | | **RPC URL** | `https://public-evm-rpc.c8ntinuum.com` | | **Chain ID** | `8` / `0x8` | | **Currency Symbol** | `CTM` | | **Block Explorer** | `https://ctmscan.io` | For step-by-step wallet setup, see [Add c8ntinuum Mainnet Beta to Wallet](/guides/wallet-setup/mainnet). ## Testnet network details | Field | Value | |-------|-------| | **Network Name** | `c8ntinuum testnet` | | **RPC URL** | `https://public-testnet-evm.c8ntinuum.link` | | **Chain ID** | `8888` / `0x22b8` | | **Currency Symbol** | `CTM` | | **Block Explorer** | `https://testnet.ctmscan.io` | For step-by-step testnet setup, see [Add c8ntinuum Testnet to Wallet](/guides/wallet-setup/testnets). For the canonical testnet endpoint and status table, see [Network Information - Testnet](/developer-essentials/network-information/testnet). ## WalletConnect metadata WalletConnect dapps should expose c8ntinuum as an EVM chain in the `eip155` namespace. | Metadata | Value | |----------|-------| | **Namespace** | `eip155` | | **Chain** | `eip155:8` | | **Native currency** | `CTM` | | **RPC URL** | `https://public-evm-rpc.c8ntinuum.com` | | **Explorer URL** | `https://ctmscan.io` | ```json { "chains": ["eip155:8"], "rpcMap": { "8": "https://public-evm-rpc.c8ntinuum.com" } } ``` ## Wallet application workflows No separate official c8ntinuum wallet application is listed in these docs. c8ntinuum is integrated through EVM-compatible wallets and wallet protocols using the network metadata above. | Workflow | Wallet behavior | |----------|-----------------| | Account generation | Wallets generate Ethereum-compatible `eth_secp256k1` accounts. The EVM address is the primary wallet address. | | Account selection | Users choose an Ethereum-style account in MetaMask, Rabby, Coinbase Wallet, a Ledger Nano (S Plus or X) through an EVM wallet, or a WalletConnect-compatible wallet. | | Network selection | Wallets must be switched to chain ID `8` for mainnet or `8888` for testnet before signing. | | Transaction construction | Dapps request standard EVM transactions with `eth_sendTransaction`; wallets fill or confirm nonce, fee, gas, recipient, value, and data. | | Signing | Browser and mobile wallets sign in-app. Ledger Nano signs through the Ledger Ethereum app and the connected EVM wallet. | | Broadcasting | Most wallets broadcast through their configured RPC after signing. Custody systems can broadcast offline-signed transactions with `eth_sendRawTransaction`. | | Confirmation | Wallets and dapps should poll `eth_getTransactionReceipt` and treat `status == 1` as success. | For custody and exchange systems that construct transactions without an interactive wallet, see [Offline Signing and Broadcasting](/guides/exchange-integration/offline-signing-and-broadcasting). ## Wallet support matrix | Wallet path | Account generation | Transaction construction | Signing | Broadcasting | Confirmation | |-------------|--------------------|--------------------------|---------|--------------|--------------| | MetaMask browser/mobile | Generates or imports Ethereum-compatible accounts. | Dapps request `eth_sendTransaction`; users confirm recipient, value, fees, and data. | In-wallet software signer, or Ledger when connected. | Wallet broadcasts through the configured c8ntinuum RPC. | Wallet activity, CTMScan, or `eth_getTransactionReceipt`. | | Rabby browser | Generates or imports Ethereum-compatible accounts. | Dapps request standard EVM transactions with chain ID `8`. | In-wallet software signer, or Ledger when connected. | Wallet broadcasts through the configured c8ntinuum RPC. | Wallet activity, CTMScan, or `eth_getTransactionReceipt`. | | Coinbase Wallet | Generates or imports Ethereum-compatible accounts where custom networks are supported. | Dapps request standard EVM transactions after the network is added. | Browser or mobile wallet signer. | Wallet broadcasts through the configured c8ntinuum RPC. | Wallet activity, CTMScan, or `eth_getTransactionReceipt`. | | WalletConnect-compatible wallets | Wallet owns account generation; dapps advertise `eip155:8`. | Dapps submit EVM transaction requests through WalletConnect. | Wallet signs in-app after the user approves the request. | Wallet broadcasts through its configured RPC or connected session policy. | Dapp should poll `eth_getTransactionReceipt`; users can also inspect CTMScan. | | Ledger Nano through an EVM wallet | Ledger Ethereum app derives Ethereum-compatible accounts on the selected path. | Connected EVM wallet constructs the transaction and displays the signing prompt. | Ledger Nano S Plus or Nano X signs through the Ledger Ethereum app. | Connected EVM wallet broadcasts through the configured c8ntinuum RPC. | Connected wallet activity, CTMScan, or `eth_getTransactionReceipt`. | ## Third-party wallet instructions To use c8ntinuum in a third-party wallet: 1. Add c8ntinuum as a custom EVM network using the mainnet or testnet values above. 2. Select an account derived with an Ethereum-compatible path. 3. Confirm the wallet shows the expected chain ID before signing. 4. Keep native `CTM` in the sending account for gas. 5. For ERC-20 tokens, import the token contract address manually if the wallet does not auto-detect it. 6. After signing, confirm the transaction in the wallet activity list, CTMScan, or by querying `eth_getTransactionReceipt`. Wallet applications should display the EVM address for contract and token flows. If a product also shows the `c8...` account representation, label it clearly as the Cosmos-format alias of the same account. ## Wrapped CTM On c8ntinuum mainnet (chain ID `8`) and testnet (chain ID `8888`), the wrapped native token is the WETH9-compatible wrapped CTM contract, symbol `WCTM`: ```text 0xc8Fb80fCc03f699C70ff0CC08C09106288888888 ``` Use this address when a wallet, portfolio app, or dapp needs an ERC-20 representation of native CTM on chain ID `8` or `8888`. On Ethereum (chain ID `1`) and BNB Chain (chain ID `56`), the same address is a different contract: the CTM ERC-20 and the CTM BEP-20. Key token records by chain ID and address, not by address alone. For token model details, see [Tokens](/core-concepts/tokens) and [Pre-deployed Contracts](/modules/predeployed-contracts). ## Address formats and conversion | Use case | Address format | |----------|----------------| | EVM wallets, contracts, JSON-RPC, and token imports | `0x...` | | Cosmos account UX, REST queries, and IBC-facing account flows | `c8...` | | Validator operator addresses | `c8valoper...` | Both the `0x` and `c8` account formats refer to the same underlying account. Use the [Accounts](/core-concepts/accounts) page for key type and prefix details, and the [Bech32 precompile](/modules/cosmos/bech32) when a contract needs to convert between formats. ## Common wallet errors | Symptom | Likely cause | Fix | |---------|--------------|-----| | Wallet shows the wrong chain | Chain ID was entered as a different value. | Edit the custom network and use `8` or `0x8`. | | Wallet says the network is unsupported | The wallet has not added c8ntinuum as a custom EVM network. | Add the mainnet values from this page manually. | | Transaction cannot be sent | Account has no native `CTM` for gas. | Fund the account with CTM before sending transactions or token transfers. | | Token is not visible | The ERC-20 was not imported into the wallet UI. | Import the token contract address manually and confirm it on CTMScan. | | MetaMask mobile opens the wrong network | The mobile app is still connected to another chain. | Switch networks inside MetaMask mobile before approving the dapp connection. | | Ledger Nano signing fails or shows an unexpected address | The connected EVM wallet is using a different derivation path or Ledger app. | Open the Ledger Ethereum app on the Nano S Plus or Nano X and use the Ethereum path documented in [Accounts](/core-concepts/accounts). | | RPC is unavailable | Public endpoint is temporarily unreachable or blocked by local networking. | Retry later, or set the wallet's RPC URL to the alternate public endpoint `https://public-evm-rpc.c8ntinuum.io`. For paid endpoints, see [RPC Providers](/tooling-and-infrastructure/rpc-providers). | | Explorer links do not open | Explorer URL is missing from the custom network. | Set the block explorer URL to `https://ctmscan.io`. | --- # Indexers URL: https://docs.c8ntinuum.com/tooling-and-infrastructure/indexers ## Why Use an Indexer? RPC endpoints are optimized for real-time queries. For historical data, complex queries (token transfers, DEX trades, balances over time), or event aggregation, use a dedicated indexer. ## Provider status | Option | Status | Best use | |--------|--------|----------| | Bounded JSON-RPC log scans | Available now | Recent event reads and small backfills within provider caps | | Self-hosted [archive node](/node-ops/archive-data) plus custom indexer | Available now | Full historical data, replayable ETL, and integration-specific schemas | | SubQuery project pattern | Available now as generic tooling | Build a multichain EVM/Cosmos indexer using c8ntinuum RPC surfaces | | Official hosted SubQuery provider | TBA | Use once a provider, endpoint, and SLA are published | | Official hosted indexer schemas | TBA | Use once managed schemas and freshness guarantees are published | | The Graph hosted c8ntinuum provider | Not announced | Adapt generic EVM subgraph patterns only where infrastructure supports the target network | ## Types of Data | Data Type | Best Source | |-----------|------------| | **Real-time balances** | RPC (`eth_getBalance`, `eth_call`) | | **Event logs** | RPC (`eth_getLogs`) or indexer | | **Historical state** | Indexer | | **Token transfers** | Indexer | | **DEX trades** | Indexer | | **NFT ownership** | Indexer | ## Using Event Logs c8ntinuum supports standard Ethereum event logs. Query recent ranges via RPC: ```javascript const latest = await provider.getBlockNumber(); const logs = await provider.getLogs({ address: contractAddress, topics: [ethers.id("Transfer(address,address,uint256)")], fromBlock: Math.max(0, latest - 5000), toBlock: latest, }); ``` The documented EVM JSON-RPC profile caps each `eth_getLogs` request at `10000` blocks and `10000` returned logs. Paginate historical jobs and persist cursors; for large backfills, use an archive node or dedicated indexer. See [Historical Data](/developer-essentials/historical-data) for archive and scan guidance. A paginated scan walks the range in windows of at most `10000` blocks: ```javascript const startBlock = deploymentBlock; // First block to scan; when resuming, use the saved cursor + 1. const step = 10000; // Shrink the window if a request hits the 10000-log cap. const latest = await provider.getBlockNumber(); for (let from = startBlock; from <= latest; from += step) { const to = Math.min(from + step - 1, latest); const page = await provider.getLogs({ address: contractAddress, topics: [ethers.id("Transfer(address,address,uint256)")], fromBlock: from, toBlock: to, }); // Process `page`, then persist `to` as the cursor. } ``` ## SubQuery c8ntinuum's EVM and Cosmos surfaces fit SubQuery's multichain indexing pattern. A c8ntinuum SubQuery project can use an Ethereum runtime data source for EVM logs and a Cosmos runtime data source for Cosmos SDK events, following the same project shape used in [SubQuery's EVM + Cosmos multichain quickstart](https://subquery.network/doc/indexer/quickstart/quickstart_multichain/kava-multi-chain.html). Official hosted SubQuery providers for c8ntinuum are TBA. ## The Graph c8ntinuum exposes Ethereum-compatible logs and JSON-RPC, so generic EVM subgraph patterns can be adapted for contracts deployed on c8ntinuum when the target indexing infrastructure supports the network. No official c8ntinuum-specific The Graph provider is announced in these docs. --- # Oracles URL: https://docs.c8ntinuum.com/tooling-and-infrastructure/oracles ## What Are Oracles? Oracles bring off-chain data (prices, weather, sports results, etc.) on-chain for smart contracts to consume. They are essential for DeFi protocols, prediction markets, and any application that needs real-world data. ## Provider status | Capability | Status | Current guidance | |------------|--------|------------------| | Official price oracle provider | TBA | Do not assume a canonical price feed until an official provider or ecosystem integration is published. | | Official data-feed provider | TBA | Treat provider-specific feed addresses, update cadence, and SLAs as unavailable in these docs. | | Provider-specific docs | Planned | Feed addresses, freshness guarantees, supported assets, outage behavior, and integration examples will be documented once a provider is announced. | | Native verifiable randomness | Available now | Use the ECVRF precompile for on-chain verifiable randomness use cases. | ## Verifiable Randomness c8ntinuum includes a native **VRF precompile** (`ecvrf`) that verifies ECVRF proofs on-chain. It does not generate randomness itself. The holder of a VRF secret key computes the output and proof off-chain from an input seed. A contract then calls `ecvrfVerify` with the suite (`P256_SHA256_TAI` or `SECP256K1_SHA256_TAI`), the public key, the seed, and the proof, and uses the returned output only when `ok` is `true`. This makes each result publicly auditable for lotteries, leader selection, and randomized protocols, but the key holder remains a trusted party: - The key holder sees each output first and can withhold results it does not like. - The seed must be a value the key holder cannot choose or predict. Otherwise the key holder can try seeds until it gets a favorable output. For the precompile address and interface name (`ECVRFI`), see [Precompile ABI Reference](/reference/precompile-abi). For ecosystem announcements, check [Official Links](/official-links). --- # IBC Interoperability URL: https://docs.c8ntinuum.com/tooling-and-infrastructure/cross-chain ## Native IBC c8ntinuum's native cross-chain protocol is **IBC** (Inter-Blockchain Communication). IBC provides trust-minimized cross-chain messaging backed by light-client verification. IBC light clients provide the Infinity Verify layer of [Infinity Settlement](/infinity-interop/settlement) and are live on c8ntinuum. Access IBC directly from Solidity via the [ICS02](/modules/cross-chain-verification) and [ICS20](/modules/cosmos/ics20) precompiles. ## IBC channels | Counterparty | Channel on c8ntinuum | Channel on the counterparty | Tokens | Guide | |--------------|----------------------|-----------------------------|--------|-------| | Cosmos Hub (`cosmoshub-4`) | `transfer/channel-0` | `transfer/channel-1942` | ATOM, CTM | [Move ATOM and CTM with IBC](/guides/ibc-transfers) | Inspect the channel, its connection, and IBC balances on the Cosmos explorer at [cosmos.ctmscan.io](https://cosmos.ctmscan.io/ibc/connection/connection-0). ## IBC Safety Controls c8ntinuum has two custom IBC control modules: | Control | Scope | Reference | |---------|-------|-----------| | IBC breaker | Operator-controlled `ibc_available` flag that blocks selected outbound IBC initiation paths, including `MsgTransfer`, when disabled. | [IBC Breaker](/modules/custom/ibc-breaker) | | IBC rate-limiter extension | Governance-managed whitelist for operators that can add, update, remove, or reset IBC rate limits. Packet enforcement remains with the ratelimiting middleware. | [IBC Rate-Limiter Extension](/modules/custom/ibc-rate-limiter-extension) | The IBC breaker is not a full token-transfer freeze. Internal non-IBC transfers, such as bank `MsgSend`, remain available when it is disabled. The ICS20 precompile transfer path routes into the transfer keeper, so it is blocked when `ibc_available=false`. For broader chain availability control, see the [Circuit Breaker](/modules/custom/circuit). It gates native Cosmos transactions, EVM extension transactions, and `eth_sendRawTransaction` submissions when `system_available=false`. ## Infinity Intents and Infinity Settlement [Infinity Intents](/infinity-interop/intents) provides swaps and cross-chain transfers through Infinity Hub, the aggregator, and solvers. [Infinity Settlement](/infinity-interop/settlement) checks each cross-chain message through three independent layers: Infinity Attest, Infinity Checkpoint and Infinity Verify. IBC light clients are live on c8ntinuum. The Attester Network and validator checkpoints are in active development and devnet testing. Start with the [API overview](/infinity-interop/intents/api) or [quickstart](/infinity-interop/intents/api/quickstart). --- # Development Toolkits URL: https://docs.c8ntinuum.com/tooling-and-infrastructure/dev-toolkits ## Frameworks | Toolkit | Description | Guide | |---------|-------------|-------| | **Foundry** | Fast Solidity framework — compile, test, deploy, and interact via CLI | [Deploy Guide](/guides/deploy-contract/foundry) | | **Hardhat** | JavaScript-based Solidity framework with rich plugin ecosystem | [Deploy Guide](/guides/deploy-contract/hardhat) | | **Remix** | Browser-based IDE — no installation required | [Deploy Guide](/guides/deploy-contract/remix) | ## Local Development To run a single-node c8ntinuum chain on your machine with `local_node.sh`, see [Local Development](/tooling-and-infrastructure/local-development). ## EVM RPC Clients c8ntinuum uses EVM chain ID `8` and Cosmos chain ID `c8ntinuum_8-1`. EVM clients can use the standard Ethereum JSON-RPC endpoint. Cosmos-native signing must account for c8ntinuum's `eth_secp256k1` account model. | SDK name | Programming language | GitHub URL | Supported | EVM/Cosmos | |----------|----------------------|------------|-----------|------------| | **viem** | TypeScript | [github.com/wevm/viem](https://github.com/wevm/viem) | Yes - recommended for modern TypeScript apps | EVM | | **ethers.js** | TypeScript, JavaScript | [github.com/ethers-io/ethers.js](https://github.com/ethers-io/ethers.js) | Yes | EVM | | **web3.py** | Python | [github.com/ApeWorX/web3.py](https://github.com/ApeWorX/web3.py) | Yes | EVM | | **Alloy** | Rust | [github.com/alloy-rs/alloy](https://github.com/alloy-rs/alloy) | Yes - recommended Rust option | EVM | | **go-ethereum ethclient/rpc** | Go | [github.com/ethereum/go-ethereum](https://github.com/ethereum/go-ethereum) | Yes | EVM | | **Nethereum** | C#/.NET | [github.com/Nethereum/Nethereum](https://github.com/Nethereum/Nethereum) | Yes | EVM | | **web3j** | Java, Kotlin, Android | [github.com/LFDT-web3j/web3j](https://github.com/LFDT-web3j/web3j) | Yes | EVM | | **web3.js** | TypeScript, JavaScript | [github.com/web3/web3.js](https://github.com/web3/web3.js) | Legacy only - compatible but prefer viem or ethers.js | EVM | ## Cosmos RPC Clients | SDK name | Programming language | GitHub URL | Supported | EVM/Cosmos | |----------|----------------------|------------|-----------|------------| | **CosmJS** | TypeScript, JavaScript | [github.com/cosmos/cosmjs](https://github.com/cosmos/cosmjs) | Yes for CometBFT/Stargate queries and broadcasting; validate native signing setup | Cosmos | | **Telescope** | TypeScript codegen | [github.com/hyperweb-io/telescope](https://github.com/hyperweb-io/telescope) | Yes - recommended for typed Cosmos module clients generated from c8ntinuum protos | Cosmos | | **InterchainJS / @interchainjs/cosmos** | TypeScript, JavaScript | [github.com/hyperweb-io/interchainjs](https://github.com/hyperweb-io/interchainjs) | Yes - validate c8ntinuum native transaction signing | Cosmos | | **Cosmos SDK Go gRPC clients** | Go | [github.com/cosmos/cosmos-sdk](https://github.com/cosmos/cosmos-sdk) | Yes - recommended Go path for gRPC and tx services | Cosmos | | **CosmRS + tendermint-rpc** | Rust | [github.com/cosmos/cosmos-rust](https://github.com/cosmos/cosmos-rust) | Partial to yes - good for tx building and CometBFT RPC; generated protos may be needed for full module coverage | Cosmos | | **CosmPy** | Python | [github.com/fetchai/cosmpy](https://github.com/fetchai/cosmpy) | Partial - useful high-level client; verify eth_secp256k1 signing before native tx support | Cosmos | --- # Local Development URL: https://docs.c8ntinuum.com/tooling-and-infrastructure/local-development This page documents the canonical local single-node workflow for c8ntinuum developers. ## Canonical script `local_node.sh` is at the root of the `ctmd` node source repository and is the canonical local-node script. The node source will be published in a public GitHub repository (repository TBA); the commands on this page run from the root of that repository: ```bash ./local_node.sh [options] ``` There is no separate local-node repository for the default developer flow. For hosted deployment scripts and source attribution, see [Deployment Scripts](/reference/deployment-scripts). ## Prerequisites - Go matching `go.mod` - `make` - `jq` - A working C toolchain for CGO builds - Rust/SP1 build dependencies required by `make install` `local_node.sh` installs `ctmd` by default with `make install`. The install directory is `BINDIR` if set, otherwise `$GOPATH/bin` when `GOPATH` is set, otherwise `$HOME/go/bin`. The script then runs whichever `ctmd` comes first on your `PATH`. ## Install and start Start from a clean local genesis and install the binary: ```bash ./local_node.sh -y ``` Use an existing installed binary without rebuilding: ```bash ./local_node.sh --no-install -y ``` Install into a custom binary directory and run that binary. Put the directory first on `PATH`, because the script runs the first `ctmd` it finds there: ```bash BINDIR=/tmp/ctm-bin PATH="/tmp/ctm-bin:$PATH" ./local_node.sh -y ``` Start the existing local node state without overwriting `~/.ctmd`: ```bash ./local_node.sh --no-install -n ``` The script writes local chain data under: ```text $HOME/.ctmd ``` ## Reset The normal reset command is: ```bash ./local_node.sh -y ``` That removes the existing `$HOME/.ctmd` directory and creates a fresh local genesis. The manual equivalent is: ```bash rm -rf "$HOME/.ctmd" ./local_node.sh ``` Stop the node with `Ctrl-C`. ## Useful flags ```text -y Overwrite existing chain data without prompt -n Do not overwrite existing chain data --no-install Skip 'make install' --remote-debugging Build with nooptimization,nostrip --additional-users N Create N extra users: dev4, dev5, ... --mnemonic-file PATH Where to write mnemonics YAML --mnemonics-input PATH Read dev mnemonics from a yaml file ``` `--additional-users` accepts only non-negative integers. Generated extra-user mnemonics are written to `$HOME/.ctmd/mnemonics.yaml` unless `--mnemonic-file` is provided. ## Chain configuration The local chain uses Cosmos chain ID `c8ntinuum_8888888-1` and EVM chain ID `8888888`, distinct from mainnet ([`c8ntinuum_8-1`](/developer-essentials/network-information/mainnet), EVM `8`) and testnet ([`c8ntinuum_8888-1`](/developer-essentials/network-information/testnet), EVM `8888`). The script sets the EVM chain ID explicitly: a node started without it uses `ctmd`'s default of `8`, the mainnet ID, and EVM transactions signed on it are valid on mainnet. Never use a key that holds real funds on a local chain. | Setting | Local value | | --- | --- | | Cosmos chain ID | `c8ntinuum_8888888-1` | | EVM chain ID | `8888888` / `0x87a238` | | Native denom | `atest` | | Currency symbol | `TEST` | | Keyring backend | `test` | | Account key algorithm | `eth_secp256k1` | | Node home | `$HOME/.ctmd` | | Moniker | `localtestnet` | | Minimum gas price | `0atest` | | EVM min tip | `0` | | EVM JSON-RPC APIs | `eth,txpool,personal,net,debug,web3` | For EVM tooling and wallets, use chain ID `8888888` (`0x87a238`) and confirm it with `eth_chainId` after startup. ## Ports The script enables the local app APIs and uses the default `ctmd` local addresses. | Service | Default local address | | --- | --- | | EVM JSON-RPC HTTP | `http://127.0.0.1:8545` | | EVM JSON-RPC WebSocket | `ws://127.0.0.1:8546` | | CometBFT RPC | `tcp://127.0.0.1:26657` | | CometBFT P2P | `tcp://127.0.0.1:26656` | | Cosmos REST API | `tcp://127.0.0.1:1317` | | Cosmos gRPC | `localhost:9090` | | Geth metrics | `127.0.0.1:8100` | ## Default accounts These accounts are deterministic local development accounts. They are public test keys and must never be used with real funds. | Name | EVM address | Local bech32 address | Private key | |------|-------------|----------------------|-------------| | `dev0` | `0xC6Fe5D33615a1C52c08018c47E8Bc53646A0E101` | `c81cml96vmptgw99syqrrz8az79xer2pcgpw8hsl4` | `0x88cbead91aee890d27bf06e003ade3d4e952427e88f88d31d61d3ef5e5d54305` | | `dev1` | `0x963EBDf2e1f8DB8707D05FC75bfeFFBa1B5BaC17` | `c81jcltmuhplrdcwp7stlr4hlhlhgd4htqhc0gcnx` | `0x741de4f8988ea941d3ff0287911ca4074e62b7d45c991a51186455366f10b544` | | `dev2` | `0x40a0cb1C63e026A81B55EE1308586E21eec1eFa9` | `c81gzsvk8rruqn2sx64acfsskrwy8hvrmaffytl6p` | `0x3b7955d25189c99a7468192fcbc6429205c158834053ebe3f78f4512ab432db9` | | `dev3` | `0x498B5AeC5D439b733dC2F58AB489783A23FB26dA` | `c81fx944mzagwdhx0wz7k9tfztc8g3lkfk62373ee` | `0x8a36c69d940a92fcea94b36d0f2928c7a0ee19a90073eda769693298dfa9603b` | Each default dev account receives: ```text 1000000000000000000000atest ``` That is 1,000 `TEST`: the local denom is `atest`, with 18 decimals. The default validator key is `mykey`. | Field | Value | |-------|-------| | EVM/operator bytes | `0x7cB61D4117AE31a12E393a1Cfa3BaC666481D02E` | | Local account address | `c810jmp6sgh4cc6zt3e8gw05wavvejgr5pwmph94z` | | Local validator address | `c8valoper10jmp6sgh4cc6zt3e8gw05wavvejgr5pwrxmh56` | | Mnemonic | `gesture inject test cycle original hollow east ridge hen combine junk child bacon zero hope comfort vacuum milk pitch cage oppose unhappy lunar seat` | The validator account is funded with `100000000000000000000000000atest` during genesis, and its genesis transaction self-delegates `888888000000000000000000atest` with `--min-self-delegation 888888000000000000000000`. That is 888,888 `TEST`, the self-delegation floor that `x/msdcheck` enforces. ## Active precompiles and local native wrapper `local_node.sh` activates this static precompile set in genesis: | Name | Address | |------|---------| | P256 | `0x0000000000000000000000000000000000000100` | | Bech32 | `0x0000000000000000000000000000000000000400` | | Staking | `0x0000000000000000000000000000000000000800` | | Distribution | `0x0000000000000000000000000000000000000801` | | ICS20 | `0x0000000000000000000000000000000000000802` | | Bank | `0x0000000000000000000000000000000000000804` | | Gov | `0x0000000000000000000000000000000000000805` | | Slashing | `0x0000000000000000000000000000000000000806` | | ICS02 | `0x0000000000000000000000000000000000000807` | The script also configures the native ERC-20 precompile/token pair for the local denom: | Name | Address | Denom | |------|---------|-------| | Native ERC-20 / WERC20-style surface | `0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE` | `atest` | A fresh local genesis also includes the default preinstall set described in [Pre-deployed Contracts](/modules/predeployed-contracts): `ctmd init` writes it into the EVM genesis state, and the script does not remove it. ## Docker support The canonical local development path is `./local_node.sh`. Docker assets exist, but they are separate from the single-node script flow: - `contrib/images/ctmd-env/Dockerfile` builds a `ctmd` environment image. - `docker-compose.yml` defines a four-node `cosmos/ctmd` localnet (`ctmdnode0` to `ctmdnode3`). - `tests/jsonrpc/Dockerfile` and `tests/jsonrpc/docker-compose.yml` support the JSON-RPC test infrastructure. Use Docker for workflows that explicitly reference those files. For day-to-day local development against the node source, prefer `./local_node.sh`. ## Expected logs On a fresh reset, expect logs like: ```text Flag -y passed -> Overwriting the previous chain data. using default mnemonics adding key for dev0 adding key for dev1 adding key for dev2 adding key for dev3 Genesis transaction written to "$HOME/.ctmd/config/gentx/..." File at $HOME/.ctmd/config/genesis.json is a valid genesis file INF starting ABCI with CometBFT INF starting node with ABCI CometBFT in-process INF Starting JSON-RPC server address=127.0.0.1:8545 INF finalized block height=1 INF executed block height=1 INF committed state height=1 ``` During shutdown with `Ctrl-C`, expect: ```text INF caught signal signal=interrupt INF stopping gRPC server... INF stopping API server... INF stopping JSON-RPC server... INF Application gracefully shutdown ``` --- # Reference URL: https://docs.c8ntinuum.com/reference Use reference pages when you need exact interfaces, RPC behavior, error codes, or compatibility differences. Supported Ethereum JSON-RPC namespaces, common methods, and endpoint examples. Concrete block, transaction, receipt, log, broadcast, CometBFT, and REST call examples. Hosted `deploy.sh` and how to verify it, its commands and upgrades, release metadata and the upgrade map, release files, and the peer list. c8ntinuum-specific differences from standard Ethereum JSON-RPC behavior. JSON-RPC error codes returned by c8ntinuum nodes. Native precompile surfaces and system interfaces. Source-backed precompile addresses, ABI artifacts, methods, events, reverts, and gas behavior. Every /v1 endpoint of Infinity Hub, the credential it takes, its fields, behaviour and errors, plus the TypeScript SDK. --- # Deployment Scripts URL: https://docs.c8ntinuum.com/reference/deployment-scripts This page lists the canonical user-run deployment scripts, release metadata, release files, and peer-list resources referenced by the c8ntinuum docs. These endpoints are intended for downloading scripts and network bootstrap metadata before running them locally. ## Canonical resources | Resource | Purpose | Hosted endpoint | Main docs | |----------|---------|-----------------|-----------| | `deploy.sh` | Install, upgrade, sync (state sync, data snapshot, or from block 1), start, stop, inspect, and reset `ctmd` nodes. | `https://resources.c8ntinuum.io/deploy.sh` | [Full Node Installation](/node-ops/full-node-installation), [State Sync](/node-ops/state-sync), [Upgrade Instructions](/node-ops/upgrade-instructions), [Archive Data Setup](/node-ops/archive-data) | | `deploy.sh.sha256` | SHA-256 of `deploy.sh`, written as ` deploy.sh` for `sha256sum -c`. | `https://resources.c8ntinuum.io/deploy.sh.sha256` | [Deploy script](#deploy-script) | | `metadata.json` | The latest `ctmd` release and its download URLs for each platform, the genesis URL and SHA-256 URL for each chain ID, and the upgrade map of each network that has one (mainnet). Read by `install`, `upgrade`, `full-sync`, and `state-sync`, and by `start`'s genesis check, which other commands run too. | `https://resources.c8ntinuum.io/metadata.json` | [Release metadata](#release-metadata) | | `metadata.json.sha256` | SHA-256 of `metadata.json`. | `https://resources.c8ntinuum.io/metadata.json.sha256` | [Release metadata](#release-metadata) | | Release files | `ctmd` release tarballs, their `.sha256` files, and an optional `-toolchain.json`, by version and platform. | `https://resources.c8ntinuum.io/download/ctmd---.tar.gz` | [Release files](#release-files) | | Genesis | The genesis file and its SHA-256 for each network. | `https://resources.c8ntinuum.io/mainnet/genesis.json`, `https://resources.c8ntinuum.io/testnet/genesis.json` (each with `.sha256`) | [Official Links](/official-links) | | `local_node.sh` | Start the canonical local single-node c8ntinuum developer chain from a source checkout. | Repository-root script, not a hosted metadata artifact | [Local Development](/tooling-and-infrastructure/local-development) | | `peers.json` | Seeds and persistent peers that `install` and `state-sync` write, and the trusted RPCs that `state-sync`, `upgrade`, `full-sync` and `snapshot` ask. | `https://resources.c8ntinuum.io/peers.json` | [Full Node Block Delivery](/node-ops/full-node-block-delivery), [State Sync](/node-ops/state-sync), [Full Sync](/node-ops/full-sync) | Validators install `ctmd` by hand with the [manual mainnet install](/node-ops/validator-installation#manual-mainnet-install), which mirrors what `deploy.sh install` and `deploy.sh state-sync` do. That host runs a `ctmd.service` that `deploy.sh` did not write, so `upgrade`, `full-sync`, `snapshot create` and `snapshot restore` refuse it until you run `sudo ./deploy.sh adopt` once. `adopt` puts `deploy.sh`'s unit in place and keeps the node's `ctmd` version, node home, keys, and peers. After that, `deploy.sh upgrade` refuses a running node with voting power above 0, and `full-sync` and `snapshot` refuse a node whose key has voting power, unless you pass `--allow-validator`. For a binary upgrade, upgrade validators after the other nodes, one at a time, and check that each signs again before the next. For a chain upgrade, arm every validator before the upgrade height. This inventory intentionally excludes example, administrative, and framework-specific scripts such as `migrate.js`, `scripts/deploy.js`, `arguments.js`, npm scripts, `make` targets, Foundry commands, and `ctmd` commands. ## Deploy script To install `ctmd`, download `deploy.sh` with its published SHA-256 and check the script before you run it: ```bash curl -fsSL https://resources.c8ntinuum.io/deploy.sh -o deploy.sh curl -fsSL https://resources.c8ntinuum.io/deploy.sh.sha256 -o deploy.sh.sha256 sha256sum -c deploy.sh.sha256 # macOS: shasum -a 256 -c deploy.sh.sha256 chmod +x deploy.sh # Linux: run as root sudo ./deploy.sh install --moniker # macOS: run as your normal user, without sudo ./deploy.sh install --moniker ``` The check prints `deploy.sh: OK`. Keep both files in the same directory, because the `.sha256` file names the file `deploy.sh`. To move an installed node to another release, use `deploy.sh upgrade`, not `install` (see [Upgrades](#upgrades)). Keep the downloaded script so you can inspect it before running it and reuse it for lifecycle commands. Before an upgrade, download and check a fresh copy. An older copy may not read the current `metadata.json`: for example, a copy from before the `upgrade` command stops with `metadata missing valid .ctmd.latest_version` when `latest_version` is a pre-release. Copies made before `upgrade` and `full-sync` were added do not have those commands. Supported operator commands: | Command | Purpose | |---------|---------| | `install [--moniker NAME] [--chain-id ID] [--db-backend goleveldb\|rocksdb] [--reset-peers] [-y]` | Download `metadata.json`'s `latest_version` release, verify and install it, initialize the node home, and download and verify genesis. Without `--moniker`, a new node home takes the host name up to its first dot, or `ctmd-node`. A new node home, or one with no peers, gets its peers from `peers.json`; an existing one keeps its own unless `--reset-peers`. A new node home uses `goleveldb` unless `--db-backend rocksdb`; an existing one keeps its setting unless you pass `--db-backend`, which does not convert its data (rebuild it with `state-sync`, or on an archive node with `snapshot restore`). | | `state-sync [-y] [--lag N] [--restore-timeout MIN] [--rpc-1 URL] [--rpc-2 URL] [--p2p-host-1 HOST] [--p2p-host-2 HOST] [--force]` | Configure state sync, reset local chain data, wait for catch-up, then disable state sync and put back the node's own peers. Refuses a node that looks like an archive (`app.toml` has `pruning = "nothing"`, and its RPC serves every block from 1 or it is not running) unless `--force`. | | `upgrade [VERSION] [--start-timeout MIN] [--no-prune] [--allow-validator] [--dry-run] [-y]` | Bring an installed node to the latest release (or `VERSION`), check that it runs, go back to the old release if it does not, and wait until the node is synced. Before a scheduled chain upgrade (Linux), arm the release so it switches in at the upgrade height. | | `upgrade --rollback` | Switch back to the previous release. | | `upgrade --cancel` | Disarm a release armed for a chain upgrade. | | `full-sync [--archive] [--allow-validator] [--start-timeout MIN] [--dry-run] [-y]` | Sync a new node, with no chain data, from block 1 through every chain upgrade, switching releases at each by `metadata.json`'s upgrade map. `--archive` writes the archive settings first. Needs the network's upgrade map, which `metadata.json` publishes for mainnet only. | | `full-sync --cancel` | Stop a full sync in progress. | | `logs [-f] [-n N]` | Show or follow the node's log (macOS: `--state-sync` for the state-sync log). | | `rpc [enable\|disable] [evm\|comet] [--public] [--no-restart] [-y]` | Show the EVM JSON-RPC and Comet RPC endpoints. `enable` turns them on (or only `evm` or `comet`), listening on `127.0.0.1` unless `--public` (`0.0.0.0`). `disable` turns the EVM JSON-RPC off and puts the Comet RPC back on `127.0.0.1`; the Comet RPC is never turned off. | | `snapshot create\|abort\|restore` | Linux: make a full-history data snapshot of an archive node (`create`; `abort` cleans up after a create that did not finish), or restore one on a node (`restore`; mainnet default: `https://snapshots.c8ntinuum.com/mainnet/latest.json`). | | `adopt [--dry-run] [--no-restart] [--replace-unit] [-y]` | Linux: move a node installed by hand under `/usr/local` to the `deploy.sh` layout, keeping its `ctmd` version, node home, keys, and peers. | | `uninstall [--purge-data] [--no-backup] [--dry-run] [-y]` | Remove what `deploy.sh` installed; keep the node home unless `--purge-data`. | | `start` | Start the managed node. | | `stop` | Stop the managed node. | | `status [--check] [--json]` | Show the node, chain, endpoints, config, and disk. `--check` adds a `Health` line and exits `0` (OK), `1` (DOWN), `2` (BEHIND), or `3` (MISCONFIGURED); `--json` prints one JSON object. | | `reset [--no-backup] [--dry-run] [-y]` | Start over: the same as `uninstall --purge-data`. It first saves the node identity to `ctmd-identity--.tar.gz` in your home (`--no-backup` skips this). It then removes the install, the whole node home (keys, config, chain data), and on Linux the `ctmd` system user and group. | | `help` | Show script help. | `deploy.sh COMMAND --help` shows a command's options. Every command that asks before it changes something takes `-y`. On macOS, every command also takes `--home DIR` and `--prefix DIR`, and `install --binary PATH [--link]` installs a `ctmd` you built. `deploy.sh rollback` stops with `'rollback' is now: deploy.sh upgrade --rollback`. `install` and `state-sync` also set `[evm] evm-chain-id` in `app.toml` from the chain ID: `8` on mainnet (`c8ntinuum_8-1`), `8888` on testnet (`c8ntinuum_8888-1`). For a chain ID with no number in it, set `CTMD_EVM_CHAIN_ID` to choose the value. ## Release metadata `deploy.sh install` reads release metadata from [metadata.json](https://resources.c8ntinuum.io/metadata.json). The script resolves `.ctmd.latest_version`, selects the platform artifact URL and SHA-256 URL for `linux-amd64`, `linux-arm64`, or `darwin-arm64`, downloads the tarball, verifies SHA-256, and installs the bundled binary and shared libraries. `latest_version` is `X.Y.Z` or a pre-release such as `X.Y.Z-rc1` (also `alpha` and `beta`, with or without a dot before the number). `install` takes it as it is, without comparing versions: an older release listed there is installed all the same. `upgrade` without `VERSION` takes it too, unless a release is armed for a chain upgrade, `metadata.json`'s upgrade map names a release for a chain upgrade that is scheduled or that the node has halted at, or the chain-upgrade watcher has just switched the node (see [Upgrading a node](/node-ops/upgrade-instructions#upgrading-a-node)). Each artifact `url` ends with `ctmd--.tar.gz`, and its `sha256_url` with the same name plus `.sha256`; `toolchain_url` is optional. A platform that `artifacts` does not list stops `install` (and `upgrade` when it takes `latest_version`) on that platform with `metadata missing .ctmd.artifacts[""].url`, for example `metadata missing .ctmd.artifacts["darwin-arm64"].url` on a Mac. `deploy.sh` reads only the `ctmd` and `genesis` objects of `metadata.json`. `install` and `state-sync` download the genesis of the node's chain ID from the `metadata.json` entry whose `chain_id` matches (`genesis.mainnet` or `genesis.testnet`; the key is only a label). Before anything on the node changes, they check that the file's `chain_id` matches and that its SHA-256 equals the one published at that entry's `sha256_url`. `start` checks the local `config/genesis.json` against the same published SHA-256. Testnet (`c8ntinuum_8888-1`) is checked the same way as mainnet. A chain ID that `metadata.json` does not list needs `CTMD_GENESIS_URL`, and that genesis is checked for its `chain_id` only, with a warning. ### Upgrade map Each stretch of the chain's history must be replayed by the release that ran it. A later release stops with `BINARY UPDATED BEFORE TRIGGER` below an upgrade it knows, and an earlier one halts at the next upgrade's height. So a network's `genesis` entry in `metadata.json` carries an upgrade map: - `genesis_version`: the release that runs from block 1; - `upgrades`: each chain upgrade (x/upgrade), in height order, with its `name` (the upgrade plan's name), its `height`, and the `version` that runs from that height on. Mainnet's entry: ```json "mainnet": { "chain_id": "c8ntinuum_8-1", "url": "https://resources.c8ntinuum.io/mainnet/genesis.json", "sha256_url": "https://resources.c8ntinuum.io/mainnet/genesis.json.sha256", "genesis_version": "0.2.3", "upgrades": [ { "name": "v0.2.3-to-v0.2.3-rc1", "height": 714700, "version": "0.2.4" } ] } ``` `deploy.sh full-sync` needs the map. On mainnet it runs `0.2.3` from block 1 and `0.2.4` from height 714700. Before it changes anything, it checks the map against the chain at the first trusted RPC from `peers.json` that answers; when none answers, it warns and goes on. `deploy.sh upgrade` without `VERSION` takes the map's release for a chain upgrade that is scheduled or that the node has halted at. Testnet has no map yet, so `full-sync` refuses on testnet. c8ntinuum adds a new chain upgrade's entry once its proposal has passed and its release is published, before the upgrade height. ### Release files Each release is published as three files under `https://resources.c8ntinuum.io/download/`: | File | Content | |------|---------| | `ctmd---.tar.gz` | One top directory, `ctmd---/`, holding `bin/ctmd`, `lib/` (the libraries `ctmd` loads), `bin-checksums.sha256`, and `lib-checksums.sha256`. | | `ctmd---.tar.gz.sha256` | The tarball's SHA-256, as ` `. | | `ctmd----toolchain.json` | Optional: what the release was built with. | Platforms are `linux-amd64`, `linux-arm64`, and `darwin-arm64`. Releases `0.2.3` and `0.2.4` are published for all three. `install` downloads `latest_version` from the URLs in `metadata.json`. `upgrade VERSION`, the releases of the upgrade map, and an armed release are downloaded from this directory by file name, so `upgrade VERSION` can pin any published release. `install` checks the tarball against its `.sha256`. Before they change anything, `upgrade` and `full-sync` also check each file listed in the release's `bin-checksums.sha256` and `lib-checksums.sha256`. A release without those lists is checked through the tarball's SHA-256 only, with a warning. To check a release by hand: ```bash curl -fsSLO https://resources.c8ntinuum.io/download/ctmd-0.2.4-linux-amd64.tar.gz curl -fsSLO https://resources.c8ntinuum.io/download/ctmd-0.2.4-linux-amd64.tar.gz.sha256 sha256sum -c ctmd-0.2.4-linux-amd64.tar.gz.sha256 ``` ## Upgrades ```bash sudo ./deploy.sh upgrade --dry-run # download and check the release, show the plan; changes nothing sudo ./deploy.sh upgrade # the release for a chain upgrade at hand, else metadata.json's latest_version sudo ./deploy.sh upgrade 0.2.4 # a named release (v0.2.4 works too) sudo ./deploy.sh upgrade --rollback # back to the previous release sudo ./deploy.sh upgrade --cancel # disarm a release armed for a chain upgrade ``` `deploy.sh upgrade` moves an installed node to another `ctmd` release and waits until the node is synced; only the binary and its libraries change (on Linux, a node under cosmovisor is taken over, and cosmovisor's drop-in set aside). For a binary upgrade, it restarts the node on the new release, checks that the node runs it and adds blocks, and goes back to the old release by itself if it does not. When a chain upgrade is scheduled and the release knows it (a bare `upgrade` takes the upgrade map's release for it), `upgrade` on Linux arms the release and restarts nothing, and a systemd watcher switches the node when it halts at the upgrade height; macOS has no watcher, so there you run `upgrade` once the node has halted. A running validator needs `--allow-validator`. See [Upgrading a node](/node-ops/upgrade-instructions#upgrading-a-node) for the full procedure, the exit codes, and rollback. ## Peer list `deploy.sh` uses the hosted peer list at: ```text https://resources.c8ntinuum.io/peers.json ``` The peer list is the deployment source for network bootstrap information: | Key | Used for | |-----|----------| | `seeds` | Initial P2P discovery. | | `persistent_peers` | Stable peers for joining and staying connected to the network. `deploy.sh state-sync` uses every entry as a state-sync snapshot peer; `--p2p-host-1` and `--p2p-host-2` replace the first and second entries. | | `trusted_rpcs` | Trusted RPC endpoints. `deploy.sh state-sync` takes its trust height and hash from the first and uses the first two as its RPC servers. `upgrade` asks them whether a chain upgrade is scheduled when the node's own RPC does not answer, and waits until the node is within 2 blocks of them. `full-sync` checks the upgrade map against them, and `snapshot restore` checks the snapshot's block there. | `deploy.sh install` needs at least one entry in `seeds` or `persistent_peers` for the network. Every entry needs an `id` (the 40-hex-digit node ID) and a `host` (a host name, an IPv4 address, or an IPv6 address in brackets, without a port), and may set a `port` (default `26656`). `deploy.sh state-sync` needs at least two `trusted_rpcs` entries unless both `--rpc-1` and `--rpc-2` are given, and at least one `persistent_peers` entry unless `--p2p-host-1` or `--p2p-host-2` is given. `deploy.sh` selects peer-list entries by chain ID, so node deployers normally do not need to manually copy a peer list into `config.toml`. Operators using private infrastructure can override RPC and snapshot peer hosts with `deploy.sh state-sync` flags such as `--rpc-1`, `--rpc-2`, `--p2p-host-1`, and `--p2p-host-2`. `install` writes the network's `seeds` and `persistent_peers` to a new node home, or to one that has neither. An existing node home keeps its own peers unless you pass `--reset-peers`. `state-sync` writes the network's peers for the sync; when the node had other peers of its own, it saves them first and puts them back once the sync completes. `upgrade` never touches peers. ## Environment overrides | Variable | Default | Purpose | |----------|---------|---------| | `CTMD_METADATA_URL` | `https://resources.c8ntinuum.io/metadata.json` | Release metadata, genesis URLs and checksums, and the upgrade map | | `CTMD_PEERS_URL` | `https://resources.c8ntinuum.io/peers.json` | Seeds, persistent peers, and trusted RPCs | | `CTMD_DOWNLOAD_URL` | `https://resources.c8ntinuum.io/download` | Where `upgrade VERSION`, the upgrade map's releases, and `full-sync` download releases from: `https://`, or `file://` for a directory on the host (plain `http://` with a warning) | | `CTMD_GENESIS_URL` | the genesis `metadata.json` lists | Genesis download URL for a chain ID that `metadata.json` does not list | | `CTMD_EVM_CHAIN_ID` | derived from the chain ID | EVM chain ID for a chain ID without a number | | `CTMD_SNAPSHOT_URL` | on mainnet `https://snapshots.c8ntinuum.com/mainnet/latest.json` | Manifest for `snapshot restore` without a `SOURCE` | | `CTMD_HOME`, `CTMD_PREFIX` | | macOS only: node home and install prefix, like `--home` and `--prefix` | On Linux, `sudo` resets the environment, so pass variables after `sudo` with `env`: ```bash sudo env CTMD_DOWNLOAD_URL=file:///srv/ctmd-releases ./deploy.sh upgrade 0.2.4 ``` ## Local node script `local_node.sh` ships with the `ctmd` source, which will be published in a public GitHub repository; the repository is to be announced. From a checkout of that repository, start a local developer chain: ```bash ./local_node.sh -y ``` --- # JSON-RPC API URL: https://docs.c8ntinuum.com/rpc-reference/json-rpc-api ## Overview c8ntinuum exposes an Ethereum-compatible JSON-RPC endpoint at `https://public-evm-rpc.c8ntinuum.com`. The default public EVM namespace allowlist is `eth,net,web3`. Archive or private node profiles may enable additional namespaces such as `debug` or `txpool`, but applications should not assume those namespaces are available on the default public endpoint. ## Supported Namespaces | Namespace | Status | Description | |-----------|--------|-------------| | `eth` | Enabled by default | Core Ethereum methods: accounts, blocks, transactions, and logs | | `web3` | Enabled by default | Client version and utilities | | `net` | Enabled by default | Network information | | `txpool` | Configuration-dependent | Not in the default `api = "eth,net,web3"` list; present only on nodes that add `txpool` | | `debug` | Full archive only | Intended for private full-archive debug nodes (see [Archive Data](/node-ops/archive-data)), not the default public RPC | | `personal` | Not for public RPC | Optional on private full-archive debug nodes; should not be exposed on default public RPC | | `trace` | Not available | `ctmd` does not provide a separate `trace` namespace | "Enabled by default" means the namespace is in the default `api` list that the public endpoints serve. A self-hosted node installed with `deploy.sh` has the EVM JSON-RPC off until you run `sudo ./deploy.sh rpc enable` (on macOS, `./deploy.sh rpc enable`, without `sudo`; see [Deployment Scripts](/reference/deployment-scripts)). The local development node started by `local_node.sh` enables `eth,txpool,personal,net,debug,web3`. ## Commonly Used Methods | Method | Description | |--------|-------------| | `eth_chainId` | Returns `0x8` (8) | | `eth_blockNumber` | Latest block number | | `eth_getBalance` | Account balance | | `eth_getTransactionCount` | Account nonce | | `eth_sendRawTransaction` | Submit a signed transaction | | `eth_call` | Execute a call without creating a transaction | | `eth_estimateGas` | Estimate gas for a transaction | | `eth_getTransactionReceipt` | Get transaction receipt | | `eth_getLogs` | Query event logs | | `eth_gasPrice` | Current gas price | | `eth_maxPriorityFeePerGas` | Current priority fee suggestion | For concrete block, transaction, receipt, log, broadcast, CometBFT, and REST/LCD examples, see [Node Interface Calls](/rpc-reference/node-interface-calls). ## Method availability matrix | Method family | Default public RPC | Private/archive node profile | Notes | |---------------|--------------------|------------------------------|-------| | `eth_*` core reads and writes | Supported | Supported | Includes blocks, balances, calls, gas estimation, receipts, logs, and raw transaction broadcast. | | `net_*` | Supported | Supported | Network metadata helpers. | | `web3_*` | Supported | Supported | Client utility methods. | | `eth_subscribe` / `eth_unsubscribe` | Supported over WebSocket | Supported when WebSocket is enabled | Free public WebSocket connections have stricter concurrency limits. | | `txpool_*` | Not enabled by default | Configuration-dependent | Do not require txpool methods for production application flows. | | `debug_*` | Not enabled by default | Full archive/debug profile only | Use only on trusted private infrastructure. | | `personal_*` | Not for public RPC | Configuration-dependent | Do not expose personal APIs on public RPC endpoints. | | `trace_*` | Not available | Not available | `ctmd` does not provide `trace_*`; use debug APIs or an indexer where available. | ## Endpoint Configuration Mainnet endpoints use three TLDs: `c8ntinuum.com` for the default public free RPCs, and `c8ntinuum.io` for alternate public and paid RPCs. `c8ntinuum.link` serves mainnet too, with the same host names as `c8ntinuum.io` (for example `https://public-evm-rpc.c8ntinuum.link`, and the paid `https://evm-rpc.c8ntinuum.link`). Testnet endpoints live on `c8ntinuum.link` only and have `testnet` in the hostname. For the canonical free / alternate / paid matrix and rate limits, see [RPC Providers](/tooling-and-infrastructure/rpc-providers). | Network | Surface | Endpoint | |---------|---------|----------| | Mainnet | Default public HTTP | `https://public-evm-rpc.c8ntinuum.com` | | Mainnet | Default public WebSocket | `wss://public-evm-rpc.c8ntinuum.com/websocket` | | Mainnet | Alternate public HTTP | `https://public-evm-rpc.c8ntinuum.io` | | Mainnet | Alternate public WebSocket | `wss://public-evm-rpc.c8ntinuum.io/websocket` | | Mainnet | Paid HTTP | `https://evm-rpc.c8ntinuum.io` | | Mainnet | Paid WebSocket | `wss://evm-rpc.c8ntinuum.io/websocket` | | Testnet | Public HTTP | `https://public-testnet-evm.c8ntinuum.link` | | Testnet | Public WebSocket | `wss://public-testnet-evm.c8ntinuum.link/websocket` | | Testnet | Paid HTTP | `https://testnet-evm.c8ntinuum.link` | | Testnet | Paid WebSocket | `wss://testnet-evm.c8ntinuum.link/websocket` | Paid endpoints require a valid API key through `X-API-Key` or `?api_key=`. To get one, email [dev@c8ntinuum.com](mailto:dev@c8ntinuum.com); a dedicated self-service dashboard is planned. ## Request policy EVM JSON-RPC HTTP accepts `POST /` with `Content-Type: application/json`. `OPTIONS` is allowed for preflight compatibility. `GET /`, non-JSON `POST /`, and unsupported paths are rejected by the RPC proxy. | Setting | Value | |---------|------:| | `eth_getLogs` block range cap | `10000` blocks | | `eth_getLogs` result cap | `10000` logs | | Node batch request limit | `2000` | | Node batch response max size | `50000000` bytes | | nginx EVM HTTP request body limit | `2m` | ## Example Request ```bash curl -X POST https://public-evm-rpc.c8ntinuum.com \ -H "Content-Type: application/json" \ -d '{ "jsonrpc": "2.0", "method": "eth_blockNumber", "params": [], "id": 1 }' ``` --- # Node Interface Calls URL: https://docs.c8ntinuum.com/rpc-reference/node-interface-calls Use this page when you need concrete node calls for exchange, custody, wallet, or indexer integrations. c8ntinuum exposes Ethereum-compatible JSON-RPC for EVM workflows and CometBFT, REST/LCD, and gRPC surfaces for node health and Cosmos SDK data. ## Endpoint surfaces | Surface | Mainnet endpoint | Best for | |---------|------------------|----------| | EVM JSON-RPC HTTP | `https://public-evm-rpc.c8ntinuum.com` | Blocks, transactions, receipts, balances, logs, broadcasts | | EVM JSON-RPC WebSocket | `wss://public-evm-rpc.c8ntinuum.com/websocket` | New block and log subscriptions | | CometBFT RPC HTTP | `https://public-comet-rpc.c8ntinuum.com` | Node status, consensus block metadata, CometBFT transactions | | REST/LCD | `https://public-comet-grpc-web.c8ntinuum.io` | Cosmos account and transaction queries | For all public endpoint options and rate limits, see [RPC Providers](/tooling-and-infrastructure/rpc-providers). ## EVM JSON-RPC with curl Query the current block height: ```bash curl -X POST https://public-evm-rpc.c8ntinuum.com \ -H "Content-Type: application/json" \ -d '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}' ``` Fetch a block by height. Use a hex quantity such as `0x10d4f`; set the second parameter to `true` when you need full transaction objects: ```bash curl -X POST https://public-evm-rpc.c8ntinuum.com \ -H "Content-Type: application/json" \ -d '{"jsonrpc":"2.0","method":"eth_getBlockByNumber","params":["0x10d4f",true],"id":1}' ``` Fetch transaction details and its execution result: ```bash TX_HASH="0x..." curl -X POST https://public-evm-rpc.c8ntinuum.com \ -H "Content-Type: application/json" \ -d "{\"jsonrpc\":\"2.0\",\"method\":\"eth_getTransactionByHash\",\"params\":[\"$TX_HASH\"],\"id\":1}" curl -X POST https://public-evm-rpc.c8ntinuum.com \ -H "Content-Type: application/json" \ -d "{\"jsonrpc\":\"2.0\",\"method\":\"eth_getTransactionReceipt\",\"params\":[\"$TX_HASH\"],\"id\":2}" ``` Query ERC-20 `Transfer` logs for a bounded range: The documented public EVM profile caps `eth_getLogs` at `10000` blocks and `10000` returned logs per request. ```bash TOKEN="0x..." TRANSFER_TOPIC="0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef" curl -X POST https://public-evm-rpc.c8ntinuum.com \ -H "Content-Type: application/json" \ -d "{ \"jsonrpc\":\"2.0\", \"method\":\"eth_getLogs\", \"params\":[{ \"address\":\"$TOKEN\", \"fromBlock\":\"0x10d00\", \"toBlock\":\"0x10dff\", \"topics\":[\"$TRANSFER_TOPIC\"] }], \"id\":3 }" ``` Broadcast a signed transaction: ```bash RAW_TX="0x..." curl -X POST https://public-evm-rpc.c8ntinuum.com \ -H "Content-Type: application/json" \ -d "{\"jsonrpc\":\"2.0\",\"method\":\"eth_sendRawTransaction\",\"params\":[\"$RAW_TX\"],\"id\":4}" ``` ## JavaScript ```javascript const provider = new JsonRpcProvider("https://public-evm-rpc.c8ntinuum.com"); const height = await provider.getBlockNumber(); const block = await provider.send("eth_getBlockByNumber", [ "0x" + height.toString(16), true, ]); const tx = await provider.getTransaction("0x..."); const receipt = await provider.getTransactionReceipt("0x..."); const fromBlock = Math.max(0, height - 500); const logs = await provider.getLogs({ address: "0xc8Fb80fCc03f699C70ff0CC08C09106288888888", topics: [id("Transfer(address,address,uint256)")], fromBlock, toBlock: height, }); const sent = await provider.broadcastTransaction("0xSignedRawTransaction"); console.log({ height, blockHash: block.hash, txHash: tx?.hash, status: receipt?.status, logCount: logs.length, broadcastHash: sent.hash, }); ``` ## Java ```java Web3j web3j = Web3j.build(new HttpService("https://public-evm-rpc.c8ntinuum.com")); EthBlockNumber blockNumber = web3j.ethBlockNumber().send(); BigInteger height = blockNumber.getBlockNumber(); EthBlock block = web3j .ethGetBlockByNumber(new DefaultBlockParameterNumber(height), true) .send(); EthTransaction tx = web3j.ethGetTransactionByHash("0x...").send(); EthGetTransactionReceipt receipt = web3j.ethGetTransactionReceipt("0x...").send(); EthFilter filter = new EthFilter( new DefaultBlockParameterNumber(height.subtract(BigInteger.valueOf(500))), DefaultBlockParameterName.LATEST, "0xc8Fb80fCc03f699C70ff0CC08C09106288888888"); filter.addSingleTopic("0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"); EthLog logs = web3j.ethGetLogs(filter).send(); EthSendTransaction sent = web3j.ethSendRawTransaction("0xSignedRawTransaction").send(); ``` ## Go ```go package main use alloy::primitives::{address, Bytes, B256}; use alloy::providers::{Provider, ProviderBuilder}; use alloy::rpc::types::{BlockNumberOrTag, Filter}; #[tokio::main] async fn main() -> eyre::Result<()> { let provider = ProviderBuilder::new().connect_http( "https://public-evm-rpc.c8ntinuum.com".parse()?, ); let height = provider.get_block_number().await?; let block = provider .get_block_by_number(BlockNumberOrTag::Number(height)) .full() .await?; let tx_hash: B256 = "0x...".parse()?; let tx = provider.get_transaction_by_hash(tx_hash).await?; let receipt = provider.get_transaction_receipt(tx_hash).await?; let transfer_topic: B256 = "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef" .parse()?; let filter = Filter::new() .address(address!("c8fb80fcc03f699c70ff0cc08c09106288888888")) .event_signature(transfer_topic) .from_block(height.saturating_sub(500)) .to_block(height); let logs = provider.get_logs(&filter).await?; let raw_tx: Bytes = "0xSignedRawTransaction".parse()?; let pending = provider.send_raw_transaction(&raw_tx).await?; println!( "height={height} block={:?} tx={:?} receipt={:?} logs={} sent={:?}", block.map(|b| b.header.hash), tx.map(|t| t.tx_hash()), receipt.map(|r| r.status()), logs.len(), pending.tx_hash(), ); Ok(()) } ``` ## CometBFT RPC Use CometBFT RPC for node status, consensus block metadata, and CometBFT transaction queries. ```bash # Current node status and latest block height curl -s "https://public-comet-rpc.c8ntinuum.com/status" # Block by height curl -s "https://public-comet-rpc.c8ntinuum.com/block?height=123456" # Transaction by CometBFT hash curl -s "https://public-comet-rpc.c8ntinuum.com/tx?hash=0x...&prove=true" # Search indexed transactions when the node profile supports it curl -s --get "https://public-comet-rpc.c8ntinuum.com/tx_search" \ --data-urlencode 'query="tx.height=123456"' ``` ## REST and account queries Use REST/LCD when you need Cosmos SDK account state or Cosmos transaction data. ```bash # Account metadata by c8... address curl -s "https://public-comet-grpc-web.c8ntinuum.io/cosmos/auth/v1beta1/accounts/c8..." # Cosmos transaction by hash: hex CometBFT hash without the 0x prefix curl -s "https://public-comet-grpc-web.c8ntinuum.io/cosmos/tx/v1beta1/txs/" ``` REST/LCD takes the transaction hash without `0x`, while CometBFT `/tx` takes it with `0x`. ## Operational notes - Treat public endpoint limits as provider policy, not protocol limits. - Keep long historical jobs bounded by block range and retryable by cursor. `eth_getLogs` requests should stay within the `10000` block and `10000` log caps. - Credit deposits from receipts and logs, not from pending transaction data. - Use `eth_sendRawTransaction` for offline-signed EVM transactions. - Run an [archive node](/node-ops/archive-data) or indexer infrastructure when you need complete historical state from genesis. --- # RPC Differences URL: https://docs.c8ntinuum.com/rpc-reference/rpc-differences ## Key Differences | Method | Ethereum Behavior | c8ntinuum Behavior | |--------|------------------|-------------------| | `eth_gasPrice` | Dynamic gas price | Returns the latest base fee plus the suggested priority tip (`eth_maxPriorityFeePerGas`), never less than the fee market minimum gas price | | `eth_syncing` | Sync status | Standard sync status | For the base fee alone, read `baseFeePerGas` from `eth_getBlockByNumber("latest", false)` or use `eth_feeHistory`. ## Mining-Related Methods c8ntinuum uses CometBFT proof-of-stake consensus, not proof of work, and `ctmd` does not implement the mining methods. `eth_mining`, `eth_hashrate`, `eth_coinbase`, `eth_getWork`, `eth_submitWork`, and `eth_submitHashrate` return JSON-RPC error `-32601` (method not available) on the public endpoints. ## Transaction Pool `txpool_*` methods are node-configuration dependent. The default public RPC profile uses `api = "eth,net,web3"`, so it does not expose `txpool`. Archive sentries may add `txpool`, and a private full-archive debug node can use `api = "eth,net,web3,debug,txpool,personal"` (see [Archive Data](/node-ops/archive-data)). The local node started by `local_node.sh` also enables `txpool`, `personal`, and `debug`. On a node with compatible txpool support enabled, common methods include: - `txpool_status` — Number of pending and queued transactions - `txpool_content` — Full transaction pool contents - `txpool_inspect` — Summary of pool contents ## Debug Namespace Debug tracing is intended for private full-archive nodes, not the public RPC. `ctmd` does not provide a separate `trace` namespace. On a full archive node with compatible debug APIs enabled, common methods include: - `debug_traceTransaction` — Trace a transaction execution - `debug_traceBlockByNumber` — Trace all transactions in a block - `debug_traceBlockByHash` — Trace by block hash ## WebSocket Support WebSocket connections are available at `wss://public-evm-rpc.c8ntinuum.com/websocket` for subscription-based event streaming: - `eth_subscribe` / `eth_unsubscribe` — Subscribe to new blocks, logs, and pending transactions Free WebSocket connections are limited to `1` per visitor IP. Paid WebSocket connections are limited to `30` per API key. ## Batching and payload limits | Surface | Limit | |---------|------:| | EVM JSON-RPC batch request limit | `2000` | | EVM JSON-RPC batch response max size | `50000000` bytes | | EVM nginx request body limit | `2m` | | CometBFT request batch size | `10` | | CometBFT nginx request body limit | `1m` | | gRPC and REST/LCD nginx request body limit | `1m` | --- # Error Codes URL: https://docs.c8ntinuum.com/rpc-reference/error-codes c8ntinuum uses Ethereum-compatible JSON-RPC error envelopes. Exact `message` text can vary by client, proxy, and execution path, so integrations should branch on error category and transaction receipt status rather than exact strings. ## Standard JSON-RPC errors | Code | Message | Description | |------|---------|-------------| | `-32700` | Parse error | Invalid JSON | | `-32600` | Invalid request | Missing required fields | | `-32601` | Method not found | Method does not exist or is not supported | | `-32602` | Invalid params | Incorrect method parameters | | `-32603` | Internal error | Internal server or proxy error | ## EVM execution errors | Category | Typical code | Typical message pattern | Handling guidance | |----------|--------------|-------------------------|-------------------| | Contract revert | `3` when revert data is present (reason in `message`, ABI-encoded revert in `data`); `-32000` for reverts with no data | `execution reverted: ` or plain `execution reverted` | Decode revert data when available; do not credit failed transactions. Libraries such as ethers surface both as `CALL_EXCEPTION`. | | Out of gas | `-32000` | `out of gas`, `gas required exceeds allowance`, or `ErrOutOfGas` | Re-estimate gas against the same calldata and network. | | Insufficient funds | `-32000` | `insufficient funds` | Check native `CTM` balance for value plus max fee. | | Nonce too low | `-32000` | `nonce too low`, `already known`, or replacement conflict | Refresh pending nonce before rebroadcasting. | | Nonce too high | `-32000` | `nonce too high` | Wait for missing nonce or rebroadcast the earlier transaction. | | Fee too low | `-32000` | `transaction underpriced`, `max fee per gas less than block base fee`, or similar | Use current fee data and respect the minimum gas price in [Gas on c8ntinuum](/developer-essentials/gas). | | Unsupported method | `-32601` | `method not found` | Confirm the namespace is enabled on the selected RPC profile. | | Rate limited | HTTP `429` | Provider-specific body | Back off and retry with jitter; see [RPC Providers](/tooling-and-infrastructure/rpc-providers). | ## Precompile errors Precompile reverts are documented in the [Precompile ABI Reference](/reference/precompile-abi#reverts-and-errors). | Case | Behavior | |------|----------| | Stateful precompile action returns an error | Standard ABI `Error(string)` revert data | | Unknown selector, short calldata, or failed ABI unpack in most stateless precompiles | Plain `execution reverted` | | SDK gas panic or exhausted EVM gas | `ErrOutOfGas` | | ERC20 extension SDK/bank errors | ERC20-style revert strings such as `ERC20: transfer amount exceeds balance` | ## Handling Errors Most Ethereum libraries parse these errors into library-specific exception types. Always inspect transaction receipts for submitted transactions: ```javascript try { await contract.someMethod(); } catch (error) { if (error.code === "CALL_EXCEPTION") { console.log("Reverted:", error.reason); } } ``` For exchange and custody systems, use [Node Interface Calls](/rpc-reference/node-interface-calls) and [Deposit Processing](/guides/exchange-integration/deposit-processing) for receipt-based confirmation behavior. --- # Precompile ABI Reference URL: https://docs.c8ntinuum.com/reference/precompile-abi This reference tracks the `ctmd` node source. That source will be published in a public GitHub repository (repository TBA); the paths on this page are paths inside that repository. The canonical ABI artifacts and Solidity interfaces live beside the precompile implementations under `precompiles/*/`. Most Cosmos-module and extension interfaces (all except ICS02) are also mirrored under `contracts/solidity/precompiles`. ## Address catalog | Address | Precompile | Interface | |---------|------------|-----------| | `0x0000000000000000000000000000000000000100` | P256 / secp256r1 verifier | Raw call only, no Solidity ABI | | `0x0000000000000000000000000000000000000400` | Bech32 | `Bech32I` | | `0x0000000000000000000000000000000000000500` | Ed25519 | `Ed25519I` | | `0x0000000000000000000000000000000000000600` | SP1 Groth16 verifier | `SP1VerifierGroth16I` | | `0x0000000000000000000000000000000000000700` | SP1 Plonk verifier | `SP1VerifierPlonkI` | | `0x0000000000000000000000000000000000000701` | JSON | `JsonI` | | `0x0000000000000000000000000000000000000703` | Schnorr | `SchnorrI` | | `0x0000000000000000000000000000000000000704` | Schnorrkel | `SchnorrkelI` | | `0x0000000000000000000000000000000000000705` | Gnark hash | `GnarkHashI` | | `0x0000000000000000000000000000000000000706` | SHA3 hash | `Sha3HashI` | | `0x0000000000000000000000000000000000000707` | Blake2b hash | `Blake2bHashI` | | `0x0000000000000000000000000000000000000708` | ECVRF | `ECVRFI` | | `0x0000000000000000000000000000000000000709` | FROST | `FrostI` | | `0x0000000000000000000000000000000000000710` | Address table | `AddressTableI` | | `0x0000000000000000000000000000000000000711` | Poseidon hash | `PoseidonI` | | `0x0000000000000000000000000000000000000712` | PQMLDSA | `PQMLDSAI` | | `0x0000000000000000000000000000000000000713` | PQSLHDSA | `PQSLHDSAI` | | `0x0000000000000000000000000000000000000714` | Validator rewards | `ValRewardsI` | | `0x0000000000000000000000000000000000000800` | Staking | `StakingI` | | `0x0000000000000000000000000000000000000801` | Distribution | `DistributionI` | | `0x0000000000000000000000000000000000000802` | ICS20 transfer | `ICS20I` | | `0x0000000000000000000000000000000000000804` | Bank | `IBank` | | `0x0000000000000000000000000000000000000805` | Governance | `IGov` | | `0x0000000000000000000000000000000000000806` | Slashing | `ISlashing` | | `0x0000000000000000000000000000000000000807` | ICS02 client | `ICS02I` | | Token-pair address | ERC20 extension | `IERC20Metadata` | | Token-pair address (mainnet `ctm`: `0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE`) | WERC20 extension | `IWERC20` | `ERC20` and `WERC20` precompile addresses are created from registered token pairs and enabled by the ERC20 keeper; they are not part of the static address table. On mainnet, the only registered token pair is the native `ctm` denom at `0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE`, served by the WERC20 extension (name `c8ntinuum`, symbol `CTM`, 18 decimals). ## Reference package and imports | Surface | Repository location | Notes | |---------|---------------------|-------| | Generated ABI artifacts | `precompiles/*/abi.json` | Canonical ABI for function and event signatures. The Cosmos-module and extension artifacts (bank, bech32, callbacks, distribution, erc20, gov, ics02, ics20, slashing, staking, werc20) are plain ABI arrays. The other precompiles ship Hardhat artifacts with the ABI array under the `abi` field. | | Solidity interfaces | `precompiles/*/*.sol` | Canonical Solidity source interfaces and address constants. | | Mirrored Solidity interfaces | `contracts/solidity/precompiles/*/*.sol` | Consumer-friendly mirror used by the local contracts package and tests. Covers only bank, bech32, callbacks, common, distribution, erc20, gov, ics20, slashing, staking, and werc20. For ICS02, validator rewards, address table, and the stateless crypto and hash precompiles, use the interface under `precompiles//`. | | Local contracts package | `contracts/package.json` | Named `cosmos-evm-contracts`. | `contracts/package.json` does not define `main`, `files`, `exports`, or `types`. Treat `cosmos-evm-contracts` as a local contracts package, not as a documented stable npm ABI package. Use static constants for fixed-address precompiles. For `ERC20` and `WERC20`, use the registered token-pair address. For `P256`, use a raw low-level call because there is no Solidity ABI. State-changing staking, distribution, governance, slashing, and ICS20 methods that take an account argument (delegator, validator, depositor, proposer, voter, or ICS20 `sender`), and validator rewards `depositValidatorRewardsPool`, require that account to equal the immediate caller of the precompile. An EOA calling the precompile directly passes its own address. A contract passes `address(this)` and can act only for itself, as in the example below. Any other account reverts with `msg.sender address ... does not match the requester address ...`. `createValidator` and `editValidator` cannot be called from a contract at all (EIP-7702 delegated accounts excepted) and revert with `this method can only be called directly to the precompile, not from a smart contract`. ```solidity contract Delegator { function delegateTo(string calldata validatorAddress) external payable returns (bool) { return staking.STAKING_CONTRACT.delegate( address(this), validatorAddress, msg.value ); } } ``` ```ts export const STAKING_ADDRESS = "0x0000000000000000000000000000000000000800"; export const stakingAbi = stakingArtifact as Abi; ``` No generated TypeScript binding package is committed today. Hardhat users can generate TypeChain bindings in their own workspace; viem users can pass the ABI array directly. ## Core ABI catalog ### Address table | Signature | Mutability | Returns | |-----------|------------|---------| | `addressExists(address addr)` | `view` | `(bool)` | | `compress(address addr)` | `view` | `(bytes)` | | `decompress(bytes buf,uint256 offset)` | `view` | `(address,uint256)` | | `lookup(address addr)` | `view` | `(uint256)` | | `lookupIndex(uint256 index)` | `view` | `(address)` | | `register(address addr)` | `nonpayable` | `(uint256)` | | `size()` | `view` | `(uint256)` | Event: `AddressRegistered(indexed address addr,indexed uint256 idx)`. ### Bank | Signature | Mutability | Returns | |-----------|------------|---------| | `balances(address account)` | `view` | `(tuple[](address contractAddress,uint256 amount) balances)` | | `supplyOf(address erc20Address)` | `view` | `(uint256 totalSupply)` | | `totalSupply()` | `view` | `(tuple[](address contractAddress,uint256 amount) totalSupply)` | Events: none. ### Bech32 | Signature | Mutability | Returns | |-----------|------------|---------| | `bech32ToHex(string bech32Address)` | `nonpayable` | `(address addr)` | | `hexToBech32(address addr,string prefix)` | `nonpayable` | `(string bech32Address)` | Events: none. ### Distribution | Signature | Mutability | Returns | |-----------|------------|---------| | `claimRewards(address delegatorAddress,uint32 maxRetrieve)` | `nonpayable` | `(bool success)` | | `communityPool()` | `view` | `(DecCoin[] coins)` | | `delegationRewards(address delegatorAddress,string validatorAddress)` | `view` | `(DecCoin[] rewards)` | | `delegationTotalRewards(address delegatorAddress)` | `view` | `(tuple[](string validatorAddress,DecCoin[] reward) rewards, DecCoin[] total)` | | `delegatorValidators(address delegatorAddress)` | `view` | `(string[] validators)` | | `delegatorWithdrawAddress(address delegatorAddress)` | `view` | `(string withdrawAddress)` | | `depositValidatorRewardsPool(address depositor,string validatorAddress,Coin[] amount)` | `nonpayable` | `(bool success)` | | `fundCommunityPool(address depositor,Coin[] amount)` | `nonpayable` | `(bool success)` | | `setWithdrawAddress(address delegatorAddress,string withdrawerAddress)` | `nonpayable` | `(bool success)` | | `validatorCommission(string validatorAddress)` | `view` | `(DecCoin[] commission)` | | `validatorDistributionInfo(string validatorAddress)` | `view` | `(tuple(string operatorAddress,DecCoin[] selfBondRewards,DecCoin[] commission) distributionInfo)` | | `validatorOutstandingRewards(string validatorAddress)` | `view` | `(DecCoin[] rewards)` | | `validatorSlashes(string validatorAddress,uint64 startingHeight,uint64 endingHeight,PageRequest pageRequest)` | `view` | `(tuple[](uint64 validatorPeriod,Dec fraction) slashes, PageResponse pageResponse)` | | `withdrawDelegatorRewards(address delegatorAddress,string validatorAddress)` | `nonpayable` | `(Coin[] amount)` | | `withdrawValidatorCommission(string validatorAddress)` | `nonpayable` | `(Coin[] amount)` | Events include `ClaimRewards`, `DepositValidatorRewardsPool`, `FundCommunityPool`, `SetWithdrawerAddress`, `WithdrawDelegatorReward`, and `WithdrawValidatorCommission`. On mainnet, x/distribution currently accrues nothing: inflation is `0`, x/feeburn burns all transaction fees, and community tax and proposer rewards are `0`. Reward and commission queries and withdrawals therefore return empty amounts. Validator compensation comes from [validator rewards](/modules/custom/validator-rewards). ### ECVRF | Signature | Mutability | Returns | |-----------|------------|---------| | `ecvrfVerify(string suite,bytes pubKey,bytes alpha,bytes pi)` | `pure` | `(bool ok,bytes beta)` | Supported suites are `P256_SHA256_TAI` and `SECP256K1_SHA256_TAI` (case-insensitive). `pubKey` is a SEC1 public key, 33 bytes compressed or 65 bytes uncompressed. An unsupported suite, a malformed key, or a failed proof returns `ok = false` with empty `beta`. An unknown selector, undecodable input, a suite longer than 32 bytes, or `alpha` longer than 65,536 bytes fails the call. Events: none. ### Governance | Signature | Mutability | Returns | |-----------|------------|---------| | `cancelProposal(address proposer,uint64 proposalId)` | `nonpayable` | `(bool success)` | | `deposit(address depositor,uint64 proposalId,Coin[] amount)` | `nonpayable` | `(bool success)` | | `getConstitution()` | `view` | `(string constitution)` | | `getDeposit(uint64 proposalId,address depositor)` | `view` | `(Deposit deposit)` | | `getDeposits(uint64 proposalId,PageRequest pagination)` | `view` | `(Deposit[] deposits, PageResponse pageResponse)` | | `getParams()` | `view` | `(Params params)` | | `getProposal(uint64 proposalId)` | `view` | `(Proposal proposal)` | | `getProposals(uint32 proposalStatus,address voter,address depositor,PageRequest pagination)` | `view` | `(Proposal[] proposals, PageResponse pageResponse)` | | `getTallyResult(uint64 proposalId)` | `view` | `(TallyResult tallyResult)` | | `getVote(uint64 proposalId,address voter)` | `view` | `(Vote vote)` | | `getVotes(uint64 proposalId,PageRequest pagination)` | `view` | `(Vote[] votes, PageResponse pageResponse)` | | `submitProposal(address proposer,bytes jsonProposal,Coin[] deposit)` | `nonpayable` | `(uint64 proposalId)` | | `vote(address voter,uint64 proposalId,uint8 option,string metadata)` | `nonpayable` | `(bool success)` | | `voteWeighted(address voter,uint64 proposalId,WeightedVoteOption[] options,string metadata)` | `nonpayable` | `(bool success)` | Events include `CancelProposal`, `Deposit`, `SubmitProposal`, `Vote`, and `VoteWeighted`. ### ICS02 and ICS20 | Precompile | Signature | Mutability | Returns | |------------|-----------|------------|---------| | ICS02 | `getClientState(string clientId)` | `view` | `(bytes)` | | ICS02 | `updateClient(string clientId,bytes updateMsg)` | `nonpayable` | `(uint8)` | | ICS02 | `verifyMembership(string clientId,bytes proof,Height proofHeight,bytes[] path,bytes value)` | `nonpayable` | `(uint256)` | | ICS02 | `verifyNonMembership(string clientId,bytes proof,Height proofHeight,bytes[] path)` | `nonpayable` | `(uint256)` | | ICS20 | `denom(string hash)` | `view` | `(Denom denom)` | | ICS20 | `denomHash(string trace)` | `view` | `(string hash)` | | ICS20 | `denoms(PageRequest pageRequest)` | `view` | `(Denom[] denoms, PageResponse pageResponse)` | | ICS20 | `transfer(string sourcePort,string sourceChannel,string denom,uint256 amount,address sender,string receiver,Height timeoutHeight,uint64 timeoutTimestamp,string memo)` | `nonpayable` | `(uint64 nextSequence)` | ICS20 emits `IBCTransfer(indexed address sender,indexed string receiver,string sourcePort,string sourceChannel,string denom,uint256 amount,string memo)`. `transfer` reverts unless `sender` is the immediate caller of the precompile. A contract passes `address(this)` and transfers tokens it holds. ### Slashing | Signature | Mutability | Returns | |-----------|------------|---------| | `getParams()` | `view` | `(Params params)` | | `getSigningInfo(address consAddress)` | `view` | `(SigningInfo signingInfo)` | | `getSigningInfos(PageRequest pagination)` | `view` | `(SigningInfo[] signingInfos, PageResponse pageResponse)` | | `unjail(address validatorAddress)` | `nonpayable` | `(bool success)` | Event: `ValidatorUnjailed(indexed address validator)`. ### Staking | Signature | Mutability | Returns | |-----------|------------|---------| | `cancelUnbondingDelegation(address delegatorAddress,string validatorAddress,uint256 amount,uint256 creationHeight)` | `nonpayable` | `(bool success)` | | `createValidator(Description description,CommissionRates commissionRates,uint256 minSelfDelegation,address validatorAddress,string pubkey,uint256 value)` | `nonpayable` | `(bool success)` | | `delegate(address delegatorAddress,string validatorAddress,uint256 amount)` | `nonpayable` | `(bool success)` | | `delegation(address delegatorAddress,string validatorAddress)` | `view` | `(uint256 shares, Coin balance)` | | `editValidator(Description description,address validatorAddress,int256 commissionRate,int256 minSelfDelegation)` | `nonpayable` | `(bool success)` | | `redelegate(address delegatorAddress,string validatorSrcAddress,string validatorDstAddress,uint256 amount)` | `nonpayable` | `(int64 completionTime)` | | `redelegation(address delegatorAddress,string srcValidatorAddress,string dstValidatorAddress)` | `view` | `(Redelegation redelegation)` | | `redelegations(address delegatorAddress,string srcValidatorAddress,string dstValidatorAddress,PageRequest pageRequest)` | `view` | `(RedelegationResponse[] response, PageResponse pageResponse)` | | `unbondingDelegation(address delegatorAddress,string validatorAddress)` | `view` | `(UnbondingDelegation unbondingDelegation)` | | `undelegate(address delegatorAddress,string validatorAddress,uint256 amount)` | `nonpayable` | `(int64 completionTime)` | | `validator(address validatorAddress)` | `view` | `(Validator validator)` | | `validators(string status,PageRequest pageRequest)` | `view` | `(Validator[] validators, PageResponse pageResponse)` | Events include `CreateValidator`, `Delegate`, `EditValidator`, `Redelegate`, `Unbond`, and `CancelUnbondingDelegation`. ### Validator rewards | Signature | Mutability | Returns | |-----------|------------|---------| | `claimRewards(address validatorOperatorAddress,uint64 epoch)` | `nonpayable` | `(bool success)` | | `delegationRewards(address delegatorAddress,uint64 epoch)` | `view` | `(Coin rewards)` | | `depositValidatorRewardsPool(address depositor,Coin amount)` | `nonpayable` | `(bool success)` | | `rewardsPool()` | `view` | `(Coin rewards)` | | `validatorOutstandingRewards(uint64 epoch,string validatorAddress)` | `view` | `(Coin rewards)` | Despite its parameter name, `delegationRewards` takes a validator operator's account address (the `0x...` account that owns the `c8valoper...` address), not a delegator's. It returns that validator's own outstanding reward for the epoch, the same value as `validatorOutstandingRewards`, and fails with `target address must be a validator operator` for any other address. x/valrewards pays validators only, not delegators. ### ERC20 and WERC20 extensions | Extension | Signature | Mutability | Returns | |-----------|-----------|------------|---------| | ERC20/WERC20 | `allowance(address owner,address spender)` | `view` | `(uint256)` | | ERC20/WERC20 | `approve(address spender,uint256 amount)` | `nonpayable` | `(bool)` | | ERC20/WERC20 | `balanceOf(address account)` | `view` | `(uint256)` | | ERC20/WERC20 | `decimals()` | `view` | `(uint8)` | | WERC20 | `deposit()` | `payable` | none | | ERC20/WERC20 | `name()` | `view` | `(string)` | | ERC20/WERC20 | `symbol()` | `view` | `(string)` | | ERC20/WERC20 | `totalSupply()` | `view` | `(uint256)` | | ERC20/WERC20 | `transfer(address to,uint256 amount)` | `nonpayable` | `(bool)` | | ERC20/WERC20 | `transferFrom(address from,address to,uint256 amount)` | `nonpayable` | `(bool)` | | WERC20 | `withdraw(uint256 wad)` | `nonpayable` | none | ERC20 emits `Approval` and `Transfer`. WERC20 also emits `Deposit` and `Withdrawal`. WERC20 exposes the native CTM balance through an ERC-20 interface. `deposit()` and `withdraw()` exist only for WETH interface compatibility and do not change balances: `deposit()` sends `msg.value` straight back to the caller and emits `Deposit`, and `withdraw(wad)` reverts if the caller's spendable balance is below `wad`, otherwise it only emits `Withdrawal`. ## Reverts and errors The checked ABI artifacts do not define custom Solidity `error` entries. | Case | Behavior | |------|----------| | Stateful precompile action returns an error | Standard ABI `Error(string)` revert data | | Unknown selector, short calldata, or failed ABI unpack in most stateless precompiles | Plain `execution reverted` | | Read-only call to a state-changing method | EVM write-protection error | | SDK gas panic or exhausted EVM gas | `ErrOutOfGas` | | Verification failure in signature/hash helpers | Usually ABI-encoded `false` or empty bytes, depending on interface | ERC20 maps some SDK/bank errors to ERC20-style revert strings such as `ERC20: transfer amount exceeds balance`, `ERC20: insufficient allowance`, and `ERC20: decreased allowance below zero`. ## Gas schedule Variable-length stateless precompiles use: ```text base gas + ceil(input bytes / 32) * word gas ``` Stateful Cosmos module precompiles use a minimum formula before SDK execution: ```text 2000 + 30 * input bytes # transactions 1000 + 3 * input bytes # queries ``` Actual SDK execution is also metered inside the precompile call. | Surface | Notes | |---------|-------| | SP1 Groth16 `verifyProof` | `300000 + ceil((publicValuesBytes + proofBytes) / 32) * 16` | | SP1 Plonk `verifyProof` | `800000 + ceil((publicValuesBytes + proofBytes) / 32) * 16` | | Gnark hash | `6000 + ceil(input bytes / 32) * 30` | | SHA3 hash | `3000 + ceil(input bytes / 32) * 30` | | Blake2b hash | `3000 + ceil(input bytes / 32) * 30` | | Poseidon hash | `3000` flat | | ECVRF `ecvrfVerify` | `50000 + ceil(input bytes / 32) * 30` | | Stateful module precompiles | Use the shared stateful minimum formula, then meter SDK execution | | P256 | Raw-call precompile; validate packed input shape in caller code | ## Versioning rules Use the repository tag as the compatibility boundary until a separate ABI package is formalized. | Change | Versioning expectation | |--------|------------------------| | Address changes, removed or changed signatures/events, changed revert behavior, or changed gas schedules | Breaking release | | New static precompile, new dynamic precompile family, or additive function/event entries | Minor release | | Documentation-only corrections or regenerated artifacts with no ABI/address/gas behavior change | Patch release | --- # Guides URL: https://docs.c8ntinuum.com/guides Start with the guide that matches the task you are trying to complete. ## Add c8ntinuum to Wallet Add c8ntinuum to MetaMask or another EVM-compatible wallet. MetaMask, Rabby, Coinbase Wallet, Ledger, mobile setup, and wrapped CTM import. Manual testnet wallet configuration and faucet status. ## Move Tokens with IBC Send ATOM and CTM between Cosmos Hub and c8ntinuum with Keplr or the command line. ## Exchange and Custody Integration Node interfaces, address generation, deposit processing, offline signing, and wallet workflows. Run, verify, monitor, and upgrade a node for deposits, withdrawals, and backfills with `deploy.sh`. Downloadable, compile-tested JavaScript and Java samples behind the integration snippets. Derive `0x` and `c8` deposit addresses offline and validate them. Scan for native CTM, ERC-20, and Cosmos bank deposits and credit them idempotently. Build withdrawals online, sign offline, and broadcast with `eth_sendRawTransaction`. ## Deploy a Contract Create, compile, and deploy a contract with `forge`. Configure the c8ntinuum network in Hardhat 2 and deploy with a script. Compile and deploy from the Remix IDE in your browser through MetaMask. ## Verify a Contract Verify contracts on CTMScan with `forge verify-contract`. Verify contracts on CTMScan with the Hardhat verify plugin. ## Run a Node Operator-oriented runbooks for full nodes, validators, state sync, upgrades, and recovery. --- # Wallet Setup URL: https://docs.c8ntinuum.com/guides/wallet-setup Use these guides to add c8ntinuum to an EVM wallet, understand wallet compatibility, and find the account and token details that wallet UIs need. Step-by-step setup for MetaMask, Rabby, Coinbase Wallet, Ledger Nano (S Plus / X) through an EVM wallet, mobile wallets, and token imports. Wallet setup using the canonical testnet network information. Chain ID 8888, RPC endpoints, explorer, faucet status, and verification status. Supported wallets, WalletConnect metadata, wrapped CTM, address formats, and common wallet errors. EVM `0x`, Cosmos `c8`, validator `c8valoper`, and key derivation details. Native CTM, base denomination, ERC-20 compatibility, and wrapped CTM. ## Mainnet quick setup | Field | Value | |-------|-------| | **Network Name** | `c8ntinuum` | | **RPC URL** | `https://public-evm-rpc.c8ntinuum.com` | | **Chain ID** | `8` / `0x8` | | **Currency Symbol** | `CTM` | | **Block Explorer** | `https://ctmscan.io` | Follow [Add c8ntinuum Mainnet Beta to Wallet](/guides/wallet-setup/mainnet) for the full setup flow, including MetaMask mobile, Ledger, dapp network prompts, and token imports. For testnet, use [Network Information - Testnet](/developer-essentials/network-information/testnet) as the source of truth and [Add c8ntinuum Testnet to Wallet](/guides/wallet-setup/testnets) for the wallet request shape. ## Verify connection - Chain ID should display `8` or `0x8`. - Native currency should show `CTM`. - Block explorer links should open CTMScan. - A JSON-RPC `eth_chainId` request should return `0x8`. --- # Add c8ntinuum Mainnet Beta to Wallet URL: https://docs.c8ntinuum.com/guides/wallet-setup/mainnet Use this guide to add c8ntinuum mainnet to an EVM wallet, connect from mobile, import wrapped CTM, and confirm the wallet is on the correct chain. The canonical mainnet values live in [Network Information - Mainnet Beta](/developer-essentials/network-information/mainnet). For testnet values, use [Network Information - Testnet](/developer-essentials/network-information/testnet). ## Network details | Field | Value | | --- | --- | | **Network Name** | `c8ntinuum` | | **RPC URL** | `https://public-evm-rpc.c8ntinuum.com` | | **Chain ID** | `8` / `0x8` | | **Currency Symbol** | `CTM` | | **Block Explorer** | `https://ctmscan.io` | ## MetaMask browser 1. Open MetaMask and click the network dropdown. 2. Click **Add a custom network**. 3. Enter the values from the table above. 4. Click **Save** and switch to c8ntinuum. ## MetaMask mobile 1. Open MetaMask mobile. 2. Tap the network selector at the top of the wallet. 3. Tap **Add a custom network**. 4. Enter the c8ntinuum mainnet values from the table above. 5. Save the network, then switch to c8ntinuum before approving dapp connections. If a dapp opens MetaMask mobile on another network, switch to c8ntinuum in the wallet and reconnect the dapp. ## Rabby and Coinbase Wallet Rabby, Coinbase Wallet, and other EVM wallets can use the same network details. If the wallet asks for a decimal or hex chain ID, use `8` or `0x8` respectively. ## Ledger Nano hardware wallets Ledger Nano S Plus and Nano X are supported through MetaMask, Rabby, or another EVM wallet: 1. Unlock the Ledger Nano and open the Ledger Ethereum app. 2. Connect the Nano to your EVM wallet over USB (Nano S Plus, Nano X) or Bluetooth (Nano X). 3. Select the Ethereum-compatible account derived with the standard Ethereum path. 4. Switch the connected wallet to c8ntinuum before signing. If the wallet shows an unexpected address, confirm the derivation path and account index in the connected EVM wallet. c8ntinuum uses Ethereum-compatible account derivation; see [Accounts](/core-concepts/accounts). ## Add c8ntinuum from a dapp Dapps can request network addition with EIP-3085 `wallet_addEthereumChain`: ```javascript await window.ethereum.request({ method: "wallet_addEthereumChain", params: [ { chainId: "0x8", chainName: "c8ntinuum", nativeCurrency: { name: "CTM", symbol: "CTM", decimals: 18, }, rpcUrls: ["https://public-evm-rpc.c8ntinuum.com"], blockExplorerUrls: ["https://ctmscan.io"], }, ], }); ``` c8ntinuum mainnet is also listed on [Chainlist](https://chainlist.org/chain/8), which can add the network to a wallet in one click. Chainlist lists several RPC URLs for chain 8, including third-party and legacy ones, such as `https://rpc.octano.dev` from the network that used chain ID 8 before c8ntinuum. The chain registry entry behind Chainlist carries a reused-chain-ID flag for the same reason, and wallets may show a warning about it. Before you approve, check that the chain ID is `8` and the currency is `CTM`. After you add the network, check its RPC URL in the wallet and change it to `https://public-evm-rpc.c8ntinuum.com` if it is different. ## Import wrapped CTM c8ntinuum's wrapped native token is the WETH9-compatible wrapped CTM contract: ```text 0xc8Fb80fCc03f699C70ff0CC08C09106288888888 ``` On c8ntinuum this address is wrapped CTM (`WCTM`). On Ethereum and BNB Chain the same address is the CTM token, a different contract. Native CTM on c8ntinuum needs no token import, so check that the wallet is on c8ntinuum before you use this address. To import it: 1. Switch the wallet to c8ntinuum. 2. Open the wallet's token import flow. 3. Paste the WETH9 address above. 4. Let the wallet auto-detect token metadata, then confirm the import. For other ERC-20 tokens, import the token contract address from the project or CTMScan. Do not use a token address from another chain unless the token publisher explicitly says it is deployed at the same address on c8ntinuum. ## Confirm it worked - The selected wallet network should be c8ntinuum. - The selected chain ID should be `8` or `0x8`. - Native balances should display as `CTM`. - Account and transaction links should open CTMScan. - A JSON-RPC `eth_chainId` request should return `0x8`: ```bash curl -X POST https://public-evm-rpc.c8ntinuum.com \ -H "Content-Type: application/json" \ -d '{"jsonrpc":"2.0","method":"eth_chainId","params":[],"id":1}' ``` ## Troubleshooting | Issue | Fix | |-------|-----| | Wallet rejects the network | Confirm the chain ID is `8` / `0x8` and the RPC URL is `https://public-evm-rpc.c8ntinuum.com`. | | Transaction fails before signing | Make sure the account has native `CTM` for gas. | | Token does not appear | Import the token contract address manually and confirm the address on CTMScan. | | Mobile wallet opens the wrong chain | Switch networks inside the wallet app and reconnect the dapp. | | Ledger Nano shows the wrong account | Reconnect the Nano S Plus or Nano X with the Ledger Ethereum app and the expected Ethereum account path. | --- # Add c8ntinuum Testnet to Wallet URL: https://docs.c8ntinuum.com/guides/wallet-setup/testnets Use these values when a wallet asks for manual c8ntinuum testnet configuration. The canonical testnet network source is [Network Information - Testnet](/developer-essentials/network-information/testnet). ## Network details | Field | Value | | --- | --- | | **Network Name** | `c8ntinuum testnet` | | **RPC URL** | `https://public-testnet-evm.c8ntinuum.link` | | **Chain ID** | `8888` / `0x22b8` | | **Currency Symbol** | `CTM` | | **Block Explorer** | `https://testnet.ctmscan.io` | ## MetaMask request ```javascript await window.ethereum.request({ method: "wallet_addEthereumChain", params: [ { chainId: "0x22b8", chainName: "c8ntinuum testnet", nativeCurrency: { name: "CTM", symbol: "CTM", decimals: 18, }, rpcUrls: ["https://public-testnet-evm.c8ntinuum.link"], blockExplorerUrls: ["https://testnet.ctmscan.io"], }, ], }); ``` Rabby, Coinbase Wallet, and other EVM wallets can use the same values. If the wallet asks for a decimal or hex chain ID, use `8888` or `0x22b8` respectively. ## Faucet The c8ntinuum testnet faucet is hosted at [testnet-faucet.c8ntinuum.io](https://testnet-faucet.c8ntinuum.io/) and runs [PoWFaucet](https://github.com/pk910/PoWFaucet). | Item | Value | | --- | --- | | Faucet URL | [testnet-faucet.c8ntinuum.io](https://testnet-faucet.c8ntinuum.io/) | | Software | [PoWFaucet](https://github.com/pk910/PoWFaucet) | | Accepted address format | `0x... EVM addresses` | | Authentication, request amount, and cooldown | Surfaced live by the PoWFaucet UI per the operator's deployment configuration | | Failure messages | Surfaced inline by the PoWFaucet UI for unsupported addresses, active cooldowns, empty pool, and wrong-network requests | For ecosystem support and additional channels, see [Official Links](/official-links). --- # Move ATOM and CTM with IBC URL: https://docs.c8ntinuum.com/guides/ibc-transfers c8ntinuum mainnet (`c8ntinuum_8-1`) has an IBC transfer channel with **Cosmos Hub** (`cosmoshub-4`). This guide covers all four directions: | Transfer | Fee paid in | |----------|-------------| | [ATOM: Cosmos Hub to c8ntinuum](#atom-cosmos-hub-to-c8ntinuum) | ATOM, on Cosmos Hub | | [ATOM: c8ntinuum to Cosmos Hub](#atom-c8ntinuum-to-cosmos-hub) | CTM, on c8ntinuum | | [CTM: c8ntinuum to Cosmos Hub](#ctm-c8ntinuum-to-cosmos-hub) | CTM, on c8ntinuum | | [CTM: Cosmos Hub to c8ntinuum](#ctm-cosmos-hub-to-c8ntinuum) | ATOM, on Cosmos Hub | A relayer delivers every transfer automatically; you don't need to run anything. Transfers usually arrive in **10 to 60 seconds**. ## Quick reference | | Cosmos Hub | c8ntinuum | |---|------------|-----------| | Chain ID | `cosmoshub-4` | `c8ntinuum_8-1` (EVM chain ID `8`) | | IBC channel to the other chain | `channel-1942` (port `transfer`) | `channel-0` (port `transfer`) | | Address format | `cosmos1...` | `c81...` (the same account also has a `0x...` form) | | Key path | `m/44'/118'/0'/0/0` (coin type 118) | `m/44'/60'/0'/0/0` (coin type 60, Ethereum-style) | | Fee token | ATOM (`uatom`) | CTM (`ctm`) | | Typical fee for one IBC transfer | about 0.005 ATOM | about 0.07 to 0.09 CTM | | Explorer | [Mintscan](https://www.mintscan.io/cosmos) | EVM side: [ctmscan.io](https://ctmscan.io). Cosmos side, with IBC balances: [cosmos.ctmscan.io](https://cosmos.ctmscan.io/) | | Public RPC | your wallet's default | `https://public-comet-rpc.c8ntinuum.com` | | Public REST | your wallet's default | `https://public-comet-grpc-web.c8ntinuum.com` | How each token appears on the other chain: | Token | Native on | Decimals | On the other chain | |-------|-----------|----------|--------------------| | ATOM | Cosmos Hub (`uatom`) | 6 | On c8ntinuum: `ibc/27394FB092D2ECCD56123C74F36E4C1F926001CEADA9CA97EA622B25F41E5EB2`, also the ERC-20 [`0xf36e4C1F926001CEaDa9cA97ea622B25f41e5eB2`](https://ctmscan.io/token/0xf36e4C1F926001CEaDa9cA97ea622B25f41e5eB2) (symbol `ATOM`, 6 decimals) | | CTM | c8ntinuum (`ctm`) | 18 | On Cosmos Hub: `ibc/4C7E1DDF19C2BEFA75F0A98901A5CC9410A1E4FFB983819322583153DF91A930` (symbol `CTM`) | Units: 1 ATOM is `1000000uatom`. 1 CTM is `1000000000000000000ctm` (18 zeros). ## Links | What | Link | |------|------| | Add c8ntinuum to Keplr in one click | [cosmos.ctmscan.io/wallet/suggest](https://cosmos.ctmscan.io/wallet/suggest) | | Cosmos explorer: accounts with all balances, IBC transfers | [cosmos.ctmscan.io](https://cosmos.ctmscan.io/) | | Your account on the Cosmos explorer | `https://cosmos.ctmscan.io/account/` | | A c8ntinuum transaction on the Cosmos explorer | `https://cosmos.ctmscan.io/tx/` | | The IBC connection to Cosmos Hub | [connection-0](https://cosmos.ctmscan.io/ibc/connection/connection-0) | | EVM explorer: EVM transactions, contracts, ERC-20 tokens | [ctmscan.io](https://ctmscan.io) | | ATOM ERC-20 token on CTMScan | [ATOM token](https://ctmscan.io/token/0xf36e4C1F926001CEaDa9cA97ea622B25f41e5eB2) | | Read an ATOM balance from the contract | [Read contract](https://ctmscan.io/address/0xf36e4C1F926001CEaDa9cA97ea622B25f41e5eB2?tab=read_contract) | | Cosmos Hub explorer | [Mintscan](https://www.mintscan.io/cosmos) | CTMScan ([ctmscan.io](https://ctmscan.io)) is the main c8ntinuum explorer, for EVM transactions, contracts, and ERC-20 tokens. It indexes the EVM side of the chain only, so it doesn't show IBC transfers or tokens received over IBC. For those, use the Cosmos explorer at [cosmos.ctmscan.io](https://cosmos.ctmscan.io/), which shows the Cosmos SDK side: Cosmos transactions, all bank balances of a `c8...` address, staking, governance, and IBC. See [Block Explorers](/tooling-and-infrastructure/block-explorers#cosmos-explorer). ## Before you start **You have two addresses, one on each chain.** The same recovery phrase gives a `cosmos1...` address on Cosmos Hub and a `c81...` address on c8ntinuum. They come from different key paths, so they are different accounts. Always send to the address of the **destination** chain. **Your c8ntinuum account also has a `0x...` form.** `c81...` and `0x...` are the same account on c8ntinuum: MetaMask shows the `0x` form, Keplr the `c81` form. For IBC, use the `c81...` form. See [Address formats and conversion](/tooling-and-infrastructure/wallets#address-formats-and-conversion). **You pay fees on the chain you send from.** - Sending from Cosmos Hub: keep at least 0.01 ATOM on your `cosmos1...` address. - Sending from c8ntinuum: keep at least 0.2 CTM on your `c81...` address, **also when you send ATOM**. Fees on c8ntinuum are always paid in CTM. - The receiving side costs you nothing; the relayer pays it. **Use only the channels on this page.** ATOM that reaches c8ntinuum by any other path is a different token and can't be sent back through this route. **Don't send straight from or to an exchange.** Most exchanges can't send to, or credit deposits from, a custom IBC channel. Withdraw ATOM to your own `cosmos1...` address first and transfer it from there. Send ATOM back to your own `cosmos1...` address before depositing it on an exchange. Never send CTM on Cosmos Hub (`ibc/4C7E...`) to an exchange. **Try a small amount first,** for example 0.01 ATOM or 1 CTM. ## Set up Keplr You need the [Keplr](https://www.keplr.app/get) browser extension on a desktop browser. Create a wallet or import your recovery phrase. ### Add c8ntinuum to Keplr c8ntinuum isn't in Keplr's built-in chain list yet, so you add it once. 1. Unlock Keplr. 2. Open [cosmos.ctmscan.io/wallet/suggest](https://cosmos.ctmscan.io/wallet/suggest), with the **Keplr** tab selected. 3. Click **Add c8ntinuum to Keplr**. 4. Keplr asks you to add **c8ntinuum**. Check that the chain ID is `c8ntinuum_8-1` and approve. If Keplr says the chain already exists, it was added before. If the page doesn't work for you, add the chain from the browser console instead. Open any web page in the same browser, open the developer console, paste the code below and press Enter. Then approve in Keplr. ```javascript await window.keplr.experimentalSuggestChain({ chainId: "c8ntinuum_8-1", chainName: "c8ntinuum", rpc: "https://public-comet-rpc.c8ntinuum.com", rest: "https://public-comet-grpc-web.c8ntinuum.com", bip44: { coinType: 60 }, bech32Config: { bech32PrefixAccAddr: "c8", bech32PrefixAccPub: "c8pub", bech32PrefixValAddr: "c8valoper", bech32PrefixValPub: "c8valoperpub", bech32PrefixConsAddr: "c8valcons", bech32PrefixConsPub: "c8valconspub", }, currencies: [{ coinDenom: "CTM", coinMinimalDenom: "ctm", coinDecimals: 18 }], feeCurrencies: [ { coinDenom: "CTM", coinMinimalDenom: "ctm", coinDecimals: 18, gasPriceStep: { low: 222000000000, average: 444000000000, high: 444000000000 }, }, ], stakeCurrency: { coinDenom: "CTM", coinMinimalDenom: "ctm", coinDecimals: 18 }, features: ["eth-address-gen", "eth-key-sign", "eth-secp256k1-cosmos"], }); ``` What the less obvious settings do: - `coinType: 60` and `eth-address-gen` make Keplr derive the Ethereum-style c8ntinuum address, the same one MetaMask shows for the same phrase. - `eth-key-sign` and `eth-secp256k1-cosmos` make Keplr sign with the key type c8ntinuum expects. Without them, transactions are rejected. - Gas prices are in `ctm` per unit of gas. The chain's minimum is `222000000000`; keep the **Average** fee option. ### Find your two addresses In Keplr, select **Cosmos Hub** and copy its address (`cosmos1...`). Then select **c8ntinuum** and copy its address (`c81...`). To see everything your c8ntinuum account holds, including ATOM, open `https://cosmos.ctmscan.io/account/`, or search the address on [cosmos.ctmscan.io](https://cosmos.ctmscan.io/). Balances are under **Assets**. ### Turn on manual IBC transfers In Keplr, open **Settings → Advanced** and turn on **Manual IBC Transfer**. You add each channel once; Keplr remembers it. ### Ledger Cosmos Hub uses the Ledger **Cosmos** app. c8ntinuum uses Ethereum-style keys, which on a Ledger means the **Ethereum** app. Send a small test amount before relying on a Ledger account on c8ntinuum. ## ATOM: Cosmos Hub to c8ntinuum You need ATOM on your `cosmos1...` address, plus about 0.005 ATOM for the fee. The first time, add the channel: select **Cosmos Hub**, open **IBC Transfer**, choose **New IBC Transfer Channel**, pick **c8ntinuum** and enter channel ID **`channel-1942`**. Each transfer: 1. Select **Cosmos Hub**, open **IBC Transfer**, choose **c8ntinuum (channel-1942)**. 2. Recipient: your **`c81...`** address. 3. Token: **ATOM**. Enter the amount and leave enough ATOM for the fee. 4. Keep the **Average** fee and approve. 5. After 10 to 60 seconds, select **c8ntinuum** in Keplr. ATOM shows in your balance. It is also on the Cosmos explorer under **Assets** of your account. Labels can differ slightly between Keplr versions. What matters is the pair: from Cosmos Hub, channel **`channel-1942`**, to c8ntinuum. ## ATOM: c8ntinuum to Cosmos Hub You need ATOM on your `c81...` address, plus about 0.1 CTM for the fee. The first time, add the channel: select **c8ntinuum**, open **IBC Transfer**, choose **New IBC Transfer Channel**, pick **Cosmos Hub** and enter channel ID **`channel-0`**. Each transfer: 1. Select **c8ntinuum**, open **IBC Transfer**, choose **Cosmos Hub (channel-0)**. 2. Recipient: your **`cosmos1...`** address. 3. Token: **ATOM**. Enter the amount. 4. The fee is in CTM. Keep **Average** and approve. 5. After 10 to 60 seconds, ATOM is back on Cosmos Hub as normal ATOM (`uatom`). ## CTM: c8ntinuum to Cosmos Hub You need CTM on your `c81...` address. The fee, about 0.1 CTM, comes out of the same balance. 1. Select **c8ntinuum**, open **IBC Transfer**, choose **Cosmos Hub (channel-0)**. Add the channel first as in the previous section if you haven't. 2. Recipient: your **`cosmos1...`** address. 3. Token: **CTM**. Enter the amount and leave about 0.2 CTM for fees. 4. Keep **Average** and approve. 5. On Cosmos Hub the tokens appear as **CTM** with denom `ibc/4C7E1DDF...A930`. CTM on Cosmos Hub can be held, sent to other `cosmos1...` addresses, and sent back to c8ntinuum. Most Cosmos Hub apps and exchanges don't recognize it. A wallet or explorer that shows a very large number is reading the raw 18-decimal amount: 5 CTM is `5000000000000000000`. ## CTM: Cosmos Hub to c8ntinuum You need CTM (`ibc/4C7E...`) on your `cosmos1...` address, plus about 0.005 ATOM for the fee. 1. Select **Cosmos Hub**, open **IBC Transfer**, choose **c8ntinuum (channel-1942)**. Add the channel first as described above if you haven't. 2. Recipient: your **`c81...`** address. 3. Token: **CTM** (the `ibc/4C7E...` one). Enter the amount. 4. Keep **Average** and approve. 5. After 10 to 60 seconds, it is back on c8ntinuum as native CTM (`ctm`). ## Command line For scripts, or if you prefer a terminal. You need `ctmd` for c8ntinuum and `gaiad` for Cosmos Hub, each with your key in its keyring. Import your recovery phrase once in each tool: ```bash ctmd keys add me --recover # c8ntinuum: Ethereum-style key, coin type 60 gaiad keys add me --recover # Cosmos Hub: coin type 118 ctmd keys show me -a # your c81... address gaiad keys show me -a # your cosmos1... address ``` Common settings: ```bash C8="--chain-id c8ntinuum_8-1 --node https://public-comet-rpc.c8ntinuum.com:443 \ --gas auto --gas-adjustment 1.3 --gas-prices 444000000000ctm" HUB="--chain-id cosmoshub-4 --node \ --gas auto --gas-adjustment 1.3 --gas-prices 0.025uatom" ATOM_ON_C8=ibc/27394FB092D2ECCD56123C74F36E4C1F926001CEADA9CA97EA622B25F41E5EB2 CTM_ON_HUB=ibc/4C7E1DDF19C2BEFA75F0A98901A5CC9410A1E4FFB983819322583153DF91A930 ``` Replace `` with a Cosmos Hub RPC you trust. Transfers. Each command asks you to confirm before it broadcasts: ```bash # ATOM, Cosmos Hub to c8ntinuum: 0.5 ATOM gaiad tx ibc-transfer transfer transfer channel-1942 500000uatom --from me $HUB # ATOM, c8ntinuum to Cosmos Hub: 0.5 ATOM ctmd tx ibc-transfer transfer transfer channel-0 500000$ATOM_ON_C8 --from me $C8 # CTM, c8ntinuum to Cosmos Hub: 2 CTM ctmd tx ibc-transfer transfer transfer channel-0 2000000000000000000ctm --from me $C8 # CTM, Cosmos Hub to c8ntinuum: 2 CTM gaiad tx ibc-transfer transfer transfer channel-1942 2000000000000000000$CTM_ON_HUB --from me $HUB ``` Check balances: ```bash ctmd q bank balances --node https://public-comet-rpc.c8ntinuum.com:443 gaiad q bank balances --node # or without a binary curl -s https://public-comet-grpc-web.c8ntinuum.com/cosmos/bank/v1beta1/balances/ | jq .balances ``` The CLI default timeout is 10 minutes. A transfer that isn't delivered by then is refunded to the sender. ## ATOM in MetaMask On c8ntinuum, ATOM also exists as an ERC-20 token, so MetaMask can show it. It is the **same balance** as the `ibc/2739...` ATOM in Keplr, not a copy: spend it in one wallet and it's gone in the other. 1. Add c8ntinuum to MetaMask as in [Add c8ntinuum Mainnet Beta to Wallet](/guides/wallet-setup/mainnet). 2. Use the same recovery phrase as in Keplr. The MetaMask `0x...` address and the Keplr `c81...` address are the same c8ntinuum account. 3. **Import tokens → Custom token**, address `0xf36e4C1F926001CEaDa9cA97ea622B25f41e5eB2`. MetaMask fills in symbol `ATOM` and 6 decimals. The token's page on CTMScan is [ctmscan.io/token/0xf36e…5eB2](https://ctmscan.io/token/0xf36e4C1F926001CEaDa9cA97ea622B25f41e5eB2). Its holder list and total supply leave out ATOM received over IBC. For an exact balance, open the contract's [Read contract](https://ctmscan.io/address/0xf36e4C1F926001CEaDa9cA97ea622B25f41e5eB2?tab=read_contract) tab, call `balanceOf` with your `0x...` address, and divide the result by 1,000,000. MetaMask can send ATOM to other `0x...` addresses on c8ntinuum, but it **can't start an IBC transfer**. To move ATOM back to Cosmos Hub, use Keplr or the command line. ## If something goes wrong **Don't send the same transfer again while one is still on its way.** Look it up first. | What you see | What it means and what to do | |--------------|------------------------------| | Not arrived after 2 minutes | Delivery is delayed, usually because the relayer is catching up. Find the transaction on the sending chain's explorer ([Mintscan](https://www.mintscan.io/cosmos) for Cosmos Hub, [cosmos.ctmscan.io](https://cosmos.ctmscan.io/) for c8ntinuum) and check it succeeded. If nothing changes for 15 minutes, contact the c8ntinuum team with the transaction hash. | | Tokens came back to the sending address | The transfer timed out or the destination refused it, for example because of a wrong recipient address. IBC refunds the sender automatically; only the fee is spent. Check the recipient address and send again. | | `insufficient fees` or `insufficient funds` | Not enough of the fee token on the sending chain: ATOM on Cosmos Hub, CTM on c8ntinuum. Top it up. | | Transaction rejected right away on c8ntinuum (signature or pubkey error) | c8ntinuum was added to Keplr without `eth-key-sign` and `eth-secp256k1-cosmos`. Remove c8ntinuum from Keplr and add it again from [cosmos.ctmscan.io/wallet/suggest](https://cosmos.ctmscan.io/wallet/suggest). | | Keplr doesn't offer c8ntinuum as a destination | Add the channel by hand: `channel-1942` from Cosmos Hub, `channel-0` from c8ntinuum. | | Tokens arrived in Keplr but CTMScan doesn't show them | Expected. CTMScan shows token movements from EVM transactions only, and IBC transfers are credited on the Cosmos side of c8ntinuum. Check the balance on [cosmos.ctmscan.io](https://cosmos.ctmscan.io/), in Keplr, in MetaMask, or with `balanceOf` on the token's [Read contract](https://ctmscan.io/address/0xf36e4C1F926001CEaDa9cA97ea622B25f41e5eB2?tab=read_contract) tab. | | Very large CTM number on Cosmos Hub | The display ignores CTM's 18 decimals. Divide by 10^18. | | Sent to an exchange deposit address | Contact the exchange with the transaction hash. Only the exchange can recover it. | When you ask for help, include the direction, the amount and token, the sender and recipient addresses, the transaction hash, and the time you sent it. For IBC safety controls on c8ntinuum, see [IBC Interoperability](/tooling-and-infrastructure/cross-chain). --- # Exchange and Custody Integration URL: https://docs.c8ntinuum.com/guides/exchange-integration Use these pages when integrating c8ntinuum into exchange, custody, wallet, deposit, withdrawal, or indexing systems. The primary integration surface is Ethereum-compatible JSON-RPC. CometBFT RPC, REST/LCD, and gRPC are supporting surfaces for node status and Cosmos SDK data. ## Integration path 1. Run your own node with `deploy.sh`, as in [Running Your Own Node](/guides/exchange-integration/running-a-node), or choose an RPC provider from [RPC Providers](/tooling-and-infrastructure/rpc-providers). A node installed with `deploy.sh` has the EVM JSON-RPC off until you run `sudo ./deploy.sh rpc enable`. Deposit history and backfills need an archive node or an indexer. 2. Use [Node Interface Calls](/rpc-reference/node-interface-calls) to verify block, transaction, receipt, log, and broadcast behavior. 3. Generate and validate deposit addresses with [Address Generation and Validation](/guides/exchange-integration/address-generation-and-validation). 4. Build a durable deposit scanner with [Deposit Processing](/guides/exchange-integration/deposit-processing). 5. Construct withdrawals with [Offline Signing and Broadcasting](/guides/exchange-integration/offline-signing-and-broadcasting). 6. Publish user-facing wallet instructions from [Wallets](/tooling-and-infrastructure/wallets). c8ntinuum has 1-block finality under standard CometBFT and an expected 4s block time. Exchanges should credit deposits after 60 confirmations, approximately 240 seconds or 4 minutes, with an optional 1-2 block scanner buffer for RPC, log, or receipt lag. Confirmations accrue only while the chain adds blocks. At a governance chain upgrade, the chain stops at the upgrade height until validators with more than 2/3 of the voting power run the new release, then continues from that height. Plan for that pause rather than a fixed 4 minutes; see [Deposit Processing](/guides/exchange-integration/deposit-processing#finality-and-confirmations). ## Supported languages/frameworks Examples use these defaults: | Language | Default library | |----------|-----------------| | JavaScript | `ethers` v6 | | Java | `web3j` | | Go | `go-ethereum` packages | | Rust | `alloy` crates where possible | For the broader SDK and framework matrix, see [Development Toolkits](/tooling-and-infrastructure/dev-toolkits). JavaScript and Java address/offline-signing examples are compile-tested and available as a [downloadable archive](/assets/downloads/c8ntinuum-exchange-integration-examples.zip) that unpacks to `examples/exchange-integration/`. See [Tested Exchange Examples](/guides/exchange-integration/tested-examples) for commands, dependency versions, and the mapping between docs snippets and the samples. Generated addresses and private keys in examples are for demonstration only. Never place production private keys in application logs, analytics, browser storage, shared config files, or CI output. --- # Running Your Own Node URL: https://docs.c8ntinuum.com/guides/exchange-integration/running-a-node An exchange or custodian that runs its own node uses the `deploy.sh` lifecycle script described in [Full Node Installation](/node-ops/full-node-installation). This page covers what a deposit and withdrawal stack needs from that node: the right data mode, a verified script, EVM JSON-RPC, health checks, and governance upgrades. ## Choose the node type | Need | Node | How to build it | |------|------|-----------------| | Current deposits and withdrawals | Full node | `install`, then `state-sync`. The node has the app state at one recent height, without the blocks before it. | | Backfills, deposit history, searches over old ranges | Archive node | `install`, then `snapshot restore` (Linux) or `full-sync --archive`. | ## Download and verify deploy.sh ```bash curl -fsSL https://resources.c8ntinuum.io/deploy.sh -o deploy.sh curl -fsSL https://resources.c8ntinuum.io/deploy.sh.sha256 -o deploy.sh.sha256 sha256sum -c deploy.sh.sha256 # Linux shasum -a 256 -c deploy.sh.sha256 # macOS chmod +x deploy.sh ``` Keep both files in the same directory, because the checksum line names the file `deploy.sh`. The check must print `deploy.sh: OK`. ## Full node ```bash sudo ./deploy.sh install --moniker sudo ./deploy.sh state-sync sudo ./deploy.sh rpc enable -y ``` A new install has the EVM JSON-RPC off. `rpc enable` turns it on and puts the EVM JSON-RPC and the CometBFT RPC on `127.0.0.1`. `--public` puts them on `0.0.0.0` instead: put a firewall or reverse proxy in front. ## Archive node for history and backfills Restore a full-history snapshot (Linux only). The block below sets up a new host. To turn the full node above into an archive, skip `install`, which refuses while the node runs: `snapshot restore` keeps a running node running during the download, then swaps in the snapshot's `data/`. On mainnet the default source is `https://snapshots.c8ntinuum.com/mainnet/latest.json`. `sudo ./deploy.sh snapshot restore --dry-run` shows the download size and the disk it needs. `restore` checks that the node's `ctmd` is the snapshot's `ctmd_version`, unless `--force`. The history below the snapshot's height is taken on the publisher's word. Run the restore inside `tmux`, so a lost SSH session does not end it: ```bash sudo ./deploy.sh install --moniker tmux new -s restore sudo ./deploy.sh snapshot restore --dry-run sudo ./deploy.sh snapshot restore sudo ./deploy.sh rpc enable -y ``` Or replay the chain from block 1, without a snapshot. `full-sync` runs only right after `install`, on a node home without chain data. A node with chain data, such as a state-synced full node, is refused (`reset`, then `install`, makes one without): ```bash sudo ./deploy.sh install --moniker tmux new -s sync sudo ./deploy.sh full-sync --archive --dry-run sudo ./deploy.sh full-sync --archive sudo ./deploy.sh rpc enable -y ``` `full-sync` replays every block with the release that ran it, and switches releases at each chain upgrade by the upgrade map in `metadata.json`. It takes weeks on mainnet and needs peers that keep every block. It runs only on mainnet for now. On Linux, Ctrl-C or a lost session ends only the wait: run `sudo ./deploy.sh full-sync` again to follow it. On macOS they also end the switches, so keep `full-sync` running. Only a run that sees the node synced finishes the full sync; until then `status` shows `Full sync:` and `upgrade` refuses. `--archive` applies only when the sync begins. See [Full Sync](/node-ops/full-sync). Both paths set `pruning = "nothing"`, `min-retain-blocks = 0`, `discard_abci_responses = false`, and `[tx_index] indexer = "kv"`. `full-sync --archive` does not turn on the EVM indexer. `snapshot restore` turns it on only when the snapshot's EVM index covers the history. See [Archive Data Setup](/node-ops/archive-data) for the rest of the archive profile, and [Hardware Requirements](/node-ops/hardware-requirements) for disk sizing. To see the earliest block a node keeps, look at the `Height` line of `sudo ./deploy.sh status` (`earliest N`), or at `.chain.earliest_height` in `status --json`. ## Monitor node health ```bash sudo ./deploy.sh status --check >/dev/null || echo "ctmd unhealthy (exit $?)" sudo ./deploy.sh status --json | jq '.chain.height, .chain.earliest_height, .health' ``` To run the check from cron, put it in root's crontab (`sudo crontab -e`) with the script's absolute path, for example: ```text */5 * * * * /root/deploy.sh status --check >/dev/null || logger -t ctmd-health "ctmd unhealthy (exit $?)" ``` | Exit | `Health` | Meaning | |------|----------|---------| | `0` | `OK` | Healthy. | | `1` | `DOWN` | `ctmd` is not installed or not running, the node home is not initialized, or the CometBFT RPC does not answer. Also a node armed for a chain upgrade that is at or past the upgrade height and has not been switched yet. | | `2` | `BEHIND` | The node is catching up, or its last block is more than 120 seconds old. On Linux, also a `snapshot create` that did not finish, or one that has the node stopped or starting. | | `3` | `MISCONFIGURED` | A chain ID, EVM chain ID, or database mismatch; the running node reports another chain, or another `ctmd` version than the installed one (not under cosmovisor, which runs its own build); a drop-in makes `ctmd.service` run a program other than `/usr/local/bin/ctmd` and cosmovisor; a release is armed while cosmovisor or another program runs the node; an unfinished upgrade; an armed release whose watcher is off or gave up a switch; or a full sync whose watcher is off or gave up a switch, or whose active release is not one its plan names. | When several apply, `1` wins over `3`, and `3` over `2`. `--json` needs `jq`, and its `.health` is `{code, state, reasons}`. A whole-chain pause at an upgrade height also shows here: `DOWN` while the node is still armed or its RPC does not answer, then `BEHIND` once the switched node answers, until blocks resume (see [Governance upgrades](#governance-upgrades)). Compare the node's height with a public CometBFT `/status` to tell your node's lag from a chain pause. ## Governance upgrades A chain upgrade takes effect at a height set by governance. The release that runs before it halts at that height, and the new release cannot run before it, so the switch must happen at the height. On Linux, `deploy.sh` arms the new release ahead of time, and a watcher switches the node at the halt. Once the proposal has passed and the upgrade is in `metadata.json`'s upgrade map, `sudo ./deploy.sh upgrade --dry-run` without a version takes the map's release: its plan's `To:` line names the release, and its `Chain:` line the upgrade and its height. Before the height, once c8ntinuum has published the release: ```bash sudo ./deploy.sh upgrade --dry-run sudo ./deploy.sh upgrade sudo ./deploy.sh status ``` The dry run must show `Chain:` and `Switch: armed, ...`. If it shows `Restart:`, it would switch the node now: do not run it until that is resolved. After arming, `status` shows `Armed: ... (watcher on)`. Keep the node running, because a stopped node never reaches the height. On a node with a full sync in progress, `upgrade` refuses in every form, because the full sync switches releases by its own plan. If the node has caught up but `status` still shows `Full sync:`, run `sudo ./deploy.sh full-sync` once to finish it, then arm. See [Full Sync](/node-ops/full-sync). At the height, the node halts. The watcher normally switches it within seconds: it stops the node, points it at the armed release, and starts it again. The node's RPC does not answer while it restarts and the new release applies the upgrade. The chain then waits at the upgrade height until validators with more than 2/3 of the voting power run the new release. Deposit scanners see a pause, not a fork: blocks resume from that height. Once the switched node answers, `status --check` reports `BEHIND` (exit `2`) until the height moves past the upgrade height. Before the switch, or while the RPC does not answer, it reports `DOWN` (exit `1`). After the height, run `upgrade` again and name the release: ```bash sudo ./deploy.sh upgrade ``` It reports the switch, removes the watcher, and waits until the node is synced past the upgrade height. While the chain has not resumed, it ends instead with `At the network's latest block, height H, but the network has added no block for ...`. When no trusted RPC answers, it says `Synced:` as soon as the node stops catching up. Whichever line it ends with, check with `sudo ./deploy.sh status` that the height moves past H. There is no going back past the height, and `upgrade` takes no copy of `data/` before the switch. On macOS nothing can be armed: run `./deploy.sh upgrade ` once the node has halted at the height. For the full procedure, see [Upgrade Instructions](/node-ops/upgrade-instructions#governance-upgrades). For a release change without a chain upgrade, `sudo ./deploy.sh upgrade` switches the node and checks that the new release runs. If it does not, `upgrade` goes back by itself and exits `2`. `sudo ./deploy.sh upgrade --rollback` returns to the previous release. See [Upgrade Instructions](/node-ops/upgrade-instructions). --- # Tested Exchange Examples URL: https://docs.c8ntinuum.com/guides/exchange-integration/tested-examples Use these examples when you want runnable samples behind the inline exchange-integration snippets. They are intentionally offline-first: tests do not require funded accounts or live RPC calls. ## Download Download [c8ntinuum-exchange-integration-examples.zip](/assets/downloads/c8ntinuum-exchange-integration-examples.zip) and unzip it: ```bash unzip c8ntinuum-exchange-integration-examples.zip ``` The archive unpacks to `examples/exchange-integration/`, which holds a `README.md`, the JavaScript sample in `javascript/` and the Java sample in `java/`. Run the commands on this page from the directory where you unzipped the archive. ## Layout | Path | Language | Covers | |------|----------|--------| | `examples/exchange-integration/javascript` | JavaScript | Key generation, `0x` and `c8` address conversion, address validation, native and ERC-20 transaction signing, raw transaction decoding. | | `examples/exchange-integration/java` | Java | Key generation, `0x` and `c8` address conversion, address validation, native and ERC-20 transaction signing, raw transaction decoding. | ## Prerequisites | Sample | Toolchain | Pinned dependencies | |--------|-----------|---------------------| | JavaScript | Node.js with npm | `ethers` 6.17.0, `@scure/base` 2.4.0 | | Java | JDK 17 or later, Maven | `web3j` 4.14.0, JUnit 5.12.2 | Install the JavaScript dependencies and run the full JavaScript test suite: ```bash npm --prefix examples/exchange-integration/javascript ci && npm --prefix examples/exchange-integration/javascript test ``` Run the full Java test suite. It needs Maven and a JDK, and Maven downloads the Java dependencies on the first `mvn` run: ```bash mvn -f examples/exchange-integration/java/pom.xml test ``` To run one group of tests at a time, use the commands in the sections below. ## Address generation and validation The tested samples back the snippets in [Address Generation and Validation](/guides/exchange-integration/address-generation-and-validation). ```bash npm --prefix examples/exchange-integration/javascript run test:address mvn -f examples/exchange-integration/java/pom.xml -Dtest=C8ntinuumAddressesTest test ``` ## Offline signing and decoding The tested samples back the snippets in [Offline Signing and Broadcasting](/guides/exchange-integration/offline-signing-and-broadcasting). They assert decoded transaction fields before any broadcast step: chain ID, sender, nonce, recipient, value, gas fields, data selector, and raw transaction hash. ```bash npm --prefix examples/exchange-integration/javascript run test:offline-signing mvn -f examples/exchange-integration/java/pom.xml -Dtest=OfflineSigningTest test ``` Never use the demonstration private keys or generated addresses in production systems. --- # Address Generation and Validation URL: https://docs.c8ntinuum.com/guides/exchange-integration/address-generation-and-validation c8ntinuum accounts use Ethereum-compatible `eth_secp256k1` keys. The same account can be represented as an EVM hex address (`0x...`) or a Cosmos Bech32 address (`c8...`). Exchange and custody systems can generate deposit addresses offline using standard Ethereum key derivation. The JavaScript and Java examples below are excerpted from compile-tested samples. See [Tested Exchange Examples](/guides/exchange-integration/tested-examples#address-generation-and-validation). ## Address rules | Item | Value | |------|-------| | Account key type | `eth_secp256k1` | | EVM address | 20-byte Ethereum address, displayed as `0x...` | | Cosmos account address | Bech32 with `c8` prefix | | Mainnet EVM chain ID | `8` / `0x8` | | Testnet EVM chain ID | `8888` / `0x22b8` | | Recommended wallet path | Ethereum-compatible path, usually `m/44'/60'/0'/0/index` | Use `0x...` for EVM JSON-RPC, contracts, wallet prompts, and token transfers. Use `c8...` for Cosmos REST/LCD account queries or IBC-facing UX. Both formats point to the same 20 account bytes. ## Memos and destination tags Memo support depends on the transfer path, not the address format. | Transfer path | Transaction memo support | Integration guidance | |---------------|--------------------------|----------------------| | EVM native CTM transfer | No standard memo or destination-tag field. Standard account-to-account transfers should use empty `data`. | Use unique deposit addresses and credit by transaction hash plus recipient address. | | EVM ERC-20 transfer | No memo or destination-tag field in the standard `transfer(address,uint256)` call. | Use unique deposit addresses. If routing metadata is required, use an application-specific contract flow instead of a standard ERC-20 transfer. | | Cosmos SDK transfer | Yes. Cosmos transactions can include a transaction-level `memo`. | Support this only for Cosmos-native send paths, and make sure the scanner reads, stores, and validates the transaction memo. | | IBC ICS-20 transfer | Yes. ICS-20 transfers include a message-level `memo` parameter. | Treat the memo as transfer message data for IBC routing or application metadata, not as part of the recipient address. | For exchange deposits, the safest default is one deposit address per user or account. Shared omnibus addresses require Cosmos-native or IBC memo processing and are not supported by standard EVM native or ERC-20 transfer semantics. ## Activation behavior There is no separate c8ntinuum-specific address activation transaction documented in this source set. A generated address is valid before it receives funds. Operationally, an address becomes visible to most account queries after it has a balance, nonce, code, or other on-chain account state. For deposit systems: - You can assign unused generated addresses before funding. - Treat an address as activated after the first successful funding transaction or account-state query returns data. - Validate syntax before accepting a withdrawal destination, but do not require the destination to already exist on-chain. - Require native `CTM` on sender accounts before constructing outgoing transactions because gas is paid in native CTM. ## JavaScript Install: ```bash npm install ethers @scure/base ``` Generate keys, derive addresses, and validate both formats: ```javascript function hexToC8(hexAddress) { const checksummed = getAddress(hexAddress); return bech32.encode("c8", bech32.toWords(getBytes(checksummed))); } function c8ToHex(c8Address) { const decoded = bech32.decode(c8Address); if (decoded.prefix !== "c8") throw new Error("invalid c8ntinuum prefix"); const bytes = new Uint8Array(bech32.fromWords(decoded.words)); if (bytes.length !== 20) throw new Error("invalid account byte length"); return getAddress(hexlify(bytes)); } function validateC8ntinuumAddress(address) { if (address.startsWith("0x")) return isAddress(address); if (address.startsWith("c8")) { try { c8ToHex(address); return true; } catch { return false; } } return false; } const randomWallet = Wallet.createRandom(); console.log({ privateKey: randomWallet.privateKey, publicKey: randomWallet.signingKey.publicKey, evmAddress: randomWallet.address, bech32Address: hexToC8(randomWallet.address), }); const mnemonic = Wallet.createRandom().mnemonic.phrase; const hdWallet = HDNodeWallet.fromPhrase(mnemonic, undefined, "m/44'/60'/0'/0/0"); console.log(validateC8ntinuumAddress(hdWallet.address)); ``` ## Java Dependencies: `web3j` for Ethereum keys. The tested Java sample includes a small Bech32 helper for `c8...` conversion. ```java public final class C8ntinuumAddressDemo { static String hexToC8(String hexAddress) { String checksum = Keys.toChecksumAddress(hexAddress); byte[] addressBytes = Numeric.hexStringToByteArray(checksum); return Bech32.encode("c8", addressBytes); } static String c8ToHex(String c8Address) { byte[] addressBytes = Bech32.decodeToBytes(c8Address, "c8"); if (addressBytes.length != 20) { throw new IllegalArgumentException("invalid account byte length"); } return Keys.toChecksumAddress(Numeric.toHexString(addressBytes)); } static boolean isValidC8ntinuumAddress(String address) { try { if (address.startsWith("0x")) return WalletUtils.isValidAddress(address); if (address.startsWith("c8")) { c8ToHex(address); return true; } return false; } catch (Exception error) { return false; } } public static void main(String[] args) throws Exception { ECKeyPair keyPair = Keys.createEcKeyPair(); BigInteger privateKey = keyPair.getPrivateKey(); BigInteger publicKey = keyPair.getPublicKey(); String evmAddress = Keys.toChecksumAddress("0x" + Keys.getAddress(publicKey)); String c8Address = hexToC8(evmAddress); System.out.println("privateKey=0x" + Numeric.toHexStringNoPrefixZeroPadded(privateKey, 64)); System.out.println("publicKey=0x" + Numeric.toHexStringNoPrefixZeroPadded(publicKey, 128)); System.out.println("evmAddress=" + evmAddress); System.out.println("c8Address=" + c8Address); System.out.println("valid=" + isValidC8ntinuumAddress(c8Address)); } } ``` ## Go Dependencies: `go-ethereum` for keys and `cosmos-sdk` for Bech32 conversion. ```go package main import ( "crypto/ecdsa" "fmt" "github.com/cosmos/cosmos-sdk/types/bech32" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" ) func HexToC8(hexAddress string) (string, error) { if !common.IsHexAddress(hexAddress) { return "", fmt.Errorf("invalid EVM address") } addr := common.HexToAddress(hexAddress) return bech32.ConvertAndEncode("c8", addr.Bytes()) } func C8ToHex(c8Address string) (common.Address, error) { prefix, bytes, err := bech32.DecodeAndConvert(c8Address) if err != nil { return common.Address{}, err } if prefix != "c8" || len(bytes) != common.AddressLength { return common.Address{}, fmt.Errorf("invalid c8ntinuum account address") } return common.BytesToAddress(bytes), nil } func main() { privateKey, err := crypto.GenerateKey() if err != nil { panic(err) } publicKey := privateKey.Public().(*ecdsa.PublicKey) evmAddress := crypto.PubkeyToAddress(*publicKey) c8Address, err := HexToC8(evmAddress.Hex()) if err != nil { panic(err) } fmt.Printf("privateKey=0x%x\n", crypto.FromECDSA(privateKey)) fmt.Printf("publicKey=0x%x\n", crypto.FromECDSAPub(publicKey)) fmt.Println("evmAddress=", evmAddress.Hex()) fmt.Println("c8Address=", c8Address) fmt.Println("isEvmValid=", common.IsHexAddress(evmAddress.Hex())) } ``` ## Rust Dependencies: `alloy` 2.x with default features for keys and address parsing, `bech32` 0.9 for `c8...` conversion, and `eyre`. The example uses the bech32 0.9 API; bech32 0.11 and later have a different API. ```rust use alloy::primitives::{Address, hex}; use alloy::signers::local::PrivateKeySigner; use bech32::{self, FromBase32, ToBase32, Variant}; fn hex_to_c8(address: Address) -> eyre::Result { Ok(bech32::encode("c8", address.as_slice().to_base32(), Variant::Bech32)?) } fn c8_to_hex(c8_address: &str) -> eyre::Result
{ let (prefix, words, variant) = bech32::decode(c8_address)?; if prefix != "c8" || variant != Variant::Bech32 { eyre::bail!("invalid c8ntinuum prefix or encoding"); } let bytes = Vec::::from_base32(&words)?; if bytes.len() != 20 { eyre::bail!("invalid account byte length"); } Ok(Address::from_slice(&bytes)) } fn main() -> eyre::Result<()> { let signer = PrivateKeySigner::random(); let address = signer.address(); let c8_address = hex_to_c8(address)?; let strict = Address::parse_checksummed(&address.to_checksum(None), None)?; let round_trip = c8_to_hex(&c8_address)?; println!("privateKey=0x{}", hex::encode(signer.to_bytes())); println!("evmAddress={}", strict.to_checksum(None)); println!("c8Address={}", c8_address); println!("roundTrip={}", round_trip.to_checksum(None)); Ok(()) } ``` ## Validation checklist - Accept `0x...` addresses only when they are 20 bytes and parse as valid Ethereum addresses. - Prefer EIP-55 checksum casing for stored and displayed `0x...` addresses. - Accept `c8...` only when Bech32 decoding succeeds, the prefix is exactly `c8`, and the decoded byte length is 20. - Store a canonical account identifier internally, such as lowercase 20-byte hex, then derive display formats as needed. - Reject validator operator (`c8valoper...`) and consensus (`c8valcons...`) addresses for normal user deposits unless the product explicitly supports validator operations. --- # Deposit Processing URL: https://docs.c8ntinuum.com/guides/exchange-integration/deposit-processing This page describes a durable deposit scanner for exchange and custody systems. It covers successful native CTM transfers, ERC-20 transfers, idempotent crediting, backfill, retries, and finality handling through node interfaces. ## Data sources | Deposit type | Primary source | Success signal | Notes | |--------------|----------------|----------------|-------| | Native CTM transfer | `eth_getBlockByNumber` plus transaction receipts | Receipt `status == 1`, transaction `to` is monitored, `value > 0` | Captures direct EVM native transfers. Internal value movements from contract execution require tracing or an indexer. | | Native CTM through its ERC-20 interface | `eth_getLogs` for `Transfer(address,address,uint256)` emitted by `0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE` | Log exists in a successful receipt | This address is native CTM exposed as an ERC-20. A call to its `transfer` or `transferFrom` moves native CTM in a transaction with `value == 0`, so the native transfer rule above does not see it. Credit the log amount as CTM. | | ERC-20 transfer | `eth_getLogs` for `Transfer(address,address,uint256)` | Log exists in a successful receipt | Credit by `transactionHash`, `logIndex`, token contract, recipient, and value. | | Cosmos SDK transfer | REST/gRPC or CometBFT transaction queries | Cosmos transaction code is success | Anyone can send CTM to the `c8...` form of a deposit address with a bank `MsgSend`, whether or not your product supports Cosmos-native sends. These transfers produce no EVM transaction or log. Search Cosmos transactions for `transfer.recipient='c8...'`, then credit only bank `MsgSend` and `MsgMultiSend` messages whose recipient is the deposit address, and take the `ctm` amount from the message. Skip `MsgEthereumTx` results: their `transfer` events include gas refunds to the sender and CTM moved through the ERC-20 interface above, which the EVM scanner already covers. Filter by message type in your code, because the public nodes return no results for a search that combines `transfer.recipient` with `message.action`. Alternatively, treat unexplained `eth_getBalance` increases on deposit addresses as unsolicited deposits for manual review. | For most exchange integrations, use EVM JSON-RPC as the primary source and keep a local scanner database with durable cursors. ## Scanner workflow 1. Maintain one cursor per chain and asset family: native CTM, each ERC-20 contract, and any Cosmos-native flow. 2. Poll `eth_blockNumber` and compute a safe target height. c8ntinuum has 1-block finality under standard CometBFT; exchanges should use 60 confirmations plus an optional 1-2 block scanner buffer for RPC, log, or receipt lag. 3. Scan bounded ranges. Keep range sizes below the current RPC provider's documented limits; the `eth_getLogs` block range cap is `10000`. 4. For native CTM, fetch full blocks and inspect transactions whose `to` is a monitored deposit address and `value` is non-zero. Also scan `Transfer` logs from `0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE` over the same ranges, as in step 6, because native CTM sent through its ERC-20 interface has `value == 0`. 5. Fetch the receipt for each candidate and require `status == 1`. 6. For ERC-20 deposits, query `eth_getLogs` by token contract, `Transfer` topic, and indexed recipient topics when practical. 7. Fetch receipts for log-bearing transactions when the RPC response does not already prove transaction success. 8. Upsert deposits idempotently before crediting user balances. 9. Advance the durable cursor only after all records in the scanned range are stored and reconciled. 10. Reconcile credited deposits against balances and explorer or indexer data during operations. ## Idempotency keys Use deterministic keys so retries cannot double-credit. | Asset type | Suggested idempotency key | |------------|---------------------------| | Native CTM | `chainId:txHash:native` | | Native CTM through its ERC-20 interface | `chainId:txHash:logIndex:0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE`, credited as CTM | | ERC-20 | `chainId:txHash:logIndex:tokenAddress` | | Cosmos SDK transfer | `chainId:txHash:eventIndex:messageIndex` | Store the raw block number, block hash, transaction hash, from address, to address, asset identifier, amount, receipt status, and credited account ID. ## Finality and confirmations c8ntinuum blocks have 1-block finality under standard CometBFT. Exchange integrations should require 60 confirmations before crediting deposits; at the expected 4s block time, that is about 240 seconds, or 4 minutes. Add an optional 1-2 block scanner buffer only to absorb RPC, log, or receipt lag. Confirmations count blocks, not time. At a governance chain upgrade, every node halts at the upgrade height, and the chain adds no blocks until validators with more than 2/3 of the voting power run the new release. The scanner sees a pause at that height, not a fork: blocks before it stay final, and new blocks continue from it. A self-hosted node's RPC also stops answering while `deploy.sh` switches it to the new release and that release applies the upgrade. Keep deposits pending through the pause, and do not treat it as a node failure. See [Running Your Own Node](/guides/exchange-integration/running-a-node#governance-upgrades). Even with BFT finality, scanners should handle: - RPC provider lag or inconsistent responses between endpoints. - Temporary `null` receipts immediately after block discovery. - Duplicate logs during retries. - Cursor rollback by operator action during backfills. - Contract-internal native transfers that are not visible without traces or an indexer. - A chain pause at a governance upgrade height, during which no new blocks, receipts, or logs arrive. ## Backfills and historical data A backfill can read only the blocks its RPC source keeps. A node bootstrapped with `deploy.sh state-sync` has the app state at one recent height, without the blocks before it. On it, `eth_getBlockByNumber`, receipts, and `eth_getLogs` fail for heights below that one. Before a backfill, check the earliest block a self-hosted node keeps: ```bash sudo ./deploy.sh status --json | jq '.chain.earliest_height, .chain.height' ``` For deposit history, use an archive node. `deploy.sh` builds one in either of two ways: | Method | Command | Notes | |--------|---------|-------| | Restore a snapshot (Linux) | `sudo ./deploy.sh snapshot restore` | Mainnet default: `https://snapshots.c8ntinuum.com/mainnet/latest.json`. `--dry-run` shows the download size and the disk it needs. The node's `ctmd` must be the snapshot's `ctmd_version`, unless `--force`. Run it inside `tmux`, so a lost SSH session does not end it. The history below the snapshot height is taken on the publisher's word. | | Replay from block 1 | `sudo ./deploy.sh full-sync --archive` | Only right after `install`, on a node home without chain data: a node with chain data is refused. Replays every block with the release that ran it, and switches releases at each chain upgrade. Takes weeks on mainnet, needs peers that keep every block, and runs only on mainnet for now. | Both set `pruning = "nothing"`, `min-retain-blocks = 0`, `discard_abci_responses = false`, and `[tx_index] indexer = "kv"`. A new install has the EVM JSON-RPC off, so run `sudo ./deploy.sh rpc enable -y` afterwards. For the EVM indexer and the rest of the archive profile, see [Archive Data Setup](/node-ops/archive-data). For the full procedure, see [Running Your Own Node](/guides/exchange-integration/running-a-node#archive-node-for-history-and-backfills). ## JavaScript scanner excerpt ```javascript const provider = new JsonRpcProvider("https://public-evm-rpc.c8ntinuum.com"); const chainId = 8; const transferTopic = id("Transfer(address,address,uint256)"); // Native CTM exposed as an ERC-20. Value-0 calls to its transfer or transferFrom // move native CTM and emit a standard Transfer log from this address. const NATIVE_CTM_ERC20 = "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE"; const monitored = new Set([ getAddress("0x1111111111111111111111111111111111111111"), getAddress("0x2222222222222222222222222222222222222222"), ]); async function scanNativeBlock(height) { const block = await provider.send("eth_getBlockByNumber", [ "0x" + height.toString(16), true, ]); for (const tx of block.transactions) { if (!tx.to || tx.value === "0x0") continue; const to = getAddress(tx.to); if (!monitored.has(to)) continue; const receipt = await provider.getTransactionReceipt(tx.hash); if (!receipt || receipt.status !== 1) continue; await upsertDeposit({ idempotencyKey: `${chainId}:${tx.hash}:native`, blockNumber: Number(receipt.blockNumber), blockHash: receipt.blockHash, txHash: tx.hash, from: getAddress(tx.from), to, asset: "CTM", amountWei: BigInt(tx.value).toString(), }); } } async function scanErc20(tokenAddress, fromBlock, toBlock) { for (const address of monitored) { const recipientTopic = zeroPadValue(address, 32); const logs = await provider.getLogs({ address: tokenAddress, topics: [transferTopic, null, recipientTopic], fromBlock, toBlock, }); for (const log of logs) { const receipt = await provider.getTransactionReceipt(log.transactionHash); if (!receipt || receipt.status !== 1) continue; await upsertDeposit({ idempotencyKey: `${chainId}:${log.transactionHash}:${log.index}:${tokenAddress}`, blockNumber: log.blockNumber, blockHash: log.blockHash, txHash: log.transactionHash, token: getAddress(tokenAddress), to: address, amountRaw: BigInt(log.data).toString(), }); } } } async function scanRange(fromBlock, toBlock, tokenAddresses) { for (let height = fromBlock; height <= toBlock; height++) { await scanNativeBlock(height); } // Credit NATIVE_CTM_ERC20 logs as native CTM, not as a separate token. for (const tokenAddress of [NATIVE_CTM_ERC20, ...tokenAddresses]) { await scanErc20(tokenAddress, fromBlock, toBlock); } } async function upsertDeposit(deposit) { // Store first, then credit from a separate idempotent ledger step. console.log(deposit); } ``` ## Java scanner excerpt ```java Web3j web3j = Web3j.build(new HttpService("https://public-evm-rpc.c8ntinuum.com")); long chainId = 8L; String transferTopic = "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"; // Native CTM exposed as an ERC-20. Value-0 calls to its transfer or transferFrom // move native CTM and emit a standard Transfer log from this address. String nativeCtmErc20 = "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE"; Set monitored = Set.of(Keys.toChecksumAddress("0x1111111111111111111111111111111111111111")); void scanNativeBlock(BigInteger height) throws Exception { EthBlock block = web3j .ethGetBlockByNumber(new DefaultBlockParameterNumber(height), true) .send(); for (EthBlock.TransactionResult result : block.getBlock().getTransactions()) { EthBlock.TransactionObject tx = (EthBlock.TransactionObject) result.get(); if (tx.getTo() == null || tx.getValue().signum() == 0) continue; String to = Keys.toChecksumAddress(tx.getTo()); if (!monitored.contains(to)) continue; EthGetTransactionReceipt receiptResponse = web3j.ethGetTransactionReceipt(tx.getHash()).send(); if (receiptResponse.getTransactionReceipt().isEmpty()) continue; var receipt = receiptResponse.getTransactionReceipt().get(); if (!receipt.isStatusOK()) continue; upsertDeposit(chainId + ":" + tx.getHash() + ":native", tx.getHash(), to, tx.getValue()); } } void scanErc20(String token, BigInteger fromBlock, BigInteger toBlock) throws Exception { for (String address : monitored) { String topicTo = "0x" + Numeric.cleanHexPrefix(address).toLowerCase(); topicTo = "0x" + "0".repeat(24) + Numeric.cleanHexPrefix(topicTo); EthFilter filter = new EthFilter( new DefaultBlockParameterNumber(fromBlock), new DefaultBlockParameterNumber(toBlock), token); filter.addSingleTopic(transferTopic); filter.addNullTopic(); filter.addSingleTopic(topicTo); EthLog logs = web3j.ethGetLogs(filter).send(); for (EthLog.LogResult item : logs.getLogs()) { EthLog.LogObject log = (EthLog.LogObject) item.get(); EthGetTransactionReceipt receiptResponse = web3j.ethGetTransactionReceipt(log.getTransactionHash()).send(); if (receiptResponse.getTransactionReceipt().isEmpty()) continue; if (!receiptResponse.getTransactionReceipt().get().isStatusOK()) continue; String key = chainId + ":" + log.getTransactionHash() + ":" + log.getLogIndex() + ":" + token; upsertDeposit(key, log.getTransactionHash(), address, Numeric.toBigInt(log.getData())); } } } void scanRange(BigInteger fromBlock, BigInteger toBlock, List tokens) throws Exception { for (BigInteger height = fromBlock; height.compareTo(toBlock) <= 0; height = height.add(BigInteger.ONE)) { scanNativeBlock(height); } // Credit nativeCtmErc20 logs as native CTM, not as a separate token. scanErc20(nativeCtmErc20, fromBlock, toBlock); for (String token : tokens) { scanErc20(token, fromBlock, toBlock); } } void upsertDeposit(String idempotencyKey, String txHash, String to, BigInteger amount) { System.out.println(idempotencyKey + " " + txHash + " " + to + " " + amount); } ``` ## Go scanner excerpt ```go package scanner import ( "context" "fmt" "math/big" "github.com/ethereum/go-ethereum" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/core/types" "github.com/ethereum/go-ethereum/ethclient" "github.com/ethereum/go-ethereum/crypto" ) var transferTopic = crypto.Keccak256Hash([]byte("Transfer(address,address,uint256)")) // NativeCTMERC20 is native CTM exposed as an ERC-20. Value-0 calls to its // transfer or transferFrom move native CTM and emit a standard Transfer log. var NativeCTMERC20 = common.HexToAddress("0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE") func ScanNativeBlock(ctx context.Context, client *ethclient.Client, chainID int64, height uint64, monitored map[common.Address]bool) error { block, err := client.BlockByNumber(ctx, new(big.Int).SetUint64(height)) if err != nil { return err } for _, tx := range block.Transactions() { if tx.To() == nil || tx.Value().Sign() == 0 || !monitored[*tx.To()] { continue } receipt, err := client.TransactionReceipt(ctx, tx.Hash()) if err != nil || receipt.Status != types.ReceiptStatusSuccessful { continue } key := fmt.Sprintf("%d:%s:native", chainID, tx.Hash()) if err := UpsertDeposit(key, tx.Hash(), *tx.To(), tx.Value()); err != nil { return err } } return nil } func ScanERC20(ctx context.Context, client *ethclient.Client, chainID int64, token common.Address, fromBlock, toBlock uint64, recipients []common.Address) error { for _, recipient := range recipients { query := ethereum.FilterQuery{ FromBlock: new(big.Int).SetUint64(fromBlock), ToBlock: new(big.Int).SetUint64(toBlock), Addresses: []common.Address{token}, Topics: [][]common.Hash{ {transferTopic}, nil, {common.BytesToHash(recipient.Bytes())}, }, } logs, err := client.FilterLogs(ctx, query) if err != nil { return err } for _, log := range logs { receipt, err := client.TransactionReceipt(ctx, log.TxHash) if err != nil || receipt.Status != types.ReceiptStatusSuccessful { continue } amount := new(big.Int).SetBytes(log.Data) key := fmt.Sprintf("%d:%s:%d:%s", chainID, log.TxHash, log.Index, token) if err := UpsertDeposit(key, log.TxHash, recipient, amount); err != nil { return err } } } return nil } func ScanRange(ctx context.Context, client *ethclient.Client, chainID int64, fromBlock, toBlock uint64, monitored map[common.Address]bool, tokens []common.Address) error { for height := fromBlock; height <= toBlock; height++ { if err := ScanNativeBlock(ctx, client, chainID, height, monitored); err != nil { return err } } recipients := make([]common.Address, 0, len(monitored)) for address := range monitored { recipients = append(recipients, address) } // Credit NativeCTMERC20 logs as native CTM, not as a separate token. for _, token := range append([]common.Address{NativeCTMERC20}, tokens...) { if err := ScanERC20(ctx, client, chainID, token, fromBlock, toBlock, recipients); err != nil { return err } } return nil } func UpsertDeposit(key string, txHash common.Hash, to common.Address, amount *big.Int) error { return nil } ``` ## Rust scanner excerpt Dependencies: `alloy` 2.x with default features, `tokio` with the `macros` and `rt-multi-thread` features, and `eyre`. ```rust use alloy::consensus::Transaction as _; use alloy::network::TransactionResponse as _; use alloy::primitives::{address, keccak256, Address, B256, U256}; use alloy::providers::{Provider, ProviderBuilder}; use alloy::rpc::types::{BlockNumberOrTag, Filter}; use std::collections::HashSet; const CHAIN_ID: u64 = 8; // Native CTM exposed as an ERC-20. Value-0 calls to its transfer or transferFrom // move native CTM and emit a standard Transfer log from this address. const NATIVE_CTM_ERC20: Address = address!("0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE"); async fn scan_native_block( provider: &P, height: u64, monitored: &HashSet
, ) -> eyre::Result<()> { let block = provider .get_block_by_number(BlockNumberOrTag::Number(height)) .full() .await? .ok_or_else(|| eyre::eyre!("missing block"))?; for tx in block.transactions.into_transactions() { let Some(to) = tx.to() else { continue }; if tx.value() == U256::ZERO || !monitored.contains(&to) { continue; } let Some(receipt) = provider.get_transaction_receipt(tx.tx_hash()).await? else { continue; }; if !receipt.status() { continue; } let key = format!("{CHAIN_ID}:{}:native", tx.tx_hash()); upsert_deposit(&key, tx.tx_hash(), to, tx.value()).await?; } Ok(()) } async fn scan_erc20( provider: &P, token: Address, from_block: u64, to_block: u64, recipients: &[Address], ) -> eyre::Result<()> { let transfer_topic: B256 = keccak256("Transfer(address,address,uint256)"); for recipient in recipients { let filter = Filter::new() .address(token) .event_signature(transfer_topic) .topic2(B256::left_padding_from(recipient.as_slice())) .from_block(from_block) .to_block(to_block); for log in provider.get_logs(&filter).await? { let Some(receipt) = provider.get_transaction_receipt(log.transaction_hash.unwrap()).await? else { continue; }; if !receipt.status() { continue; } let amount = U256::from_be_slice(&log.data().data); let key = format!( "{CHAIN_ID}:{}:{}:{}", log.transaction_hash.unwrap(), log.log_index.unwrap_or_default(), token ); upsert_deposit(&key, log.transaction_hash.unwrap(), *recipient, amount).await?; } } Ok(()) } async fn upsert_deposit(key: &str, tx_hash: B256, to: Address, amount: U256) -> eyre::Result<()> { println!("{key} {tx_hash} {to} {amount}"); Ok(()) } #[tokio::main] async fn main() -> eyre::Result<()> { let provider = ProviderBuilder::new().connect_http( "https://public-evm-rpc.c8ntinuum.com".parse()?, ); let monitored: HashSet
= HashSet::new(); scan_native_block(&provider, 123456, &monitored).await?; // Credit NATIVE_CTM_ERC20 logs as native CTM, not as a separate token. let recipients: Vec
= monitored.iter().copied().collect(); scan_erc20(&provider, NATIVE_CTM_ERC20, 123456, 123456, &recipients).await?; Ok(()) } ``` ## Reconciliation checklist - Compare scanner height to `eth_blockNumber` and CometBFT `/status`. - Verify every credited transaction has a successful receipt. - Re-run the scanner over already-credited ranges and confirm idempotency prevents duplicate credits. - Reconcile hot-wallet, cold-wallet, and deposit-address balances with `eth_getBalance` and token `balanceOf`. - Investigate any deposit-address balance increase that no credited transaction or log explains. A Cosmos bank `MsgSend` to the address's `c8...` form is invisible to EVM scanning; treat it as an unsolicited deposit that needs manual review. - Alert on cursor stalls, receipt fetch failures, RPC `429` responses, unusually large block lag, and unmatched pending credits. - On a self-hosted node, run `sudo ./deploy.sh status --check` from cron or a systemd timer, and alert on a non-zero exit: `1` (`DOWN`), `2` (`BEHIND`), or `3` (`MISCONFIGURED`). A whole-chain pause at an upgrade height also trips it: `1` while the node is still armed or its RPC does not answer, then `2` once the switched node answers, until blocks resume. Compare the node's height with a public CometBFT `/status` to tell a chain pause from a fault on your node. --- # Offline Signing and Broadcasting URL: https://docs.c8ntinuum.com/guides/exchange-integration/offline-signing-and-broadcasting c8ntinuum EVM transactions use standard Ethereum transaction construction, signing, raw-transaction encoding, broadcasting, and receipt polling. Use `eth_sendRawTransaction` to submit an offline-signed withdrawal. The JavaScript and Java examples below are excerpted from compile-tested samples. See [Tested Exchange Examples](/guides/exchange-integration/tested-examples#offline-signing-and-decoding). ## Online and offline split | Step | Environment | Data | |------|-------------|------| | Fetch nonce and fees | Online | `eth_getTransactionCount`, `eth_gasPrice`, `eth_maxPriorityFeePerGas`, `eth_estimateGas` | | Build unsigned transaction | Online or signing coordinator | `chainId`, `nonce`, `to`, `value`, gas fields, optional `data` | | Sign transaction | Offline signer or HSM | Private key, unsigned transaction | | Analyze signed transaction | Offline and online | Hash, sender, chain ID, nonce, recipient, value, data selector | | Broadcast | Online | Raw signed transaction bytes via `eth_sendRawTransaction` | | Confirm | Online | `eth_getTransactionReceipt` with `status == 1` | Never move private keys to the online broadcasting host. Move only unsigned transaction data into the signer and signed raw transactions out of it. The examples below run the online and offline steps in one process for brevity. In production, run only the signing step, with the private key, on the isolated signer or HSM, and pass it the unsigned transaction fields that the online host prepared. ## Transaction fields | Field | Native CTM transfer | ERC-20 transfer | |-------|---------------------|-----------------| | `to` | Recipient account | Token contract | | `value` | Amount in wei | `0` | | `data` | Empty | ABI-encoded `transfer(address,uint256)` | | `gasLimit` | Usually `21000` | Use `eth_estimateGas` plus policy buffer | | `chainId` | `8` mainnet, `8888` testnet | Same | | `type` | Dynamic fee transaction is recommended | Dynamic fee transaction is recommended | ## JavaScript ```javascript const provider = new JsonRpcProvider("https://public-evm-rpc.c8ntinuum.com"); const chainId = 8; const privateKey = process.env.PRIVATE_KEY; const signer = new Wallet(privateKey); async function feeFields() { const feeData = await provider.getFeeData(); return { maxFeePerGas: feeData.maxFeePerGas ?? feeData.gasPrice, maxPriorityFeePerGas: feeData.maxPriorityFeePerGas ?? 0n, }; } async function signNativeTransfer(to) { const from = await signer.getAddress(); const nonce = await provider.getTransactionCount(from, "pending"); const fees = await feeFields(); const unsignedTx = { type: 2, chainId, nonce, to, value: parseEther("1.0"), gasLimit: 21000n, ...fees, }; const raw = await signer.signTransaction(unsignedTx); const decoded = Transaction.from(raw); console.log({ hash: decoded.hash, from: decoded.from, chainId: decoded.chainId?.toString(), nonce: decoded.nonce, to: decoded.to, value: decoded.value.toString(), }); return raw; } async function signErc20Transfer(token, recipient) { const from = await signer.getAddress(); const nonce = await provider.getTransactionCount(from, "pending"); const erc20 = new Interface(["function transfer(address to,uint256 amount) returns (bool)"]); const data = erc20.encodeFunctionData("transfer", [ recipient, parseUnits("12.5", 18), ]); const fees = await feeFields(); const gasLimit = await provider.estimateGas({ from, to: token, value: 0, data, }); return signer.signTransaction({ type: 2, chainId, nonce, to: token, value: 0, data, gasLimit: (gasLimit * 120n) / 100n, ...fees, }); } async function broadcast(raw) { const sent = await provider.broadcastTransaction(raw); const receipt = await sent.wait(); if (receipt.status !== 1) throw new Error(`transaction failed: ${sent.hash}`); return receipt; } ``` ## Java ```java Web3j web3j = Web3j.build(new HttpService("https://public-evm-rpc.c8ntinuum.com")); Credentials credentials = Credentials.create(System.getenv("PRIVATE_KEY")); long chainId = 8L; BigInteger nonce = web3j .ethGetTransactionCount(credentials.getAddress(), DefaultBlockParameterName.PENDING) .send() .getTransactionCount(); BigInteger maxPriorityFeePerGas = web3j.ethMaxPriorityFeePerGas().send().getMaxPriorityFeePerGas(); BigInteger maxFeePerGas = web3j.ethGasPrice().send().getGasPrice().multiply(BigInteger.valueOf(2)); RawTransaction nativeTx = RawTransaction.createEtherTransaction( chainId, nonce, BigInteger.valueOf(21_000), "0x1111111111111111111111111111111111111111", Convert.toWei("1.0", Convert.Unit.ETHER).toBigInteger(), maxPriorityFeePerGas, maxFeePerGas); byte[] signed = TransactionEncoder.signMessage(nativeTx, chainId, credentials); String raw = Numeric.toHexString(signed); var decoded = TransactionDecoder.decode(raw); System.out.println("raw=" + raw); System.out.println("hash=" + org.web3j.crypto.Hash.sha3(raw)); System.out.println("from=" + credentials.getAddress()); System.out.println("chainId=" + chainId); System.out.println("nonce=" + decoded.getNonce()); System.out.println("to=" + decoded.getTo()); System.out.println("value=" + decoded.getValue()); System.out.println("gasLimit=" + decoded.getGasLimit()); System.out.println("maxPriorityFeePerGas=" + maxPriorityFeePerGas); System.out.println("maxFeePerGas=" + maxFeePerGas); EthSendTransaction sent = web3j.ethSendRawTransaction(raw).send(); String txHash = sent.getTransactionHash(); System.out.println("broadcastHash=" + txHash); Function transfer = new Function( "transfer", Arrays.asList(new Address("0x1111111111111111111111111111111111111111"), new Uint256(new BigInteger("12500000000000000000"))), Arrays.asList(new TypeReference() {})); String data = FunctionEncoder.encode(transfer); String token = "0xc8Fb80fCc03f699C70ff0CC08C09106288888888"; BigInteger estimatedGas = web3j .ethEstimateGas(Transaction.createEthCallTransaction(credentials.getAddress(), token, data)) .send() .getAmountUsed(); BigInteger erc20GasLimit = estimatedGas.multiply(BigInteger.valueOf(120)).divide(BigInteger.valueOf(100)); RawTransaction erc20Tx = RawTransaction.createTransaction( chainId, nonce.add(BigInteger.ONE), erc20GasLimit, token, BigInteger.ZERO, data, maxPriorityFeePerGas, maxFeePerGas); String erc20Raw = Numeric.toHexString( TransactionEncoder.signMessage(erc20Tx, chainId, credentials)); var decodedErc20 = TransactionDecoder.decode(erc20Raw); // web3j 4.14 returns decoded data without the 0x prefix. System.out.println("erc20DataSelector=" + Numeric.prependHexPrefix(decodedErc20.getData()).substring(0, 10)); ``` ## Go ```go package withdrawals use alloy::eips::eip2718::Encodable2718; use alloy::network::TxSignerSync; use alloy::primitives::{address, Address, Bytes, TxKind, U256}; use alloy::providers::{Provider, ProviderBuilder}; use alloy::signers::local::PrivateKeySigner; fn build_native_tx( nonce: u64, to: alloy::primitives::Address, value: U256, max_fee_per_gas: u128, max_priority_fee_per_gas: u128, ) -> TxEip1559 { TxEip1559 { chain_id: 8, nonce, gas_limit: 21_000, max_fee_per_gas, max_priority_fee_per_gas, to: TxKind::Call(to), value, input: Bytes::new(), access_list: Default::default(), } } fn sign_offline(tx: &mut TxEip1559, private_key: &str) -> eyre::Result> { let signer: PrivateKeySigner = private_key.parse()?; let signature = signer.sign_transaction_sync(tx)?; let signed = tx.clone().into_signed(signature); let envelope: TxEnvelope = signed.into(); Ok(envelope.encoded_2718()) } #[tokio::main] async fn main() -> eyre::Result<()> { let provider = ProviderBuilder::new().connect_http( "https://public-evm-rpc.c8ntinuum.com".parse()?, ); // Online: read the sender's nonce and current fees. Leave headroom over the base fee. let from: Address = std::env::var("FROM_ADDRESS")?.parse()?; let nonce = provider.get_transaction_count(from).pending().await?; let max_priority_fee_per_gas = provider.get_max_priority_fee_per_gas().await?; let max_fee_per_gas = provider.get_gas_price().await? * 2; let mut tx = build_native_tx( nonce, address!("1111111111111111111111111111111111111111"), U256::from(1_000_000_000_000_000_000u128), max_fee_per_gas, max_priority_fee_per_gas, ); let raw = sign_offline(&mut tx, &std::env::var("PRIVATE_KEY")?)?; let pending = provider.send_raw_transaction(&raw).await?; let receipt = pending.get_receipt().await?; if !receipt.status() { eyre::bail!("transaction failed"); } Ok(()) } ``` ## Signed data analysis Before broadcasting, decode the raw signed transaction and verify: - `chainId` is `8` for mainnet or `8888` for testnet. - `from` matches the expected hot wallet, withdrawal wallet, HSM key, or custody account. - `nonce` matches the reserved nonce in your withdrawal database. - `to`, `value`, and `data` match the approved withdrawal instruction. - ERC-20 withdrawals call `transfer(address,uint256)` on the intended token contract. - Gas fields satisfy your policy and are not extreme. - The raw transaction hash is stored before broadcast. ## Broadcasting and polling Broadcast with `eth_sendRawTransaction`, then poll `eth_getTransactionReceipt` by hash until one of these happens: | Result | Action | |--------|--------| | Receipt `status == 1` | Mark withdrawal confirmed. | | Receipt `status == 0` | Mark failed and investigate before retrying. | | `null` receipt | Continue polling until timeout. While the chain is paused at a governance upgrade height, no receipts arrive: check that the chain is adding blocks before you treat a timeout as a failure. | | Nonce too low | Check if the transaction was already mined or replaced. | | Transaction underpriced | Rebuild with a replacement transaction using the same nonce and higher fee, if policy allows. | | Insufficient funds | Stop retries until the sender has native CTM for value plus gas. | Store every raw transaction, decoded transaction, broadcast hash, receipt, and replacement attempt for auditability. --- # Deploy with Foundry URL: https://docs.c8ntinuum.com/guides/deploy-contract/foundry ## Prerequisites - [Foundry](https://book.getfoundry.sh/getting-started/installation) installed - A wallet with CTM for gas fees - RPC endpoint: `https://public-evm-rpc.c8ntinuum.com` ## Step 1: Create a Project ```bash forge init my-project cd my-project ``` ## Step 2: Write Your Contract ```solidity // src/Counter.sol // SPDX-License-Identifier: MIT pragma solidity ^0.8.20; contract Counter { uint256 public number; function setNumber(uint256 newNumber) public { number = newNumber; } function increment() public { number++; } } ``` ## Step 3: Compile c8ntinuum runs the Prague EVM rules and Osaka is not active, so Osaka features such as the `CLZ` opcode are unavailable. Recent Foundry versions compile for `osaka` by default, so set `evm_version = "prague"` under `[profile.default]` in `foundry.toml` (see [Configuration](#configuration)) before you build. ```bash forge build ``` ## Step 4: Deploy ```bash forge create --rpc-url https://public-evm-rpc.c8ntinuum.com \ --private-key $PRIVATE_KEY \ --broadcast \ src/Counter.sol:Counter ``` ## Step 5: Verify (Optional) See [Verify with Foundry](/guides/verify-contract/foundry) for contract verification on CTMScan. ## Configuration Add c8ntinuum to your `foundry.toml`: ```toml [profile.default] src = "src" out = "out" libs = ["lib"] evm_version = "prague" [rpc_endpoints] continuum = "https://public-evm-rpc.c8ntinuum.com" ``` Then deploy with: ```bash forge create --rpc-url continuum \ --private-key $PRIVATE_KEY \ --broadcast \ src/Counter.sol:Counter ``` ## Useful Commands | Command | Description | |---------|-------------| | `cast chain-id --rpc-url continuum` | Verify chain ID (should return `8`) | | `cast balance $ADDRESS --rpc-url continuum` | Check CTM balance | | `cast send $TO --value 1ether --rpc-url continuum --private-key $PRIVATE_KEY` | Send CTM | | `cast call $CONTRACT "method()" --rpc-url continuum` | Call a contract method | --- # Deploy with Hardhat URL: https://docs.c8ntinuum.com/guides/deploy-contract/hardhat ## Prerequisites - [Node.js](https://nodejs.org/) v20+ - A wallet with CTM for gas fees This guide targets Hardhat 2. The `hh2` npm tags install Hardhat 2 and `@nomicfoundation/hardhat-toolbox` 6.x, which includes `hardhat-ethers` and `hardhat-verify`. The untagged `hardhat` package now installs Hardhat 3, which uses an ESM config and a different setup, so the steps below do not apply to it. ## Step 1: Create a Project ```bash mkdir my-project && cd my-project npm init -y npm install --save-dev hardhat@hh2 @nomicfoundation/hardhat-toolbox@hh2 npx hardhat init ``` Select "Create a JavaScript project" when prompted. ## Step 2: Configure c8ntinuum Network Update `hardhat.config.js`: ```javascript require("@nomicfoundation/hardhat-toolbox"); module.exports = { solidity: "0.8.20", networks: { continuum: { url: "https://public-evm-rpc.c8ntinuum.com", chainId: 8, accounts: [process.env.PRIVATE_KEY], }, }, }; ``` ## Step 3: Write Your Contract ```solidity // contracts/Counter.sol // SPDX-License-Identifier: MIT pragma solidity ^0.8.20; contract Counter { uint256 public number; function setNumber(uint256 newNumber) public { number = newNumber; } function increment() public { number++; } } ``` ## Step 4: Write Deploy Script ```javascript // scripts/deploy.js const hre = require("hardhat"); async function main() { const Counter = await hre.ethers.getContractFactory("Counter"); const counter = await Counter.deploy(); await counter.waitForDeployment(); console.log("Counter deployed to:", await counter.getAddress()); } main().catch(console.error); ``` ## Step 5: Deploy ```bash PRIVATE_KEY=your_key npx hardhat run scripts/deploy.js --network continuum ``` ## Step 6: Verify (Optional) See [Verify with Hardhat](/guides/verify-contract/hardhat) for contract verification. --- # Deploy with Remix URL: https://docs.c8ntinuum.com/guides/deploy-contract/remix ## Prerequisites - A browser with [MetaMask](https://metamask.io) installed - MetaMask configured with the c8ntinuum network (see [Network Information - Mainnet Beta](/developer-essentials/network-information/mainnet)) - CTM in your wallet for gas fees ## Step 1: Open Remix Navigate to [remix.ethereum.org](https://remix.ethereum.org). ## Step 2: Write or Import Your Contract Create a new file in the **File Explorer** panel or import an existing contract. ## Step 3: Compile 1. Go to the **Solidity Compiler** tab 2. Select the appropriate compiler version 3. Click **Compile** ## Step 4: Deploy 1. Go to the **Deploy & Run Transactions** tab 2. In the **Environment** dropdown, select **Injected Provider - MetaMask** 3. MetaMask will prompt you to connect — ensure you're on the c8ntinuum network (Chain ID `8`) 4. Select your contract and click **Deploy** 5. Confirm the transaction in MetaMask ## Step 5: Interact Once deployed, the contract appears in the **Deployed Contracts** section. You can call functions directly from the Remix interface. --- # Verify with Foundry URL: https://docs.c8ntinuum.com/guides/verify-contract/foundry ## CTMScan endpoints | Network | Explorer | Verifier API | EVM RPC | | --- | --- | --- | --- | | Mainnet | [ctmscan.io](https://ctmscan.io/) | `https://ctmscan.io/api` | `https://public-evm-rpc.c8ntinuum.com` | | Testnet | [testnet.ctmscan.io](https://testnet.ctmscan.io/) | `https://testnet.ctmscan.io/api` | `https://public-testnet-evm.c8ntinuum.link` | ## API keys CTMScan verification can be submitted anonymously; no signup URL is required. Anonymous API traffic is limited to `3 r/s` on both mainnet and testnet. If CTMScan later provides an API key for your account, pass it with `--etherscan-api-key $CTMSCAN_API_KEY`. ## Published scope This guide documents the Foundry Etherscan-compatible verification flow against CTMScan. The supported source format is Solidity Standard JSON. Flattened source, proxy verification, and library-linking behavior should be confirmed against CTMScan before relying on them in release automation. The testnet verifier API mirrors mainnet at `https://testnet.ctmscan.io/api`. ## Verify on mainnet After deploying with Foundry, verify your contract on CTMScan mainnet. CTMScan runs Blockscout, so pass `--verifier blockscout`. Without `--verifier` or an API key, Foundry defaults to Sourcify, which does not match CTMScan's API. ```bash forge verify-contract \ --rpc-url https://public-evm-rpc.c8ntinuum.com \ --verifier blockscout \ --verifier-url https://ctmscan.io/api \ --chain-id 8 \ $CONTRACT_ADDRESS \ src/Counter.sol:Counter ``` ## With Constructor Arguments If your contract has constructor arguments: ```bash forge verify-contract \ --rpc-url https://public-evm-rpc.c8ntinuum.com \ --verifier blockscout \ --verifier-url https://ctmscan.io/api \ --chain-id 8 \ --constructor-args $(cast abi-encode "constructor(uint256)" 42) \ $CONTRACT_ADDRESS \ src/MyContract.sol:MyContract ``` ## Deploy and Verify in One Step ```bash forge create --rpc-url https://public-evm-rpc.c8ntinuum.com \ --private-key $PRIVATE_KEY \ --broadcast \ --verify \ --verifier blockscout \ --verifier-url https://ctmscan.io/api \ src/Counter.sol:Counter ``` ## Testnet status | Item | Status | Source | | --- | --- | --- | | Testnet chain ID | Available now | [Network Information - Testnet](/developer-essentials/network-information/testnet) | | Public testnet EVM RPC | Available now | [Network Information - Testnet](/developer-essentials/network-information/testnet) | | Testnet explorer | Available now | [Block Explorers](/tooling-and-infrastructure/block-explorers) | | Testnet verifier API | Available now | `https://testnet.ctmscan.io/api` - see [Block Explorers](/tooling-and-infrastructure/block-explorers) | --- # Verify with Hardhat URL: https://docs.c8ntinuum.com/guides/verify-contract/hardhat ## CTMScan endpoints | Network | Explorer | Verifier API | EVM RPC | | --- | --- | --- | --- | | Mainnet | [ctmscan.io](https://ctmscan.io/) | `https://ctmscan.io/api` | `https://public-evm-rpc.c8ntinuum.com` | | Testnet | [testnet.ctmscan.io](https://testnet.ctmscan.io/) | `https://testnet.ctmscan.io/api` | `https://public-testnet-evm.c8ntinuum.link` | ## API keys CTMScan verification can be submitted anonymously, and **anonymous flow is the supported path today** - no signup URL exists. Anonymous traffic is rate-limited to `3 r/s` on both mainnet and testnet, which is sufficient for typical Hardhat verification jobs. The Hardhat Etherscan plugin still requires an `apiKey` field to be present in config; use the placeholder value shown below to keep the plugin configuration valid. If CTMScan exposes per-account API keys later, replace the placeholder with `process.env.CTMSCAN_API_KEY`. ## Published scope This guide documents the Hardhat Etherscan-compatible verification flow against CTMScan. The supported source format is Solidity Standard JSON. Flattened source, proxy verification, and library-linking behavior should be confirmed against CTMScan before relying on them in release automation. The testnet verifier API mirrors mainnet at `https://testnet.ctmscan.io/api`. ## Configure Verification Add the explorer configuration to `hardhat.config.js`. This config is for Hardhat 2 with the `hardhat-verify` plugin that `@nomicfoundation/hardhat-toolbox@hh2` includes; set up the project as in [Deploy with Hardhat](/guides/deploy-contract/hardhat). Hardhat 3 uses a different verification config. ```javascript module.exports = { // ... existing config networks: { continuum: { url: "https://public-evm-rpc.c8ntinuum.com", chainId: 8, accounts: [process.env.PRIVATE_KEY], }, }, etherscan: { apiKey: { continuum: process.env.CTMSCAN_API_KEY ?? "ctmscan", }, customChains: [ { network: "continuum", chainId: 8, urls: { apiURL: "https://ctmscan.io/api", browserURL: "https://ctmscan.io", }, }, ], }, }; ``` ## Verify on mainnet ```bash npx hardhat verify --network continuum $CONTRACT_ADDRESS ``` ## With Constructor Arguments ```bash npx hardhat verify --network continuum $CONTRACT_ADDRESS "arg1" "arg2" ``` Or create an arguments file: ```javascript // arguments.js module.exports = [42, "0x..."]; ``` ```bash npx hardhat verify --network continuum --constructor-args arguments.js $CONTRACT_ADDRESS ``` ## Testnet status | Item | Status | Source | | --- | --- | --- | | Testnet chain ID | Available now | [Network Information - Testnet](/developer-essentials/network-information/testnet) | | Public testnet EVM RPC | Available now | [Network Information - Testnet](/developer-essentials/network-information/testnet) | | Testnet explorer | Available now | [Block Explorers](/tooling-and-infrastructure/block-explorers) | | Testnet verifier API | Available now | `https://testnet.ctmscan.io/api` - see [Block Explorers](/tooling-and-infrastructure/block-explorers) | --- # FAQ URL: https://docs.c8ntinuum.com/faq Yes. c8ntinuum runs standard EVM bytecode and exposes Ethereum-compatible JSON-RPC endpoints. Standard tools such as Hardhat, Foundry, Remix, MetaMask, and ethers.js can connect with the published network values. c8ntinuum is a **universal interoperability solution** with a **forward-compatible EVM layer**. It keeps cross-chain trust minimized with several independent layers of security: the Attester Network, whose staked attesters sign with MPC/TSS threshold signatures; c8ntinuum validators; and on-chain light clients. IBC light clients are live on c8ntinuum. The Attester Network and validator checkpoints are in active development and devnet testing. c8ntinuum also exposes advanced cryptographic primitives (zk verification, post-quantum signatures, Ed25519 signature verification) as precompiles, and gives Solidity contracts direct access to Cosmos SDK modules. **CTM** — used for gas fees, staking, and governance. Native CTM uses 18-decimal precision (like ETH). **8** (EVM chain ID). There is also a Cosmos chain ID string used for IBC and consensus: `c8ntinuum_8-1` on mainnet. `eth_secp256k1` — the same curve as Ethereum. Your Ethereum wallet derives the same address on c8ntinuum. c8ntinuum uses standard CometBFT consensus with 1-block finality. Expected block time is 4s. Yes. c8ntinuum uses IBC for trust-minimized cross-chain communication. The ICS02 and ICS20 precompiles expose IBC functionality directly to Solidity. c8ntinuum provides a curated set of precompiles organized into five families: cross-chain verification (IBC, zkVM), Cosmos modules (bank, staking, governance), cryptography (Ed25519, P-256, Schnorr, FROST, VRF, post-quantum), hashing (SHA-3, BLAKE2b, Poseidon), and data handling (JSON, address compression). See [Modules & Precompiles](/modules/overview). 13 widely-used contracts are available at genesis: Multicall3, Permit2, WETH9, Safe singleton factory, CreateX, and more. See [Pre-deployed Contracts](/modules/predeployed-contracts). The `ctmd` node source, licensed under Apache 2.0, will be published in a public GitHub repository; the repository is to be announced. c8ntinuum is based on and extends Cosmos EVM. Until then, use the published release binaries. [resources.c8ntinuum.io/metadata.json](https://resources.c8ntinuum.io/metadata.json) lists the latest release for `linux-amd64`, `linux-arm64`, and `darwin-arm64`. Releases are published under `https://resources.c8ntinuum.io/download/` as `ctmd---.tar.gz`, each with its `.sha256`, including earlier ones such as `0.2.3`, which runs mainnet from block 1. `deploy.sh` downloads and verifies them for you; see [Deployment Scripts](/reference/deployment-scripts). Download and verify `deploy.sh` (see [Deployment Scripts](/reference/deployment-scripts)), then run `sudo ./deploy.sh install` and `sudo ./deploy.sh state-sync` on Linux. A node that needs the full history skips `state-sync`: it restores a data snapshot with `snapshot restore` (Linux), or, right after `install`, replays mainnet from block 1 with `full-sync --archive`. To move to a new release, run `sudo ./deploy.sh upgrade`. Once a governance chain upgrade is scheduled on chain and its release is in `metadata.json`'s upgrade map, `upgrade` on Linux arms that release before the upgrade height, and the node switches to it by itself when it halts there. Validators install by hand with the [manual mainnet install](/node-ops/validator-installation#manual-mainnet-install), run `sudo ./deploy.sh adopt` once to bring the host under `deploy.sh`, and then pass `--allow-validator` to `upgrade`. See [Upgrade Instructions](/node-ops/upgrade-instructions). --- # Brand Kit URL: https://docs.c8ntinuum.com/brand-kit Use these assets when you need to represent c8ntinuum in partner announcements, media coverage, exchange listings, wallet interfaces, app directories, or ecosystem materials. Includes the official full logo, CTM symbol, favicon, square icon, and round icon assets. Verify official profiles, explorers, metadata, and ecosystem resources. ## Logo Assets Use SVG files for scalable placement and PNG files when a platform requires raster artwork.
c8ntinuum full logo in black

Full logo, black

Use on white or light neutral backgrounds.

c8ntinuum full logo in white

Full logo, white

Use on black or dark neutral backgrounds.

CTM symbol in black

CTM symbol, black

Use as a token icon, compact app icon, or small-space mark on light backgrounds.

SVG
CTM symbol in white

CTM symbol, white

Use as a token icon, compact app icon, or small-space mark on dark backgrounds.

SVG
CTM square icon for dark placements

Square icon, dark

Use for app tiles, listings, and profile placements that need a self-contained dark icon.

PNG
CTM square icon for light placements

Square icon, light

Use for app tiles, listings, and profile placements that need a self-contained light icon.

PNG
CTM round icon for dark placements

Round icon, dark

Use for circular profile images, token lists, and compact social placements that need a dark icon.

PNG
CTM round icon for light placements

Round icon, light

Use for circular profile images, token lists, and compact social placements that need a light icon.

PNG
## Naming | Name | Use | |------|-----| | **c8ntinuum** | The chain and network, official handles, domains, listings, and places where the exact public spelling is required. Write "the c8ntinuum hub" when you mean the chain in its role among other chains. | | **CTM** | Native asset and ticker symbol. Do not use `CTM` as a replacement for the name c8ntinuum. | | **Infinity Interop** | The c8ntinuum product suite for cross-chain actions. | | **Infinity Intents** | Swaps and cross-chain transfers. | | **Infinity Hub** | The quote, order, and status service for Infinity Intents. | | **Infinity Settlement** | The settlement layer: Infinity Attest, Infinity Checkpoint, and Infinity Verify. Tagline: "Attested. Checkpointed. Verified." Infinity Attest and Infinity Checkpoint are in active development and devnet testing; Infinity Verify is live for IBC on c8ntinuum. | | **Infinity Programs** | To be announced. | | **Infinimesh** | The developer console and API for building on Infinity products. The Infinimesh developer console is at [console.infinimesh.net](https://console.infinimesh.net). | ## Colors and Type | Token | Hex | Use | |-------|-----|-----| | **Black** | `#000000` | Primary logo color and high-contrast text. | | **Near black** | `#0E0E0E` | Dark surfaces and dark-mode backgrounds. | | **White** | `#FFFFFF` | Logo color on dark backgrounds. | | **Light gray** | `#F1F1F1` | Light page backgrounds and neutral surfaces. | | **Mid gray** | `#CCCCCC` | Secondary dark-mode accents. | The docs interface uses **The Future** font family. Do not recreate the wordmark as editable text; use the provided SVG or PNG assets. ## Usage Rules Do: - Use the official files from this page. - Preserve the original proportions and clear space around the mark. - Choose the black asset for light backgrounds and the white asset for dark backgrounds. - Keep enough contrast for small token icons, exchange listings, and app directory thumbnails. - Link back to the official website or docs when context is helpful. Do not: - Recolor, rotate, stretch, skew, outline, crop, or add effects to the marks. - Place the marks on busy imagery or low-contrast backgrounds. - Combine the marks with unrelated symbols in a way that creates a new logo. - Use c8ntinuum assets to imply endorsement, partnership, or official status without permission. - Rename the chain or the Infinity products, alter `c8ntinuum`, or change the `CTM` ticker capitalization. ## Press Boilerplate c8ntinuum is a universal interoperability solution with a forward-compatible EVM layer, built to unify Web3. By connecting multiple blockchains into one cooperative ecosystem, it enables users, developers, and protocols to interact across chains through a single multichain platform. ## Technical Boilerplate c8ntinuum is a universal interoperability solution with a forward-compatible EVM layer. It keeps cross-chain trust minimized with several independent layers of security: the Attester Network, whose staked attesters sign with MPC/TSS threshold signatures; c8ntinuum validators; and on-chain light clients. IBC light clients are live on c8ntinuum. The Attester Network and validator checkpoints are in active development and devnet testing. c8ntinuum gives developers Ethereum-compatible tooling and access to Cosmos-native modules and advanced cryptographic primitives. --- # Official Links URL: https://docs.c8ntinuum.com/official-links ## Project metadata | Field | Value | |-------|-------| | **Name** | `c8ntinuum` | | **Symbol** | `CTM` | | **Description** | Multichain powered protocol unleashing unrivaled mechanisms designed to achieve ultimate interoperability and long term sustainability | | **Image URI** | [ctm_dark.svg](https://raw.githubusercontent.com/c8ntinuum/resources/main/ctm_dark.svg) | | **Metadata** | [resources.c8ntinuum.io/metadata.json](https://resources.c8ntinuum.io/metadata.json) | ## Official profiles | Resource | URL | |----------|-----| | **Website** | [c8ntinuum.com](https://c8ntinuum.com) | | **GitHub** | [github.com/c8ntinuum](https://github.com/c8ntinuum) | | **Node source (`ctmd`)** | Public GitHub repository to be announced | | **Discord** | [discord.gg/c8ntinuum](https://discord.gg/c8ntinuum) | | **X** | [x.com/c8ntinuum](https://x.com/c8ntinuum) | | **TikTok** | [tiktok.com/@c8ntinuum](https://www.tiktok.com/@c8ntinuum) | | **YouTube** | [youtube.com/@c8ntinuum](https://youtube.com/@c8ntinuum) | | **Telegram** | [t.me/c8ntinuumANN](https://t.me/c8ntinuumANN) | | **CoinGecko** | [coingecko.com/en/coins/c8ntinuum](https://www.coingecko.com/en/coins/c8ntinuum) | | **CoinMarketCap** | [coinmarketcap.com/currencies/c8ntinuum](https://coinmarketcap.com/currencies/c8ntinuum) | ## Ecosystem resources | Resource | URL | |----------|-----| | **Documentation** | You are here | | **Mainnet Explorer** | [ctmscan.io](https://ctmscan.io) | | **Mainnet Cosmos Explorer** (Cosmos SDK side: IBC, staking, governance) | [cosmos.ctmscan.io](https://cosmos.ctmscan.io/) | | **Testnet Explorer** | [testnet.ctmscan.io](https://testnet.ctmscan.io) | ## Genesis resources | Resource | Value | |----------|-------| | **Mainnet Genesis JSON** | [resources.c8ntinuum.io/mainnet/genesis.json](https://resources.c8ntinuum.io/mainnet/genesis.json) | | **Mainnet Genesis SHA-256** | `ebe6292aa5885b508b1d455c93564683c92e9cc3f80592ee615b1cffbc74a653` | | **Mainnet Genesis SHA-256 file** | [resources.c8ntinuum.io/mainnet/genesis.json.sha256](https://resources.c8ntinuum.io/mainnet/genesis.json.sha256) | | **Testnet Genesis JSON** | [resources.c8ntinuum.io/testnet/genesis.json](https://resources.c8ntinuum.io/testnet/genesis.json) | | **Testnet Genesis SHA-256** | `844f4322877d19e538d7ce584af92a2ab3a7eb825757b6b956068a4d255c6d43` | | **Testnet Genesis SHA-256 file** | [resources.c8ntinuum.io/testnet/genesis.json.sha256](https://resources.c8ntinuum.io/testnet/genesis.json.sha256) | ## Node deployment resources | Resource | Value | |----------|-------| | **Deploy script** | [resources.c8ntinuum.io/deploy.sh](https://resources.c8ntinuum.io/deploy.sh) | | **Deploy script SHA-256** | [resources.c8ntinuum.io/deploy.sh.sha256](https://resources.c8ntinuum.io/deploy.sh.sha256) | | **Peer list** | [resources.c8ntinuum.io/peers.json](https://resources.c8ntinuum.io/peers.json) | | **Release downloads** | `https://resources.c8ntinuum.io/download/ctmd---.tar.gz`, each with `.sha256` | See [Deployment Scripts](/reference/deployment-scripts) for what each file holds and how to verify a download. --- # Infinity Interop URL: https://docs.c8ntinuum.com/infinity-interop Infinity Interop is the c8ntinuum product suite for cross-chain actions. Infinity Intents is its first product. Infinity Programs is to be announced. Integrators build on Infinimesh, the developer console and API for Infinity products. The [Infinimesh developer console](https://console.infinimesh.net) is at console.infinimesh.net. This section also documents Infinity Settlement, the layer that checks each cross-chain message. Infinity Intents uses Infinity Settlement to confirm each delivery before the solver receives payment. Swaps and cross-chain transfers. The user chooses the outcome, and a solver delivers it. Programmable interoperability. To be announced. Attested. Checkpointed. Verified. Three layers check each cross-chain message. ## How the parts work together ```mermaid flowchart TD A[Application and wallet] --> I[Infinity Hub: quote and order] I --> S[Solver delivers on the destination chain] S --> T[Attester Network verifies and signs] T --> E[Source escrow releases the deposit to the solver] ``` Applications reach Infinity Intents through Infinity Hub, which returns the quote and accepts the order. A solver delivers the requested assets on the destination chain. The Attester Network confirms that delivery against the approved order and signs a proof. The solver then uses the signed proof to collect the user's deposit from escrow. The deposit stays in escrow until the source contracts accept the proof. An eligible order can return the deposit through the refund process instead. ## Three layers of settlement Infinity Settlement checks each cross-chain message through three independent layers: Infinity Attest, Infinity Checkpoint and Infinity Verify. Attesters are staked, and their group key comes from an on-chain distributed key generation (DKG). Slashing is not active yet. IBC light clients, which provide Infinity Verify, are live on c8ntinuum. The Attester Network and validator checkpoints are in active development and devnet testing. See [Infinity Settlement](/infinity-interop/settlement) for what each layer checks. ## Where to start | Goal | Start here | |---|---| | Learn how intent orders work | [Infinity Intents](/infinity-interop/intents) | | Get an API key | [Authentication](/infinity-interop/intents/api/authentication) | | Integrate quotes and orders | [Integration quickstart](/infinity-interop/intents/api/quickstart) | | Use the TypeScript SDK | [Integration SDK](/infinity-interop/intents/sdk) | | Understand the settlement layers | [Infinity Settlement](/infinity-interop/settlement) | | Review the settlement trust model | [Settlement security](/infinity-interop/settlement/security) | --- # Infinity Intents URL: https://docs.c8ntinuum.com/infinity-interop/intents Infinity Intents provides swaps and cross-chain transfers. It connects what a user wants with a solver that can deliver it. The user chooses an asset, an amount, a destination chain, and a recipient. The application presents a quote. The user approves the terms. A solver delivers the requested assets on the destination chain. An **intent** describes the result the user authorizes. An **order** records the terms that contracts enforce. The order exists once the user signs the intent. A **solver** supplies the destination assets and completes the order. An **escrow** holds the source deposit until contract conditions permit settlement or a refund. ## One connection to many solvers Infinity Hub connects applications to a shared group of solvers. Users reach Infinity Hub through an application and use their wallet to sign the intent. The application can reach connected solvers through this single connection. ```mermaid flowchart TD U[Users] <--> A[Applications and wallets] A <--> H[Infinity Hub] H <--> S1[Solver A] H <--> S2[Solver B] H <--> S3[Solver C] S1 <--> N[Connected blockchain networks] S2 <--> N S3 <--> N ``` The diagram shows the shared connection model. Each solver works with the networks and assets it supports. Available routes depend on those connections and the assets that solvers can supply. ## How Infinity Hub helps The user starts with a simple request: which asset to receive, how much, and on which network. The application sends that request to Infinity Hub. Infinity Hub uses an aggregator, a service that collects offers from connected solvers. It returns an available quote for the application to show the user. The user reviews the amount, destination, and terms before signing the intent. The selected solver supplies the requested assets on the destination network. The user does not need to contact each solver or arrange each step separately. The application uses Infinity Hub to follow the order and display its progress. Delivery and payment to the solver happen in separate steps. After the delivery is verified, the solver completes settlement to receive the source deposit. ## From a request to a completed transfer ```mermaid flowchart TD A[Choose the outcome and review the quote] --> B[Sign the intent and deposit] B --> C[Solver delivers destination assets] C --> D[Attesters verify the fill] D --> E[Solver finalises and receives escrowed assets] ``` The recipient receives the destination assets before the solver recovers the source deposit. [Infinity Settlement](/infinity-interop/settlement) supplies the attestation process that makes this final step possible, through its Infinity Attest layer. Infinity Attest is in active development and devnet testing. Attesters are staked, their group key comes from an on-chain distributed key generation (DKG), and slashing is not active yet. ## The components behind the experience | Component | Responsibility | |---|---| | Application | Collect the request and display the terms for user approval. | | Infinity Hub | Request quotes, validate executable payloads, submit orders, and report their progress. | | Aggregator | Connect Infinity Hub to the configured solvers. | | Solver | Evaluate the order, supply destination assets, and complete settlement. | | Contracts | Enforce deposits, fills, settlement conditions, and refunds. | ## Security through shared authority Solver custody uses a **threshold signature scheme (TSS)**. **Infinity Solvers** is a TSS-powered committee that custodies solver funds for extra security. It distributes signing authority across its members. A configured threshold must participate to authorize an operation. One member cannot authorize custody operations alone when the threshold requires multiple members. The Attester Network uses a separate signing authority to confirm fills. Contracts verify the required authorization before releasing the source deposit. Security also depends on the signing thresholds of Infinity Solvers and the Attester Network, contract correctness, and the finality of the connected chains. ## When an order cannot complete A quote does not guarantee a fill. Available liquidity, chain conditions, and order deadlines affect execution. An eligible unfilled order can return its deposit through the escrow refund process. For a filled order with delayed settlement, an authorized watcher can extend the refund deadline. Components, authorization boundaries, and execution responsibilities. Quote, authorize, submit, and track an order. --- # Terminology URL: https://docs.c8ntinuum.com/infinity-interop/intents/terminology Use these meanings throughout the execution and settlement documentation. Protocol identifiers retain their exact spelling. | Term | Meaning | |---|---| | Intent | User-authorized outcome requested from the execution system. | | Order | Encoded terms that contracts enforce, binding inputs, outputs, authorization, and deadlines. The order exists once the user signs the intent. | | Infinity Hub | Quote, order, and status service that applications call. It requests quotes, validates executable payloads, submits orders, and reports their progress. | | Origin chain | Chain where the input deposit is held. | | Destination chain | Chain where the requested output is delivered. | | Escrow | Contract or program that holds deposited assets until settlement or refund conditions are satisfied. | | Input settler | Origin contract or program that manages the order deposit and settlement. | | Output settler | Destination contract or program that records delivery. | | Fill | Delivery that satisfies a required output. | | Attestation | Signed statement about verified fill evidence. | | Attester Network | Group of staked attesters that sign attestations with FROST threshold signatures under the `ATTEST` identity. One member is an attester. | | Input oracle | Origin verifier that records accepted fill proofs. | | Finalisation | Origin settlement operation that releases the escrow deposit to the authorized solver destination. | | Finality | Chain-specific assurance that an observed block will not be reversed under the chain's consensus assumptions. | | Confirmation depth | Required number or level of chain confirmations before an observation is accepted. | | Committee | Configured group of participants with shared signing authority, such as Infinity Solvers. | | Infinity Solvers | The solver network: a TSS-powered committee that custodies solver funds for extra security. It signs under the `SPEND` identity. | | TSS | Threshold signature scheme; a configured threshold of participants creates a group signature. | | DKG | Distributed key generation; participants create key shares without a single operator generating the complete private key. | | FROST | Flexible Round-Optimized Schnorr Threshold signatures. | | TSSD | Threshold signing daemon that holds a node's key shares and performs signing operations. | | Key generation | Signing-group key instance selected for signing and verification. | | Nonce | Protocol value used to distinguish or authorize operations. Its meaning depends on the chain and message. | | RPC | Remote procedure call interface used to query chain state or submit transactions. | | EVM | Ethereum Virtual Machine. | | OIF | Open Intents Framework. | | CTM | c8ntinuum's native asset, also represented as tokens on supported chains. | | Basis point | One hundredth of one percent. | | Watermark | Observer progress marker used to assess event coverage and freshness. | | Lane | SDK term for the execution mechanism selected by a quote. | An API state is a reported view of execution. It is not interchangeable with a confirmed contract event. --- # Architecture URL: https://docs.c8ntinuum.com/infinity-interop/intents/architecture See [Terminology](/infinity-interop/intents/terminology) for the component and protocol definitions. Infinity Intents uses the Open Intents Framework (OIF) order model. An origin chain holds the input deposit. A destination chain records delivery of each required output. ## Components | Component | Input | Output and authority | |---|---|---| | Application | User request and wallet account | Quote request, user signature, or wallet transaction. | | Infinity Hub | Authenticated request | Validated quote, submission acknowledgement, and observed order state. | | Aggregator | Normalized request | Provider quotes and solver submission results. | | Solver | Accepted order or discovered deposit | Destination fill, proof submission, and origin finalisation. | | Attester | Source order and destination fill evidence | Threshold attestation for each verified output. | | Watcher | Filled order with delayed settlement | Authorized refund deadline extension on supported origins. | | Input settler | Deposit and order terms | Escrow custody, finalisation, or refund. | | Output settler | Destination payment | Fill record and execution event. | | Input oracle | Attestation proof | Verified proof state used by the input settler. | Infinity Hub does not hold signing-group key shares. The engine also holds no signing-group key shares. A separate threshold signing daemon, `TSSD`, holds each node's share. The engine independently derives the requested signing digest before confirming it to the daemon. ## Execution boundaries The solver binary fills orders and finalises settlement. The `verifier` binary performs the attester role and participates in distributed key generation. The watcher binary extends eligible EVM and Solana refund deadlines. Each binary has separate configuration and durable state. Infinity Solvers is the TSS-powered committee that custodies solver funds. Infinity Solvers and the Attester Network use separate signing identities: `SPEND` and `ATTEST`. Transaction fee keys pay network fees. They do not replace the authorization of Infinity Solvers over custody. ## Cross-chain execution 1. Obtain a quote from Infinity Hub. 2. Validate its executable payload against the user's request and trusted deployment addresses. 3. Authorize the intent through its selected execution mechanism. 4. Deposit the input into the origin escrow. 5. Track the destination fill. 6. Track attestation and origin finalisation. A same-chain swap has a different execution model. The wallet submits a router transaction without cross-chain escrow settlement or solver reimbursement. See [same-chain swaps](/infinity-interop/intents/api/swaps). ## Availability and deployment scope The catalog describes configured assets and chains. A quote establishes current route availability. Source support does not establish destination support, watcher support, or live deployment availability. Infinity Hub's public gateway and direct service expose different authentication interfaces. See [authentication](/infinity-interop/intents/api/authentication) before selecting an integration surface. --- # Order construction and lifecycle URL: https://docs.c8ntinuum.com/infinity-interop/intents/order-lifecycle An order binds the user's deposit to explicit destination outputs. Its identity depends on the encoded order. A changed field can produce a different order identifier. ## Order terms | Term | Meaning | |---|---| | User | Account that authorizes the input deposit. | | Inputs | Assets and integer amounts held by the origin escrow. | | Outputs | Destination chain, oracle, settler, token, amount, recipient, callback data, and execution context. | | Input oracle | Contract or program that verifies the required fill evidence. | | Nonce | Order identity input, with protocol-specific authorization and routing data. | | Fill deadline | Latest permitted destination fill time. | | `expires` | Signed order expiry and initial refund deadline. | Amounts use integer base units. Address widths and order encodings depend on the chain family. EVM addresses use 20 bytes. Solana and Move addresses use 32 bytes. Do not reuse an order identifier across different address encodings. ## Authorization mechanisms | Mechanism | User authorization | Origin transaction | |---|---|---| | Permit2 | EIP-712 witness signature after the required token approval | Solver submits the sponsored open. | | EIP-3009 | Token-domain `ReceiveWithAuthorization` signature | Solver submits the sponsored open. | | EVM proxy | Wallet authorization of the disclosed transaction | User submits wrapping or swap-and-open. | | Sponsored Solana | User signature over the validated transaction message | Solver supplies its fee-payer signature and submits. | | Wallet-paid Solana | Wallet signs the disclosed transaction or transaction plan | User submits the transaction sequence. | EIP-3009 requires a supported input token and one input. The authorization binds `from`, `to`, `value`, `validAfter`, `validBefore`, and `nonce` under the token's EIP-712 domain. Infinity Hub checks the token domain against its on-chain domain separator. ## Lifecycle ```mermaid stateDiagram-v2 [*] --> Quoted Quoted --> Authorized Authorized --> Deposited Deposited --> Filled Filled --> Attested Attested --> Finalised Deposited --> Refunded: Refund conditions satisfied Filled --> Refunded: EVM refund wins before finalisation Attested --> Refunded: EVM refund wins before finalisation Finalised --> [*] Refunded --> [*] ``` This diagram describes execution stages, not an exact API state enumeration. A submission acknowledgement does not prove a deposit or fill. A destination fill does not prove origin finalisation. An upstream `failed` state does not establish an on-chain refund. ## Deadlines and recovery Quote validity controls authorization of new execution. Wallet-paid registration can remain available until the order's own expiry. A watcher extension changes the effective refund deadline. It does not change the signed fill deadline. For EVM orders, `open` and `openFor` require chain time strictly before both `fillDeadline` and `expires`. The contract requires `fillDeadline` to be less than or equal to `expires`. The Permit2 deadline and EIP-3009 `validBefore` use `fillDeadline`. An extended Infinity Hub registration window permits tracking an existing deposit; it does not permit a late on-chain open. EVM finalisation can occur after these deadlines when the escrow still holds the deposit and the fills occurred on time. After the effective refund deadline, a refund can also succeed before finalisation, even when destination delivery is complete. An attestation alone does not prevent this refund. Do not create another order while a previous submission outcome remains unknown. Preserve the quote identifier, order identifiers, signed request, and transaction hash. See [submission recovery](/infinity-interop/intents/submission-recovery). --- # Solver execution URL: https://docs.c8ntinuum.com/infinity-interop/intents/solver-execution The solver evaluates orders received through its intake API and orders discovered on chain. Both paths apply admission checks before execution. ## Admission Admission checks the configured route, accepted assets, available liquidity, and deadlines. It also checks order type, callback policy, exclusivity, and auction terms where applicable. A quote does not bypass admission. Unavailable price or chain evidence can defer a submission without accepting it. ## CTM routing For engine routes that touch c8ntinuum, CTM provides the escrow and settlement asset. | Input or output | Execution rule | |---|---| | CTM token input | Open the accepted token directly. | | Native CTM input on c8ntinuum | Wrap native CTM before the escrow open. | | Other input on a route touching c8ntinuum | Swap the input into CTM before the escrow open. | | CTM output | Deliver CTM from solver inventory. | | Other output on a route touching c8ntinuum | Buy the output through `swapAndFill`. | | Route that does not touch c8ntinuum | Use accepted inputs and fillable inventory assets without these swap paths. | Infinity Hub routing policy must agree with engine configuration. A configured catalog entry does not establish router availability or adequate liquidity. Native ETH, BNB, and SOL are swap inputs where supported. They do not use the native CTM wrapping mechanism. ## Custody authorization The fill coordinator requests the operation through Infinity Solvers, the TSS-powered committee that custodies solver funds. Each participating node derives the digest from its own configuration and order evidence. The threshold signing daemon produces a signature only after the required confirmations and signing participation. For EVM custody, the authorization binds the operation to the relevant contract and chain. Solana uses its chain-specific transaction encoding and signing rules. A transaction fee key does not grant permission to move assets that Infinity Solvers controls. ## Destination execution An order with multiple outputs must fill atomically on one destination chain through the supported batch path. The engine enforces output counts, asset constraints, and transaction size limits. The solver checks for an existing first-output fill before sending another fill. A failed lookup does not prove that no fill exists. ## Recovery The engine persists execution state and resumes unfinished work after restart. An RPC timeout means that the transaction outcome is unknown. Signed Solana transaction bytes and nonce ownership remain durable while that outcome is unresolved. Paid orders remain eligible for settlement recovery while a refund deadline extension is pending. Only observed terminal evidence ends that recovery. See [finalisation](/infinity-interop/settlement/finalisation) for the solver's settlement procedure. --- # Intent security URL: https://docs.c8ntinuum.com/infinity-interop/intents/security A threshold signature scheme (TSS) distributes signing authority across the members of a signing group. Infinity Solvers and the Attester Network are separate signing groups. For a signing group with `n` members and threshold `t`, at least `t` valid participants are required for signing. The actual values come from the deployment's configuration for each signing group. ## Authorization boundaries | Authority | Authorized operation | |---|---| | User wallet | Approve the specified deposit, signature, or transaction. | | Infinity Solvers | Authorize permitted custody operations and settlement payout instructions. | | Attester Network | Attest verified destination output evidence. | | Watcher extension key | Extend eligible refund deadlines on configured origins. | | Transaction fee key | Pay transaction fees. | Infinity Solvers and the Attester Network use separate identities and key material. The engine derives operation digests. The threshold signing daemon holds key shares. A failed derivation, confirmation timeout, or missing response refuses the signing request. ## Client validation 1. Pin trusted chain identifiers and deployment addresses in application configuration. 2. Check the paying account and recipient against the user's request. 3. Check assets, amounts, deadlines, and slippage allocations. 4. Check every approval target and transaction destination. 5. Validate the full signing payload before requesting a wallet signature. Do not derive signing trust solely from the same Infinity Hub response that supplies the executable payload. The catalog provides discovery data. It is not an independent trust anchor. ## Security assumptions TSS protects against signing by fewer than the configured threshold under the signature scheme's assumptions. A compromised signing threshold can authorize operations under that signing group's key. Threshold signing does not establish that an event occurred on chain. Attester validation and chain finality checks supply that evidence. Contract correctness, trustworthy chain observations, key-share protection, and the availability of Infinity Solvers and the Attester Network remain necessary. The protocol does not inherit IBC light-client verification merely because a route includes c8ntinuum. See [settlement security](/infinity-interop/settlement/security) for attestation-specific assumptions. --- # Integration quickstart URL: https://docs.c8ntinuum.com/infinity-interop/intents/api/quickstart This procedure requires integration credentials, a funded test wallet, and trusted deployment configuration. The example endpoint uses test networks. This procedure describes a cross-chain OIF order. For a same-chain request, use the [same-chain swap flow](/infinity-interop/intents/api/flows#same-chain-preview-and-execution). ## 1. Discover a route ```bash curl -sS https://proxy-api.infinimesh.net/v1/catalog -H "x-api-key: $HUB_API_KEY" ``` Select chain domains and asset keys from the response. Check the source and destination capabilities separately. ## 2. Request a quote Create `quote-request.json` with values from the catalog and the user's request. Use decimal strings for amounts in base units. ```json { "sourceChain": "", "sourceAsset": "", "destChain": "", "destAsset": "", "amount": "1000000", "sourceAccount": "", "recipient": "", "swapType": "exact-input", "slippageBps": 50 } ``` ```bash curl -sS https://proxy-api.infinimesh.net/v1/quote -H "x-api-key: $HUB_API_KEY" -H "X-Infinity-Subject: $HUB_SUBJECT" -H 'Content-Type: application/json' --data-binary @quote-request.json ``` ## 3. Validate and authorize Validate the returned executable payload against the request and trusted contract addresses. Display the exact input, minimum output, recipient, fees, and expiry. Use the authorization mechanism selected by the quote. Do not sign a preview response. ## 4. Submit or register Use `POST /order/openfor` for OIF execution and wallet-paid OIF registration. Include the required signature only for a signed execution mechanism. Register a Solana wallet plan before broadcasting its transactions. Preserve the returned order identifiers and every wallet transaction hash. ## 5. Track delivery and settlement Read upstream status with the returned upstream identifier or `hubOrderId`. Read chain observations with `onchainOrderId`. Track destination delivery separately from origin settlement. Apply [submission recovery](/infinity-interop/intents/submission-recovery) if the response is lost. --- # Integration requirements URL: https://docs.c8ntinuum.com/infinity-interop/intents/integration-notes ## Before signing Validate the complete executable payload against the user request and independently configured signing trust. Check the wallet account, chain, token amounts, recipient, deadlines, and contract addresses. An indicative preview is not executable. Use the quote's disclosed slippage allocation. An explicit `slippageBps: 0` means zero tolerance. Omitted or `null` tolerance uses deployment policy. ## Before retrying Distinguish a deferred request from an unknown execution outcome. Follow [submission recovery](/infinity-interop/intents/submission-recovery) for `EIN0052`, `EIN0053`, and lost responses. Preserve the original identifiers after a wallet broadcast. ## Before displaying completion Distinguish upstream reports from chain observations. Top-level `filled` in upstream status is a reported fill indicator. Top-level `filled` in the on-chain fill view requires matching fills for every verified output. Origin settlement and destination delivery are separate events. ## Before offering a refund Read the effective refund deadline from the escrow. An extension can move that deadline beyond the signed `expires` value. Check that the order remains deposited before constructing a refund. ## Deployment interfaces The direct Infinity Hub service and the public gateway have different authentication and endpoint policies. Confirm gateway support before enabling same-chain reporting endpoints. Use the [OpenAPI document](/infinity-interop/intents/api/openapi) served by the selected endpoint. For non-prepared signed quotes, the executable template remains in the quoting Infinity Hub process for 30 seconds. Route submission to that same replica. Prepared quotes store their templates in the shared event store and permit submission through another replica. Wallet-paid registration templates also persist across replicas and process restarts. These storage rules do not extend quote or order deadlines. SDK import paths identify separate client packages. The integration SDK and Infinity Hub's JavaScript and TypeScript clients are not interchangeable packages. See [SDK installation](/infinity-interop/intents/sdk/installation). --- # Submission recovery URL: https://docs.c8ntinuum.com/infinity-interop/intents/submission-recovery Submission recovery depends on whether execution could already have started. A missing response does not establish that nothing happened. ## Deferred submission `EIN0053` means that the current attempt was deferred before acceptance. `error_params[0]` contains the retry delay in milliseconds. Possible causes include unavailable prices, solver capacity, upstream availability, and Attester Network key rotation. 1. Preserve the original request and signature. 2. Wait for the stated delay. 3. Submit the same request again within its validity window. Use a bounded retry budget. Do not obtain another signature merely because a submission was deferred. ## Unknown outcome `EIN0052` means that an earlier submission may have opened the order. Do not retry this error automatically. Do not obtain a replacement quote or signature while the original order can still open. Infinity Hub's durable identifier is: ```text hubOrderId = hex(sha256("infinity:v1:order:" + quoteId)) ``` Read `GET /order/{hubOrderId}/status` and the relevant chain evidence. An `EIN0009` response does not prove that the original submission failed. Infinity Hub reconciles uncertain submissions against upstream records and chain observations. A lost transport response can be retried with identical bytes to recover an acknowledgement. Stop automatic retries if that request returns `EIN0052`. Keep the unresolved attempt visible until its chain result or authorization expiry has been reconciled. ## Wallet-paid registration A registration request records an order that the wallet sends itself. Registration does not broadcast the wallet transaction. | Flow | Registration window | |---|---| | EVM proxy open | Until the signed order's `expires`. | | Wallet-paid Solana open or plan | Until `validUntil + 10 minutes`, or the order's `expires`, whichever occurs first. | The Solana window follows the solver's discovery grace. It extends at least ten minutes beyond the disclosed quote expiry unless the signed order expires earlier. Register a Solana wallet plan before sending its transactions. Register an EVM proxy transaction promptly after broadcast. A refused registration cannot undo a broadcast transaction. Use the original order and transaction identifiers to recover tracking. ## Failed upstream state An upstream `failed` state can later advance when another solver delivers the order. Do not display it as an unconditional refund or final contract failure. Check the signed deadlines, effective refund deadline, and chain observations. --- # API conventions URL: https://docs.c8ntinuum.com/infinity-interop/intents/api/conventions ## Endpoint selection The public test gateway is `https://proxy-api.infinimesh.net/v1`. Obtain production access and endpoint details from [dev@c8ntinuum.com](mailto:dev@c8ntinuum.com). The direct Infinity Hub service uses `/infinity/v1` with its own authentication. Send JSON objects with `Content-Type: application/json` for POST requests. GET requests have no body. The OpenAPI endpoint returns YAML. ## Gateway headers | Header | Use | |---|---| | `x-api-key` | Secret server credential. | | `x-project-id` | Public browser project identifier, instead of `x-api-key`. | | `X-Infinity-Subject` | Stable user or visitor identifier for the operation. | | `Content-Type` | `application/json` for POST requests. | Send exactly one credential header. Keep the subject unchanged between quoting, submission, and tracking. The subject contains 1–128 characters from letters, digits, `.`, `_`, `@`, `+`, `~`, and `-`. ## Response envelope JSON responses use a Boolean `success` field. A successful response contains `data`. A failed response omits `data` and contains an `errors` array. ```json { "success": true, "request_id": "example-request", "data": {} } ``` ```json { "success": false, "request_id": "example-request", "errors": [ { "error_code": "EIN0008", "error_reference": "notFillable", "error_params": ["eip155-56"] } ] } ``` Each error can include `error_code`, `error_message`, `error_reference`, and `error_params`. The envelope can also contain `message`. Inspect the envelope as well as the HTTP status. Keep `request_id` and the response's `X-Request-Id` for support. Do not parse human-readable messages as stable machine identifiers. The direct Infinity Hub service normally returns HTTP 400 for errors, including some retryable errors. Shutdown and admission-limit responses use HTTP 503 with `Retry-After`. The gateway can return other HTTP statuses for authentication, request limits, or upstream failures. Some transport errors contain plain text instead of a JSON envelope. Use the documented error code to determine retry behavior. ## Value formats | Value | Encoding | |---|---| | Token amount | Decimal string in integer base units. | | Slippage | Integer basis points; 100 basis points equal 1%. | | EVM address | `0x` followed by 40 hexadecimal digits. | | On-chain order identifier | `0x` followed by 64 hexadecimal digits. | | Chain domain | Catalog identifier, such as `eip155-1`. | | Asset reference | Catalog key or `:
`. | | Timestamp | Use the field's declared timestamp or Unix-seconds encoding. | Do not convert token amounts to JavaScript floating-point numbers. ## Identifier namespaces `quoteId` identifies a quoted offer. `quoteRequestId` identifies the quote round. `hubOrderId` is Infinity Hub's durable order alias. The upstream `orderId` identifies the aggregator's record. `onchainOrderId` identifies the contract order. Use the identifier required by each endpoint. Do not assume that an upstream identifier is always a contract identifier. Clients must tolerate additional response fields. --- # Authentication URL: https://docs.c8ntinuum.com/infinity-interop/intents/api/authentication ## Public gateway Obtain integration access from [dev@c8ntinuum.com](mailto:dev@c8ntinuum.com). The Infinimesh developer console is at [console.infinimesh.net](https://console.infinimesh.net). | Credential | Header | Intended caller | |---|---|---| | Secret API key | `x-api-key` | Application backend. | | Public project identifier | `x-project-id` | Browser application on an allowed origin. | Send one credential per request. A request with both credentials returns `EPX0007`. Keep secret keys out of browser bundles, logs, and repositories. ```bash curl -sS https://proxy-api.infinimesh.net/v1/catalog -H "x-api-key: $HUB_API_KEY" ``` ## Project identifiers A project identifier is public. It does not authenticate an individual user. Configure the project's allowed browser origins before use. The gateway does not expose `GET /orders` to project credentials. Use a backend for private order history. For browser POST requests, send `x-project-id`, `Content-Type`, and `X-Infinity-Subject`. Additional custom headers require gateway cross-origin policy support. ## Your users `X-Infinity-Subject` identifies the user within the authenticated tenant. Keep it stable across each quote, submission, and status workflow. Derive server-side subjects from an authenticated application session. Do not trust an arbitrary browser-supplied subject as proof of identity. Public chain observations are not private account data. A project identifier and known order identifier can expose that order's status through permitted endpoints. | Endpoint | Access boundary | |---|---| | `GET /orders` | Caller-scoped openFor submission history. | | `GET /order/{orderId}/status` | Caller-scoped upstream status, with available chain evidence. | | `GET /status/{orderId}` | Identifier lookup without caller ownership filtering. | | `GET /onchain/{onchainOrderId}/…` | Public chain evidence, subject to gateway endpoint policy. | Enforce application ownership before using an unscoped lookup for private account data. ## Direct Infinity Hub service The direct service supports account sessions, a configured delegating account, and a trusted proxy interface. Production backend delegation binds requests to an account and subject. Trusted proxy requests carry the configured proxy credential, organization, and subject. These headers are not public gateway credentials. Use the selected endpoint's schema and deployment configuration. Do not send internal trusted-proxy credentials from a browser. --- # API keys and rate limits URL: https://docs.c8ntinuum.com/infinity-interop/intents/api/api-keys-and-rate-limits Keep the server API key in a secret store. Use a public project identifier for direct browser access. See [authentication](/infinity-interop/intents/api/authentication) for credential scope. The gateway and Infinity Hub apply separate rate limits. A request can pass the gateway limit and fail the Infinity Hub limit. Infinity Hub's default per-subject budget is 5 requests per second with a burst of 20. Gateway responses can expose `RateLimit-Limit`, `RateLimit-Remaining`, `RateLimit-Reset`, and `Retry-After`. `Retry-After` uses seconds. Infinity Hub retry delays in `error_params` use milliseconds where documented. Stop retries when credentials are refused. Repeated invalid credentials can trigger an IP lockout. Use previews for interactive estimates and one preparation when the user proceeds. Share catalog reads and deduplicate concurrent status requests. --- # Execution concepts URL: https://docs.c8ntinuum.com/infinity-interop/intents/api/concepts An executable quote selects an authorization mechanism and defines the user's permitted operation. The application must validate that operation before requesting a signature. | Topic | Purpose | |---|---| | [Step execution](/infinity-interop/intents/api/concepts/step-execution) | Select the signing and broadcast procedure. | | [Trade types](/infinity-interop/intents/api/concepts/trade-types) | Interpret exact-input and exact-output requests. | | [Slippage](/infinity-interop/intents/api/concepts/slippage) | Interpret route tolerance and swap allocations. | | [Input validation](/infinity-interop/intents/api/concepts/input-validation) | Validate accounts, amounts, and assets. | | [Order lifecycle](/infinity-interop/intents/api/concepts/order-lifecycle) | Distinguish status projections from observed events. | | [Refunds](/infinity-interop/intents/api/concepts/refunds) | Check effective deadlines and escrow state. | | [Solana support](/infinity-interop/intents/api/concepts/solana-support) | Handle sponsored and wallet-paid execution. | See [Architecture](/infinity-interop/intents/architecture) for component responsibilities. See [Infinity Settlement](/infinity-interop/settlement) for attestation and finalisation. --- # Step execution URL: https://docs.c8ntinuum.com/infinity-interop/intents/api/concepts/step-execution A quote can require a signature, a wallet transaction, or a transaction sequence. Select the procedure from the validated executable payload. Do not select it from the asset symbol alone. | Mechanism | Procedure | |---|---| | Permit2 | Approve the required token amount if necessary. Sign the witness payload. Submit its envelope through openFor. | | EIP-3009 | Sign the token-domain authorization. Submit its tagged escrow envelope through openFor. | | EVM proxy | Approve the exact sale if required. Broadcast the disclosed transaction. Register it through openFor. | | Sponsored Solana | Validate and sign the exact message. Submit the required signature envelope through openFor. | | Wallet-paid Solana | Register the plan. Sign and broadcast the validated transactions in order. | | Same-chain swap | Broadcast the router transaction. Report its transaction identifier through `/swaps`. | Each sentence in the procedure is a separate operation. Complete the required confirmation checks between dependent transactions. A split Solana plan is not atomic across its two transactions. If a response is lost after signing or broadcast, preserve the original attempt. Follow [submission recovery](/infinity-interop/intents/submission-recovery) before requesting another authorization. --- # Trade types URL: https://docs.c8ntinuum.com/infinity-interop/intents/api/concepts/trade-types ## Exact input With `swapType: exact-input`, `amount` specifies the input spend in base units. The quote defines the output terms. Do not include `maxAmountIn` in an exact-input request. The token-in swap path sells the exact disclosed input. Slippage bounds the swap result. It does not authorize extra input spending. ## Exact output With `swapType: exact-output`, `amount` specifies the requested destination amount. `maxAmountIn` caps the input spend when supplied. The provider must support that request type. Token-in swap paths reject exact-output requests. Do not present an estimated input calculation as guaranteed exact-output execution. Use the returned executable terms as the authorization boundary. ## Firm and auction outputs A firm order specifies fixed output terms. An auction order can vary its required fill amount according to its signed context and timing rules. The displayed `amountOut` can represent an auction floor. Read the order context before describing a quoted floor as the actual delivered amount. The solver evaluates auction amounts, exclusivity, and callback policy during admission. See [solver execution](/infinity-interop/intents/solver-execution). --- # Slippage allocation URL: https://docs.c8ntinuum.com/infinity-interop/intents/api/concepts/slippage A basis point is 0.01%. A tolerance of 50 basis points equals 0.5%. `slippageBps` specifies the total tolerance for the route. It does not authorize an increase in an exact-input token sale. ## Request policy The default total is 50 basis points. The default maximum is 9000 basis points. Deployments can configure both values. Explicit zero means zero tolerance. Omission or `null` selects the deployment default. Above the configured maximum, Infinity Hub returns `EIN0001` with reference `slippageBps`. ## Allocation Infinity Hub can allocate tolerance between the source swap and destination swap. Wrapping and inventory delivery consume no swap allocation. The source allocation bounds the swap into CTM. The destination allocation bounds the purchase of the requested output. Under the default split policy, the tighter swap receives half the total, limited by its ceiling. The other swap receives the remainder, limited by its own ceiling. A single swap receives the total, limited by its ceiling. | Policy setting | Default | |---|---| | `continuumLegMaxBps` | 9000 basis points. | | `legMaxBps` | 50 basis points outside configured c8ntinuum chains. | | `tighterLegShareBps` | 5000, meaning half of the total. | | `loneLegShareBps` | 10000, meaning all of the total. | | `legTiers` | Disabled. | For example, a 600-basis-point total can allocate 50 to an Ethereum swap and 550 to a c8ntinuum swap. Chain-specific ceilings can change this allocation. ## Optional tiers When `legTiers` is enabled, the total selects the ceiling outside configured c8ntinuum chains. | Total tolerance | Default outside-chain ceiling | |---|---| | Below 500 basis points | 30 basis points. | | 500–2000 basis points, inclusive | 50 basis points. | | Above 2000 basis points | 100 basis points. | The boundaries and ceilings are configurable. A chain-specific ceiling can lower the selected tier ceiling. The tiers require Infinity Hub route splitting and configured c8ntinuum chains. ## Binding and validation Infinity Hub forwards `sourceSlippageBps` and `destinationSlippageBps` with the total. The engine rejects allocations whose sum exceeds the total. It also rejects an allocation missing from a side that its routing rules require to swap. The source allocation binds the swap input terms. The destination allocation is encoded in the signed order nonce. If Infinity Hub does not split the route, the engine applies its own allocation rule. One swap receives the total. Two swaps divide it, with the source receiving the rounded-down half. Applications must display and validate the returned quote terms instead of predicting them from defaults. --- # Input validation URL: https://docs.c8ntinuum.com/infinity-interop/intents/api/concepts/input-validation Validate inputs before requesting a quote. The server still performs its own validation. 1. Read chain domains and asset decimals from the catalog. 2. Validate the paying account against the source chain family. 3. Validate the recipient against the destination chain family. 4. Reject zero-address recipients. 5. Convert display amounts to decimal integer strings in base units. 6. Match each asset reference to its requested chain domain. 7. Check trade-type-specific fields. Use `maxAmountIn` only with exact-output. Use `solanaFlow` only with a Solana source. Use `custody` only with a supported EVM source. An explicit zero slippage value must remain zero during normalization. The paying account and recipient can differ. Always send `sourceAccount` to avoid interpreting the recipient as the payer. Configured address screening can check the parties before quoting and submission. A screening refusal is an admission result, not an on-chain transaction result. See [execution errors](/infinity-interop/intents/api/concepts/execution-errors). --- # Handling errors URL: https://docs.c8ntinuum.com/infinity-interop/intents/api/concepts/handling-errors Read the HTTP status and response envelope together. Classify the error before deciding whether to retry. | Error class | Handling | |---|---| | Invalid request | Correct the named field. | | Invalid credential | Stop retries and replace the credential through the authorized account workflow. | | No viable route | Change supported route terms or wait for availability to change. | | Deferred submission | Wait for the stated delay, then repeat the same request. | | Unknown submission outcome | Preserve the attempt and reconcile its order and chain evidence. | | Rate limit | Wait for the supplied positive interval. Use bounded backoff when no interval is known. | | Internal upstream authentication | Request operator correction; repeated client retries cannot repair it. | ## A deferred submission (`EIN0053`) The current attempt was not accepted for execution. Retry the original request after `error_params[0]` milliseconds. Use a bounded total wait. ## A lost response A transport error does not prove that execution failed. Read status using the durable Infinity Hub identifier. A repeated identical request can recover an acknowledgement. Stop automatic retries if Infinity Hub returns `EIN0052`. ## An unknown outcome (`EIN0052`) Do not request another signature while the existing authorization can still open an order. Keep the unresolved attempt visible to the user. See [submission recovery](/infinity-interop/intents/submission-recovery). --- # Handling rate limits URL: https://docs.c8ntinuum.com/infinity-interop/intents/api/concepts/handling-rate-limits The gateway and Infinity Hub maintain independent request budgets. Gateway rate errors include `EPX0080`, `EPX0081`, and `EPX0082`. Infinity Hub uses `EIN0080` for its per-subject limiter. Use `Retry-After` in seconds when the gateway supplies it. Use the documented `error_params` delay in milliseconds for Infinity Hub errors. For preview `EIN0080` responses, a delay of `"0"` means that no retry interval is known. Use bounded exponential backoff when the interval is zero or absent. Wait at least the supplied positive interval when one is present. Apply a bounded retry count and total wait. Reuse the original submission body after a rate-limit response. Do not obtain another quote or signature solely to bypass a limiter. Do not change the subject to evade a request budget. Cache catalog results for the application session. Debounce quote previews while the user edits inputs. Share one status request among components displaying the same order. Stop background polling when the application no longer needs the result. --- # Execution errors URL: https://docs.c8ntinuum.com/infinity-interop/intents/api/concepts/execution-errors ## Before acceptance The solver can refuse an order because of liquidity, policy, account restrictions, timing, or unsupported assets. `EIN0021` identifies a definitive signed-submission refusal. Resolve the cause before requesting another quote. `EIN0053` identifies a deferred attempt. Temporary causes include unavailable prices, chain reads, solver capacity, and key rotation. Retry the same request after the supplied delay. ## Optional address screening Infinity Hub can apply address screening during quote, route, and submission admission. Screening is disabled by default and requires deployment configuration. It can refuse an operation or report temporary screening unavailability. Do not describe a successful quote as a permanent screening approval. Submission performs its own applicable checks. A screening refusal does not undo a transaction that the wallet already broadcast. ## After broadcast A transaction timeout means that the outcome is unknown. A reverted transaction, a dropped transaction, and an unobserved transaction require different recovery actions. Preserve its hash, chain, nonce where applicable, and original order identity. An upstream `failed` state can later change when delivery evidence appears. Use chain observations and effective deadlines before offering a refund or replacement order. See [submission recovery](/infinity-interop/intents/submission-recovery). --- # Refunds URL: https://docs.c8ntinuum.com/infinity-interop/intents/api/concepts/refunds A refund returns the assets held by the origin escrow to the order's user. It does not reverse an earlier input swap. For a swap into CTM, the escrow can return CTM instead of the original input token. ## Eligibility Read the source escrow's current order state. Read its effective refund deadline. Use the source chain's clock when evaluating the deadline. The effective deadline can exceed the signed `expires` value after a watcher extension. Passing the fill deadline alone does not make the deposit refundable. An application must also check observed fills and the freshness of negative evidence. These application checks do not describe every condition enforced by the contract. An unavailable observer does not prove that no fill occurred. A `cannot-tell` result must not enable automatic refund submission. ## EVM Obtain the complete escrow order tuple. Validate its order identity and escrow address. Check deposited state and current refund eligibility on chain. Submit the escrow's `refund(order)` call through the wallet. The contract requires chain time to be strictly greater than `max(expires, refundDeadline[orderId])`. Anyone can submit this call, but the escrow returns the assets to the order's user. The contract does not check destination fills before refunding. A filled order can therefore be refunded while origin finalisation remains incomplete. Finalisation can also succeed after the deadline if the refund has not executed. See [solver finalisation](/infinity-interop/settlement/finalisation#evm-deadline-and-refund-race) for this race. ## Solana Request the [unsigned refund transaction](/infinity-interop/intents/api/onchain-refund). Validate its program, accounts, and required signer. Sign with the order's user account. Broadcast before its blockhash lifetime ends. An optional wrapped-SOL account closure affects the whole account balance. Obtain user approval before enabling that option. --- # Order status views URL: https://docs.c8ntinuum.com/infinity-interop/intents/api/concepts/order-lifecycle The API provides three views with different evidence and identifier requirements. | View | Identifier | Evidence | |---|---|---| | Upstream status | Upstream `orderId` or `hubOrderId` | Aggregator and solver reports, with available chain projection. | | Infinity Hub status | Infinity Hub order identifier | Infinity Hub event-derived lifecycle projection. | | On-chain fill view | `onchainOrderId` | Observed Open, output fills, settlement, and refund events. | A submission acknowledgement establishes recorded acceptance only. An upstream fill report does not establish verified destination delivery. The on-chain view sets top-level `filled` only after matching every output of the verified Open. Settlement requires a separate origin event. For openFor orders, the Infinity Hub status endpoint remains at `CREATED`. Use upstream status with its chain projection or the on-chain fill view to track their progress. ## Missing and stale data `upstreamStale` identifies an upstream view without current confirmation. `upstreamUnavailable` identifies a chain-only response when the upstream record is unavailable. In that response, `state` and upstream history can be absent. Observer watermarks describe the coverage behind chain views. A stale watermark cannot support a fresh claim that no fill exists. Poll at a bounded interval consistent with the endpoint's cache and rate limits. ## Failure and completion An upstream `failed` state can later advance after a solver fills the order. `finalized` and `refunded` are terminal upstream states, but they remain reports from that interface. Use confirmed chain evidence when the application requires contract-level completion. See [order construction and lifecycle](/infinity-interop/intents/order-lifecycle). --- # Solana execution URL: https://docs.c8ntinuum.com/infinity-interop/intents/api/concepts/solana-support The quote selects the Solana execution mechanism. Preserve its protocol identifiers and transaction bytes. | Request or mechanism | Behavior | |---|---| | `solanaFlow: sponsored` | Solver pays transaction fees and required rent. The user signs the validated message. | | `solanaFlow: split-v0` | Wallet-paid plan; swap then open, or open alone for a CTM input. | | `solanaFlow: open-v0` | Wallet-paid open for CTM already held by the user. | | User-paid swap-and-open | Wallet signs and broadcasts the disclosed combined transaction. | Engine-operated transactions use the protocol's SIMD-0385 message format. Explicit wallet-paid plans use Solana v0 transactions with compute-budget instructions. These format identifiers are part of the protocol. ## Wallet plans Register the unchanged plan before sending its transactions. Validate lookup tables and mint data through trusted RPC access. Sign and broadcast the steps in their declared order. Wait for the swap result before sending the dependent open. The two-step plan is not atomic. A successful swap followed by a failed open can leave CTM in the user's wallet. Reconcile the original open before creating a CTM-only replacement order. ## Native SOL Native SOL uses the 32-byte zero asset identifier under the swap-token mechanism. The execution wraps SOL where the swap requires wrapped SOL. A request naming the wrapped-SOL mint spends existing tokens instead. `wrap-native` is reserved for native CTM on c8ntinuum. ## Sponsored nonce recovery Sponsored execution uses durable nonce ownership managed by the engine. A signed transaction with an unknown outcome must not release its nonce for unrelated reuse. Wallet plans use recent blockhashes and require expiry-aware recovery. See [Solana refunds](/infinity-interop/intents/api/onchain-refund) for refund construction. --- # Supported chains and assets URL: https://docs.c8ntinuum.com/infinity-interop/intents/api/supported-chains-and-assets The catalog is the deployment's configured chain and asset registry. There is no universal asset list that applies to every Infinity Hub deployment. | Chain family | Address handling | Capability boundary | |---|---|---| | EVM | 20-byte addresses | Configured escrow, router, oracle, and custodian contracts. | | Solana | 32-byte public keys | Configured programs, token mints, wallet flows, and transaction formats. | | Sui and Aptos | 32-byte addresses | Configured Move packages and supported solver routes. | Infinity Hub accepts EVM and Solana sources. Its payload validation rejects Sui and Aptos sources. Sui and Aptos can be destinations where the catalog and solver configuration permit them. Engine-level Move support does not remove this Infinity Hub admission restriction. Use catalog chain domains instead of assuming that numeric chain identifiers are sufficient. Use catalog asset keys or `:
` references. A bare token address is not a chain-qualified asset reference. For routes touching c8ntinuum, the engine opens CTM and swaps other supported inputs into CTM. It delivers CTM from inventory and buys other supported outputs. Outside those routes, configured inventory assets determine execution support. An undeclared asset requires a supported discovery and swap path. A token entry alone does not prove that a recipient can receive it. Check quote availability after account and route selection. Watcher support is limited to configured EVM and Solana origins. Do not infer watcher support from a successful Move quote. --- # Integration flows URL: https://docs.c8ntinuum.com/infinity-interop/intents/api/flows ## Signed order 1. Read the catalog. 2. Request an executable quote. 3. Validate the payload and deployment addresses. 4. Obtain any required token approval. 5. Request the user's signature. 6. Submit the encoded signature through `POST /order/openfor`. 7. Track delivery and origin settlement. ## Wallet-paid order 1. Request the applicable wallet-paid quote. 2. Validate its transaction or transaction plan. 3. Register a Solana plan before broadcast. 4. Broadcast the required wallet transactions in order. 5. Register an EVM proxy order after broadcast. 6. Preserve every transaction and order identifier. 7. Track chain evidence through settlement or refund. ## Cross-chain preview and prepare 1. Request indicative previews while the user edits the request. 2. Select a provider from the offers. 3. Prepare that provider under a stable `preparationId`. 4. Validate the executable prepared quote. 5. Continue with its required execution mechanism. ## Same-chain preview and execution 1. Request indicative previews while the user edits the request. 2. Request an executable quote through `POST /quote`. 3. Validate the returned transaction. 4. Obtain any required token approval. 5. Broadcast the swap transaction through the wallet. 6. Report its transaction identifier through `POST /swaps`, where the gateway supports reporting. 7. Track the transaction to its configured confirmation depth. Do not send a same-chain request to `POST /quote/prepare`. See [same-chain swaps](/infinity-interop/intents/api/swaps) for reporting and replacement rules. ## Refund 1. Read the order's chain evidence. 2. Check the effective escrow deadline and deposited state. 3. Construct or request the chain-specific refund transaction. 4. Validate the refund recipient and transaction. 5. Request the wallet signature. 6. Confirm the origin refund event. Follow [submission recovery](/infinity-interop/intents/submission-recovery) after any uncertain signing or broadcast result. --- # Error reference URL: https://docs.c8ntinuum.com/infinity-interop/intents/api/errors Infinity Hub errors use `EIN` codes. Gateway errors use `EPX` codes. Framework errors use `EMC` codes. Inspect `error_reference` and `error_params` when the documented code requires them. ## Infinity Hub errors | Code | Meaning | Handling | |---|---|---| | `EIN0001` | Invalid request field or body. | Correct the named field. | | `EIN0002` | Unsupported or unresolved asset or chain. | Use a supported route. | | `EIN0005` | Expired quote or registration window. | Reconcile existing execution before requesting another quote. | | `EIN0006` | Quote configuration no longer applies. | Reconcile existing execution before obtaining current terms. | | `EIN0007` | Admission or payload validation refused the operation. | Resolve the reported cause. | | `EIN0008` | No viable route. | Inspect the reason and change applicable request terms. | | `EIN0009` | Unknown or inaccessible order. | Check identifier and subject; preserve uncertain submissions. | | `EIN0010` | Quote ownership or signature validation failed. | Correct authorization. | | `EIN0021` | Solver definitively refused a signed submission. | Resolve the refusal before requesting new terms. | | `EIN0049` | Scrubbed internal failure. | Preserve the request identifier for support. | | `EIN0050` | Upstream unavailable or unanswered. | Apply operation-specific recovery. | | `EIN0051` | Required service, store, or observation unavailable. | Inspect the reference before retrying. | | `EIN0052` | Earlier submission outcome unknown. | Stop automatic retries and reconcile. | | `EIN0053` | Submission deferred. | Retry identical bytes after the supplied delay. | | `EIN0080` | Per-subject rate limit. | Wait for the supplied delay. | | `EIN0081` | Capacity unavailable. | Apply bounded backoff. | An `upstreamAuth` reference requires operator correction of Infinity Hub's upstream credential. Repeated application retries cannot repair that credential. Address-screening refusals use the Infinity Hub admission error path. Screening unavailability uses the upstream availability path. ## Gateway errors (`EPX`) | Code | Meaning | |---|---| | `EPX0001`, `EPX0002` | Missing, invalid, or refused server credential. | | `EPX0003` | Endpoint unavailable for the gateway deployment or credential. | | `EPX0004` | Unsupported API path prefix. | | `EPX0005` | Request body exceeds the gateway limit. | | `EPX0007` | Conflicting credential headers. | | `EPX0008`, `EPX0009` | Invalid or unknown project identifier. | | `EPX0010` | Browser origin not allowed. | | `EPX0052` | Gateway timeout; submission outcome can be unknown. | | `EPX0080`, `EPX0081`, `EPX0082` | Request budget or credential-lockout limit. | Framework errors can identify malformed JSON, unsupported content type, or request validation failures. Use the endpoint's [OpenAPI schema](/infinity-interop/intents/api/openapi) for the complete deployment-specific envelope. See [handling errors](/infinity-interop/intents/api/concepts/handling-errors) for retry decisions. --- # Limits and timing URL: https://docs.c8ntinuum.com/infinity-interop/intents/api/limits These values are implementation defaults unless stated otherwise. Deployment configuration can change them. | Behavior | Default or limit | |---|---| | Quote lifetime | Up to 30 seconds, bounded by the provider deadline minus a 2-second safety margin. | | Two-step Solana plan lifetime | Up to 90 seconds, subject to provider validity. | | Cached quote reuse | At least 15 seconds of remaining validity. | | Infinity Hub per-subject rate | 5 requests per second, burst 20. | | Live sponsored Solana nonce holds | 3 per tenant per Infinity Hub process. | | Same-chain quote/watch slots | 32 per tenant. | | Active upstream status freshness | 5 seconds. | | Final upstream status freshness | 60 seconds. | | Infinity Hub lifecycle cache | 2 seconds. | | Negative on-chain fill evidence | Required observer watermark no older than 30 seconds. | | Order or swap list page | Default 100; maximum 500. | | Default slippage | 50 basis points. | | Default maximum request slippage | 9000 basis points. | Quote validity, transaction lifetime, fill deadline, and refund deadline are separate limits. Use each field for its declared purpose. See [submission recovery](/infinity-interop/intents/submission-recovery) for wallet-paid registration windows. The public gateway applies separate body, rate, and request-time limits. Use its response headers and schema for the selected deployment. Do not copy direct Infinity Hub limits into a gateway timeout policy. --- # Troubleshooting URL: https://docs.c8ntinuum.com/infinity-interop/intents/api/troubleshooting | Symptom | Check | Action | |---|---|---| | Credential refused | Credential type and endpoint. | Correct the credential before retrying. | | Browser request blocked | Project origins and allowed request headers. | Correct the browser integration configuration. | | No quote | Asset support, amount, recipient, liquidity, and screening. | Resolve the reported refusal. | | Explicit zero tolerance changed | Client request normalization. | Preserve zero instead of substituting a default. | | Signature refused | Account, domain, chain, deadline, and envelope. | Rebuild authorization from the validated quote. | | `EIN0053` | Supplied retry delay. | Retry the same request within a bounded budget. | | `EIN0052` | Original order and transaction evidence. | Keep the attempt unresolved until reconciliation. | | Wallet paid but history is empty | Registration result and on-chain identifier. | Recover tracking with the original identifiers. | | Upstream state stopped changing | Freshness flags and chain observations. | Track chain evidence separately. | | One output filled | Remaining required outputs. | Do not display complete delivery. | | Refund is delayed | Effective deadline and watcher extensions. | Read current escrow eligibility. | | Solana swap succeeded but open failed | Wallet CTM balance and original open outcome. | Reconcile before creating another order. | ## Evidence for support Record the endpoint, request identifier, quote identifier, subject, and relevant order identifiers. Include the chain domain, transaction hash, response code, and timestamp. Exclude API secrets, private keys, and key-share material. See [submission recovery](/infinity-interop/intents/submission-recovery) before repeating any operation that can move funds. --- # API overview URL: https://docs.c8ntinuum.com/infinity-interop/intents/api The public gateway exposes the integration API under `/v1`. The direct Infinity Hub service exposes its own API under `/infinity/v1`. Use the authentication model and schema for the selected endpoint. ## Integration endpoints | Method and path | Purpose | |---|---| | `GET /catalog` | Discover configured chains and assets. | | `GET /openapi.yaml` | Read the deployment's API schema. | | `POST /quote` | Obtain an executable quote. | | `POST /quote/preview` | Obtain indicative offers without an executable payload. | | `POST /quote/prepare` | Prepare a selected cross-chain provider under a stable preparation identifier. | | `POST /order/openfor` | Submit signed execution or register a wallet-paid OIF order. | | `POST /order` | Register an eligible open-flow quote. | | `GET /order/{orderId}/status` | Read the upstream status projection. | | `GET /status/{orderId}` | Read Infinity Hub's lifecycle projection. | | `GET /orders` | List submitted orders for the authenticated subject. | | `GET /onchain/{orderId}/fill` | Read observed order events and per-output fill progress. | | `GET /onchain/tx/{chainDomain}/{txHash}/order` | Resolve an observed transaction to its order. | | `GET /onchain/{orderId}/order` | Read the EVM escrow order tuple. | | `GET /onchain/{orderId}/refund` | Build an unsigned Solana refund transaction. | | `POST /swaps` | Report a wallet-broadcast same-chain swap. | | `GET /swaps` | List same-chain swap reports. | | `GET /swaps/{chainDomain}/{txHash}` | Read a same-chain swap report. | Gateway deployment policy determines which direct Infinity Hub endpoints it forwards. An unsupported gateway endpoint returns `EPX0003`. Operator administration and direct Infinity Hub account-management endpoints are outside this integration reference. Start with [authentication](/infinity-interop/intents/api/authentication) and [conventions](/infinity-interop/intents/api/conventions). --- # Get catalog URL: https://docs.c8ntinuum.com/infinity-interop/intents/api/catalog `GET /v1/catalog` The catalog describes the deployment's configured chains and assets. Use it to construct route and asset selectors. Preserve chain domains and asset keys exactly as returned. Read asset decimals before converting a display amount to base units. Read source and destination capabilities separately. An asset declaration does not guarantee liquidity or a viable quote. For CTM routing, `continuum.escrowKey` identifies CTM or wrapped CTM. `continuum.wrapNative` applies to native CTM on c8ntinuum. Swap capability fields do not authorize native wrapping on other chains. The catalog is discovery data, not an independent source of signing trust. Pin critical contract and program addresses in application configuration. See [supported chains and assets](/infinity-interop/intents/api/supported-chains-and-assets). --- # Get OpenAPI document URL: https://docs.c8ntinuum.com/infinity-interop/intents/api/openapi `GET /v1/openapi.yaml` The response contains the gateway's OpenAPI schema in YAML format. The direct Infinity Hub endpoint is `GET /infinity/v1/openapi.yaml`. The direct service's authentication and administration endpoints differ from the public gateway. Use the schema served by the endpoint that the application calls. Check request fields, response nesting, authentication, and endpoint availability against that schema. Do not expose direct-service operator endpoints through a public client merely because they appear in another schema. Protocol identifiers and signed payload fields must retain their exact values. These values are part of the API contract. --- # Get quote URL: https://docs.c8ntinuum.com/infinity-interop/intents/api/quote `POST /v1/quote` Infinity Hub requests provider offers and validates the executable winner. Use the same authenticated subject throughout the resulting order workflow. ## Request | Field | Requirement | Meaning | |---|---|---| | `sourceChain`, `destChain` | Required | Catalog chain domains. | | `sourceAsset`, `destAsset` | Required | Asset keys or chain-qualified address references. | | `amount` | Required | Positive decimal integer string in base units. | | `recipient` | Required | Destination recipient in the chain's address format. | | `sourceAccount` | Required for delegated callers and wallet plans | Paying account. Always provide it in application integrations. | | `swapType` | Optional | `exact-input` by default, or `exact-output` where supported. | | `maxAmountIn` | Exact-output only | Maximum input amount in base units. | | `slippageBps` | Optional | Total route tolerance, bounded by deployment policy. | | `solanaFlow` | Solana source only | `sponsored`, `split-v0`, or `open-v0`. | | `custody` | EVM source only | `permit2` or `eip3009`. | The default slippage is 50 basis points. The default request maximum is 9000 basis points. Both values are configurable. Omission or `null` selects the default. Explicit zero remains zero. See [slippage](/infinity-interop/intents/api/concepts/slippage) for allocation rules. EIP-3009 is a requirement when requested. An unsupported token does not silently fall back to Permit2. Exact-output is unavailable for token-in swap routes. The selected provider can reject other unsupported trade types. ## Response | Field or structure | Use | |---|---| | `quoteId`, `quoteRequestId` | Preserve for submission and recovery. | | `issuedAt`, `expiresAt` | Determine quote validity. | | `amountIn`, `amountOut` | Read escrow input and output terms. Token-in execution has a separate user spend. | | `swapInput` | Read the original input asset and exact sold amount from `amountMax`. | | `legs` | Inspect provider and route details. | | `signPayload` | Validate before requesting the required signature. | | `executionTx` | Validate before wallet broadcast when supplied. | | `solanaTransaction` | Validate the wallet-paid Solana transaction and its blockhash lifetime. | | `solanaTransactionPlan` | Validate the ordered wallet-paid steps, signer, and each transaction lifetime. | | `disclosure` | Read execution metadata and artifact binding. | | `slippage` | Read the total tolerance and disclosed swap allocations. | Response shape depends on the execution mechanism. For token-in routes, display `swapInput.amountMax` as the user's spend. `amountIn` describes the CTM escrow input on those routes. Despite its field name, `amountMax` is the exact sold input for these quotes. Use the endpoint's [OpenAPI schema](/infinity-interop/intents/api/openapi) for exact field nesting and optional fields. ## Refusals `EIN0001` identifies invalid request fields. `EIN0002` identifies an unresolved or unsupported asset. `EIN0008` means that no viable route satisfies the request. `EIN0050` and `EIN0051` indicate availability failures whose retry policy depends on their reference. Configured address screening can refuse or defer admission. See [errors](/infinity-interop/intents/api/errors). --- # Preview quotes URL: https://docs.c8ntinuum.com/infinity-interop/intents/api/quote-preview `POST /v1/quote/preview` Use the [quote request](/infinity-interop/intents/api/quote) fields. The response provides indicative provider offers without an executable signing payload. A preview does not reserve a durable nonce or authorize a deposit. Use previews while the user selects a route or amount. Read each offer's provider, amounts, and available route metadata. Cross-chain offers are sorted by provider identifier, not price. An offer's `previewId` is informational and cannot replace `quoteId`. An empty `offers` array means that no provider currently offers the requested terms. For cross-chain requests, prepare the selected provider through `POST /quote/prepare` before signing. Validate the prepared quote independently of the earlier preview. Prices and availability can change between these requests. For same-chain requests, the provider is `router` on EVM or `jupiter` on Solana. Confirm these previews through `POST /quote`. The preparation endpoint rejects same-chain requests. A same-chain preview does not check wallet balances or simulate the transaction. --- # Prepare quote URL: https://docs.c8ntinuum.com/infinity-interop/intents/api/quote-prepare `POST /v1/quote/prepare` Send the [quote request](/infinity-interop/intents/api/quote) fields with `provider` and `preparationId`. Use the provider identifier from the preview response. Use a stable preparation identifier for retries of the same preparation. | Field | Constraint | |---|---| | `provider` | 1–128 characters. | | `preparationId` | Must match `^[A-Za-z0-9_-]{16,128}$`. | Infinity Hub binds the preparation to the authenticated subject and normalized intent. A matching retry returns the stored prepared quote. Changing the intent under the same preparation identifier is not a new preparation. The provider must also match. An input mismatch returns `EIN0001` with reference `preparationId`. A prepared quote contains the executable payload required by its mechanism. Check its expiry before requesting a signature. A retry preserves the original `expiresAt`. An expired stored preparation returns `EIN0005`. Use a new preparation only after reconciling any earlier authorization or broadcast. The stored transaction template permits submission through any Infinity Hub replica that shares the event store. Same-chain requests have no preparation. They return `EIN0001`, reference `preparationId`, with `error_params: ["sameChain"]`. Use `POST /quote` for an executable same-chain quote. Explicit zero slippage participates in the intent binding. Different tolerances must not reuse one frozen preparation. --- # Submit or register an OIF order URL: https://docs.c8ntinuum.com/infinity-interop/intents/api/order-openfor `POST /v1/order/openfor` This endpoint submits a signed order or registers an OIF order that the wallet broadcasts. The quote's execution mechanism determines whether a signature is required. ## Request | Field | Requirement | |---|---| | `quoteId` | Identifier of the validated quote. | | `signature` | Required for signed submission; omitted for wallet-paid registration. | Use the original quote's authenticated subject. Encode the signature exactly as required by the quoted mechanism. Permit2 uses its tagged envelope. EIP-3009 uses its distinct tagged envelope. Do not substitute a raw signature for a required envelope. Register a Solana wallet plan before broadcasting its steps. Registration does not submit those transactions. ## Response | Field | Meaning | |---|---| | `orderId` | Upstream order identifier. | | `hubOrderId` | Durable Infinity Hub alias. | | `quoteId` | Submitted quote identifier. | | `state` | Initial upstream state, usually `created`. | | `submittedAt` | Recorded submission time. | An acknowledgement does not guarantee a fill. One quote corresponds to one order identity. ## Error handling | Code | Required handling | |---|---| | `EIN0005` | Check expiry and reconcile any existing authorization before obtaining another quote. | | `EIN0010` | Correct quote ownership or signature validation errors. | | `EIN0021` | Resolve the definitive solver refusal before requesting new terms. | | `EIN0052` | Stop automatic retries; the earlier outcome is unknown. | | `EIN0053` | Wait for `error_params[0]` milliseconds, then retry the same request. | | `EIN0080` | Wait for the supplied rate-limit delay. | | `EIN0081` | Apply bounded backoff for capacity exhaustion. | See [submission recovery](/infinity-interop/intents/submission-recovery) for registration windows and lost responses. --- # Register an open-flow order URL: https://docs.c8ntinuum.com/infinity-interop/intents/api/order-create `POST /v1/order` This endpoint registers an eligible open-flow quote after its disclosed wallet transaction. OIF execution mechanisms use `POST /order/openfor` instead. Select the submission endpoint from the validated quote mechanism. ## Request | Field | Meaning | |---|---| | `quoteRequestId` | Quote round identifier. | | `quoteId` | Selected quote identifier. | | `artifactHash` | Echo of `disclosure.signableHash`. | | `signature` | Order-intent signature, when required. | | `signer` | Paying account that signed the intent. | | `scheme` | Signature scheme accepted by the quote and deployment. | `signature`, `signer`, and `scheme` must appear together. Unsigned registration requires an explicit deployment policy. Infinity Hub rechecks quote ownership, expiry, configuration, and artifact binding. The acknowledgement contains `orderId`, `quoteId`, `createdAt`, and `status: CREATED`. Use `GET /status/{orderId}` for subsequent Infinity Hub lifecycle state. A repeat for an existing accepted quote returns its acknowledgement. A registration refusal cannot undo a wallet transaction. Do not broadcast another transaction merely to repair tracking. --- # Get upstream status URL: https://docs.c8ntinuum.com/infinity-interop/intents/api/order-upstream-status `GET /v1/order/{orderId}/status` Use an upstream order identifier or `hubOrderId` from an openFor submission. Keep the original authenticated subject. Unknown and foreign identifiers return `EIN0009`. ## Response interpretation | Field | Meaning | |---|---| | `state` | Accepted upstream lifecycle state, when available. | | `history` | Observed state transitions. | | `failedAt`, `failureReason` | Upstream failure information. | | `fillTransaction` | Reported transaction reference; not independently proven here. | | `upstreamFillReported`, `filled` | Upstream fill indicator. | | `upstreamStale` | The upstream view is not a current confirmation. | | `lastUpstreamSyncAt` | Time of the last accepted upstream confirmation. | | `chain` | Chain state observed by Infinity Hub, when available. | | `upstreamUnavailable` | Only Infinity Hub's own chain record is available. | | `finalityVerified` | `false`; this response is not an independent finality proof. | Reported states include `created`, `pending`, `executing`, `executed`, `settling`, `settled`, `finalized`, `refunded`, and `failed`. `failed` can advance after later delivery evidence. Infinity Hub rejects contradictory or backward upstream transitions. When `upstreamUnavailable` is true, render `chain` instead of assuming that `state` exists. The chain-only response omits upstream history and fill references. Resolve reported fill transactions through the on-chain views before treating them as observed facts. Freshness defaults are 5 seconds for active states and 60 seconds for final upstream states. Deployment configuration can change these intervals. Faster polling can return the same projection. --- # Get Infinity Hub status URL: https://docs.c8ntinuum.com/infinity-interop/intents/api/hub-status `GET /v1/status/{orderId}` Use the Infinity Hub order identifier from an open-flow acknowledgement or the `hubOrderId` from an openFor acknowledgement. The path identifier requires 64 lowercase hexadecimal characters without `0x`. The response describes Infinity Hub's lifecycle projection. For open-flow orders, it can lag upstream reports and chain transactions. For openFor orders, this endpoint shows only the `intent` domain with `CREATED`. It does not read their chain facts under the on-chain identifier. Further polling of this endpoint cannot track their delivery or settlement. Keep the original authenticated subject. Use `GET /order/{orderId}/status` for the upstream projection. Use the on-chain fill view for observed deposit, fill, settlement, and refund events. ## Response fields | Field | Meaning | |---|---| | `domains` | Lifecycle domains with `state`, `terminal`, and optional transition or finality fields. | | `lastEventSeq` | Latest event sequence included in the projection. | | `asOf` | Response time, not proof of current chain coverage. | | `watermarks` | Available chain coverage, with block number and observation time. | This lookup is not scoped to the caller's tenant or subject. The identifier selects the record; the subject supplies metering context. Enforce ownership in your backend before exposing this lookup as private account history. A stale or unchanged Infinity Hub projection does not prove that execution stopped. Reconcile all relevant evidence before enabling a replacement order. The default Infinity Hub status cache is 2 seconds. --- # List orders URL: https://docs.c8ntinuum.com/infinity-interop/intents/api/orders-list `GET /v1/orders` The public gateway requires a server API key for order history. The subject selects the user's submissions within the authenticated tenant. This endpoint lists `POST /order/openfor` submissions. It does not list open-flow registrations from `POST /order`. For delegated requests, compare the returned `subject` with the requested subject. Reject a response with a different subject. ## Pagination Use `limit` to request a page size. The default is 100 entries. The maximum is 500 entries. Start with `GET /orders?cursor=&limit=100`. The explicit empty `cursor` selects cursor pagination. Use the returned `nextCursor` unchanged for the next request. Do not combine `cursor` with `since`. Do not reconstruct cursors from timestamps. Without `cursor`, the endpoint returns a legacy page without `nextCursor`. Cursor pages follow recorded submission order. Recent rows can appear again because the cursor preserves a safety interval. Remove duplicate rows by `orderId`. A page shorter than `limit` means that the reader has reached the current end. ## Current order state Rows combine submission identifiers with the available chain record. Use `onchainOrderId` for the on-chain views. The chain record can include source transaction, inputs, outputs, lifecycle state, and refund information. The row's `state` is the initial upstream state and does not change. Use `lifecycle` and `chain.status` for current progress. The stored projection sets `refundRequiresOnchainCheck` to `true`. Check the escrow before presenting a refund as executable. Read the effective escrow deadline when an extension is possible. A missing chain record can mean that the observer has not recorded the Open event yet. It does not establish that the wallet transaction failed. --- # Get observed fills URL: https://docs.c8ntinuum.com/infinity-interop/intents/api/onchain-fill `GET /v1/onchain/{orderId}/fill` Use an on-chain identifier with `0x` and 64 hexadecimal digits. Infinity Hub returns observed facts from its chain projections. | Field | Meaning | |---|---| | `onchainOrderId` | Requested contract order identifier. | | `open` | Observed escrow Open event, when available. | | `outputs` | Required outputs and each matching observed fill. | | `filled` | Fill that completed the entire verified output set. | | `settled` | Observed origin settlement event. | | `refunded` | Observed origin refund event. | | `watermarks` | Observer progress and update time for the relevant chains. | An event fact contains `chainDomain`, `txHash`, `blockNumber`, and `observedAt`. Each output entry contains `index`, `outputHash`, and available chain and fill data. A partial fill does not produce top-level `filled`. ## Negative evidence An absent event means that Infinity Hub has not observed it within the stated coverage. A stale watermark cannot establish that no fill occurred. The default maximum watermark age for negative fill evidence is 30 seconds. For a verified Open, freshness follows the chains named by that order. For a submitted but unopened order, verified submission identity can provide the relevant source and destination chains. Without sufficient verified identity, Infinity Hub uses the broader configured-chain freshness requirement. An unavailable or stale required observer can produce `EIN0051`. --- # Resolve an order by transaction URL: https://docs.c8ntinuum.com/infinity-interop/intents/api/onchain-fill-by-tx `GET /v1/onchain/tx/{chainDomain}/{txHash}/order` Use the chain domain and transaction identifier from the reported execution. EVM transaction hashes use hexadecimal encoding. Solana transaction signatures use base58 encoding. The endpoint resolves transactions recorded by Infinity Hub's observers. A missing result can mean that observation is incomplete. It does not prove that the transaction failed or never reached the chain. Use the resolved on-chain order identifier for the fill view. Check the returned output progress and settlement evidence separately. Do not treat an upstream `fillTransaction` reference as verified before resolving its chain evidence. --- # Get an escrow order URL: https://docs.c8ntinuum.com/infinity-interop/intents/api/onchain-order `GET /v1/onchain/{orderId}/order` Use the on-chain order identifier. This endpoint supplies the EVM escrow order tuple for a known order. The tuple includes the user, inputs, outputs, nonce, deadlines, and input oracle. Use the complete tuple when the escrow requires `refund(order)`. Do not reconstruct it from display amounts or upstream status fields. Verify the escrow address and chain against trusted deployment configuration. The tuple alone does not establish current refund eligibility. Read the escrow's state and effective refund deadline before sending. For Solana, use the [refund transaction endpoint](/infinity-interop/intents/api/onchain-refund). --- # Build a Solana refund URL: https://docs.c8ntinuum.com/infinity-interop/intents/api/onchain-refund `GET /v1/onchain/{orderId}/refund` This endpoint builds an unsigned refund transaction for a Solana-origin order. Infinity Hub reads the escrow record, cluster clock, input mints, and effective deadline. It simulates the transaction before returning it. The order's user is the sole signer and fee payer. The wallet signs and broadcasts the returned transaction. | Field | Meaning | |---|---| | `onchainOrderId`, `chainDomain`, `program` | Order and origin program identity. | | `transaction`, `encoding` | Serialized transaction in `base64`. | | `feePayer`, `signers` | Required wallet account. | | `recentBlockhash`, `lastValidBlockHeight` | Transaction lifetime. | | `refundableAfter` | Effective refund deadline in Unix seconds. | | `unwrap` | Whether the transaction closes the user's wrapped-SOL account. | | `computeUnits` | Simulated compute usage. | The optional `unwrap` query parameter defaults to `false`. When applicable, `unwrap=true` closes the whole wrapped-SOL account, including any existing balance. Obtain user approval for that effect before requesting it. Validate the program, recipient, accounts, and instructions against trusted configuration. Request a fresh transaction after `lastValidBlockHeight` passes. Reconcile any earlier broadcast before sending another refund transaction. --- # Same-chain swaps URL: https://docs.c8ntinuum.com/infinity-interop/intents/api/swaps A same-chain swap uses one wallet-broadcast router transaction. It does not create a cross-chain escrow order or require solver reimbursement. Approval transactions, when required, are separate transactions. Infinity Hub supports swap reporting on configured EVM and Solana chains. Confirm that the selected gateway forwards these endpoints before enabling reporting. ## Report a transaction `POST /v1/swaps` | Field | Requirement | Meaning | |---|---|---| | `chainDomain` | Required | Execution chain. | | `txHash` | Required | Swap transaction hash or Solana signature. | | `sourceAccount` | Required | Paying wallet from the quote. | | `quoteId` | Required | Server-issued same-chain quote identifier. | | `nonce` | Optional, EVM only | Actual transaction nonce as a decimal string. | | `replacesTxHash` | Optional, EVM only | Previously reported transaction replaced by `txHash`. | Report the swap transaction, not the token approval. Do not substitute the wallet's pending nonce for the actual transaction nonce. Retry a lost report with the same quote and transaction identity. Infinity Hub validates quote ownership and execution binding before accepting the watch. A replacement must match the original sender, nonce, and issued call. A different call or cancellation is not a successful swap. ## Read tracking `GET /v1/swaps` lists the subject's reports. `GET /v1/swaps/{chainDomain}/{txHash}` reads one report. The list defaults to 100 entries and caps a page at 500 entries. An absent or empty `cursor` starts from the newest row. Pass each returned `nextCursor` unchanged to the next request. Stop when `nextCursor` is absent. A full final page can return a cursor followed by an empty page. These pagination rules differ from [order history](/infinity-interop/intents/api/orders-list). Tracking depends on RPC evidence and configured confirmation requirements. Infinity Hub does not infer success solely from a wallet-reported hash. For Solana, the returned quote binds the fee payer, blockhash, and ordered instructions. Do not modify the returned transaction before signing. If its lifetime expires before broadcast, obtain a new quote. After broadcast, reconcile the original transaction before requesting replacement execution. --- # Integration SDK URL: https://docs.c8ntinuum.com/infinity-interop/intents/sdk `@c8ntinuum/infinity-interop-sdk` provides application workflows over the public Infinity Hub gateway. It combines transport selection, quote validation, wallet adapters, execution, tracking, and refund helpers. | Area | Entry point | |---|---| | Client and browser transports | `@c8ntinuum/infinity-interop-sdk` | | Server transport and partner proxy | `@c8ntinuum/infinity-interop-sdk/server` | | EVM wallet adapters | `@c8ntinuum/infinity-interop-sdk/evm` | | Solana wallet adapters | `@c8ntinuum/infinity-interop-sdk/solana` | Infinity Hub also provides separate packages named `@c8ntinuum/hub-client` and `@c8ntinuum/hub-client-ts`. They have different interfaces and authentication responsibilities. Do not substitute one package name for another in examples. Start with [installation](/infinity-interop/intents/sdk/installation), then select a [backend](/infinity-interop/intents/sdk/partner-backend) or [browser](/infinity-interop/intents/sdk/frontend) integration. Pin signing trust before enabling wallet execution. See [quotes and checks](/infinity-interop/intents/sdk/quotes). --- # SDK setup URL: https://docs.c8ntinuum.com/infinity-interop/intents/sdk/installation Obtain the integration SDK distribution through your integration access. Confirm the available package source before adding a registry dependency. This documentation does not assume that the package is published to a public registry. The package identifier remains `@c8ntinuum/infinity-interop-sdk` despite the documentation section's new name. ## Entry points | Import | Responsibility | |---|---| | `@c8ntinuum/infinity-interop-sdk` | Client, browser transports, quote checks, execution, and tracking. | | `@c8ntinuum/infinity-interop-sdk/server` | Server credentials and partner proxy. | | `@c8ntinuum/infinity-interop-sdk/evm` | viem and account-based wallet adapters. | | `@c8ntinuum/infinity-interop-sdk/solana` | Wallet Standard and keypair adapters. | Use the package manifest for supported runtime and peer dependencies. The EVM adapters require `viem`. Browser cryptographic operations require a secure context and the required Web Crypto capabilities. Keep the `/server` entry point out of browser bundles. Keep API keys and server-held wallet keys in server-side secret storage. ## Compatibility checks Check the installed client's request validation and quote verification against the selected Infinity Hub schema. In particular, verify support for slippage allocations, EIP-3009, Solana wallet plans, and chain-only status responses. Infinity Hub's acceptance of a request does not establish that an older client can validate its response. ## Signing trust Configure trusted chains, settlers, oracles, proxies, routers, and programs independently of quote responses. Pass this configuration as `signingTrust`. A missing or invalid trust configuration must prevent signing. --- # SDK quickstart URL: https://docs.c8ntinuum.com/infinity-interop/intents/sdk/quickstart This example assumes that the integration SDK is available in the project. It also requires a configured wallet adapter and independently supplied signing trust. ## Server client ```ts const client = createInteropClient({ transport: hubTransport({ baseUrl: process.env.HUB_BASE_URL!, apiKey: process.env.HUB_API_KEY!, }), subject: "application-user-id", signingTrust: process.env.SIGNING_TRUST_JSON, }); ``` Use the gateway origin as `HUB_BASE_URL`. Use a subject derived from the authenticated application user. ## Quote and validate ```ts const catalog = await client.getCatalog(); const quote = await client.getQuote(request); const report = await client.vetQuote(quote); if (!report.ok) throw new Error("Quote validation failed."); ``` Construct `request` from the catalog and user inputs. Use the [quote fields](/infinity-interop/intents/api/quote), including `sourceAccount` and integer amount strings. Display the validated terms before proceeding. ## Execute ```ts const result = await client.executeQuote({ quote, wallets: { evm }, onEvent: (event) => updateProgress(event), }); ``` Here, `evm` is the application's configured wallet adapter. `updateProgress` is the application's event handler. Provide the Solana adapter and required RPC access for a Solana source. Preserve execution identifiers and transaction hashes. Handle review-required and unknown-outcome errors explicitly. See [execution](/infinity-interop/intents/sdk/execution). --- # Partner backend URL: https://docs.c8ntinuum.com/infinity-interop/intents/sdk/partner-backend A partner backend holds the secret Infinity Hub API key and exposes an authenticated application endpoint. The browser uses `proxyTransport` to call that endpoint. ## Responsibilities Authenticate the application user before forwarding requests. Derive `X-Infinity-Subject` from the authenticated session. Keep quote and order ownership bound to that subject. Allow only the required integration endpoints. Apply request-size limits and application rate limits. The SDK provides `createInteropProxy` and `toNodeListener` for supported server integrations. Use the installed package's declarations for their framework adapter options. `hubTransport` supplies the server's gateway credential. An in-memory ownership store does not survive a process restart or coordinate multiple replicas. Use durable shared ownership storage when the application requires those properties. Do not treat a browser-provided subject as authorization. ## Timeouts and retries Preserve the original request after a lost submission response. Propagate deferred-submission delays to the browser. Do not convert an unknown submission outcome into a definitive refusal. Do not retry `EIN0052` automatically. Keep a stable user identifier across quote, submission, and tracking requests. See [submission recovery](/infinity-interop/intents/submission-recovery). --- # Browser integration URL: https://docs.c8ntinuum.com/infinity-interop/intents/sdk/frontend The browser can call a partner backend or use a public project identifier. It must not contain the secret Infinity Hub API key. ## Public project transport ```ts const client = createInteropClient({ transport: projectTransport({ baseUrl: "https://proxy-api.infinimesh.net", projectId: PUBLIC_PROJECT_ID, }), signingTrust: PINNED_SIGNING_TRUST, }); ``` Configure the project to allow the application's origin. The transport can assign a persistent visitor subject. A visitor subject labels requests but does not authenticate a person. Private order history requires the application backend. ## Partner proxy transport Use `proxyTransport({ url })` for the authenticated application endpoint. Pass application session credentials according to the backend's authentication design. Do not send an Infinity Hub secret through browser request headers. ## User interface state Display the paying account, recipient, assets, amounts, and quote expiry before signing. Request renewed approval when replacement quote terms are worse. Display delivery and settlement as separate stages. Preserve unresolved attempts across navigation and reload where possible. Do not silently create another order after an unknown outcome. See [execution](/infinity-interop/intents/sdk/execution) and [errors](/infinity-interop/intents/sdk/errors). --- # Wallet adapters URL: https://docs.c8ntinuum.com/infinity-interop/intents/sdk/wallets The SDK uses wallet adapters to request signatures and transactions. Select the adapter for the source chain and wallet environment. | Adapter | Use | |---|---| | `evmWalletFromEip1193` | Injected EVM provider. | | `evmWalletFromViem` | viem wallet client. | | `evmWalletFromAccount` | Server-held EVM account with configured RPC endpoints. | | `solanaWalletFromStandard` | Wallet Standard browser wallet. | | `solanaWalletFromKeypair` | Server-held Solana keypair. | Use the installed package's declarations for adapter configuration. Keep server-held keys outside browser code and repositories. ## Identity checks Check the connected account against the quote's `sourceAccount`. Check the chain identifier before signing an EVM transaction. Check the Solana cluster identity and configured programs before signing a Solana message. Different local chains can reuse the same numeric identifier. Use chain-instance checks where the adapter supports them. ## Solana signatures The selected execution mechanism determines whether the wallet signs a message or transaction. Preserve the quoted bytes and signer order. Validate any wallet-returned transaction before extracting or forwarding its signature. Do not accept added instructions or a changed fee payer. Wallet-paid plans require support for their declared transaction format. Check wallet capability before presenting an executable route. --- # Integration testing URL: https://docs.c8ntinuum.com/infinity-interop/intents/sdk/testing Use test credentials and wallets on the configured test networks. Use separate signing trust for each deployment. Do not reuse production wallet keys in test fixtures. ## Required scenarios | Scenario | Expected result | |---|---| | Wrong wallet or chain | Signing stops before asset movement. | | Modified recipient or amount | Quote validation fails. | | Missing signing trust | Signing stops. | | Explicit zero tolerance | The request and validated quote preserve zero. | | Deferred submission | The same bytes are retried after the supplied delay. | | Unknown outcome | The application preserves the attempt without creating another order. | | Partial output evidence | The application does not display complete delivery. | | Chain-only status | The application renders the `chain` record without requiring upstream `state`. | | Solana swap succeeds but open fails | Recovery preserves the user's resulting CTM and reconciles the original open. | | Extended refund deadline | The application uses the effective escrow deadline. | Validate examples against the actual package declarations and selected endpoint schema. Mock tests do not establish deployed contract compatibility or real signing by Infinity Solvers and the Attester Network. Record the chains, deployment addresses, and source revisions used for acceptance testing. --- # Execution mechanisms URL: https://docs.c8ntinuum.com/infinity-interop/intents/sdk/lanes The SDK calls an execution mechanism a `lane`. `detectLane` identifies it from the quote response. An unsupported lane must not proceed to signing. | Mechanism | User operation | Tracking | |---|---|---| | Permit2 escrow | Approve the required allowance, then sign the witness. | openFor submission and order status. | | EIP-3009 escrow | Sign the token authorization. | openFor submission and order status. | | Native CTM wrap | Send the disclosed proxy transaction. | Unsigned openFor registration. | | Token-in swap | Approve the exact sale where required, then send the transaction. | Unsigned openFor registration. | | Sponsored Solana | Sign the validated message. | Signed openFor submission. | | Solana wallet plan | Register, then sign and broadcast each step. | Order status and chain observations. | | Same-chain swap | Send the router transaction. | `/swaps` transaction report. | `executeQuote` handles supported order mechanisms. `executeSameChainSwap` handles the separate same-chain execution workflow. The installed client and gateway must both support the selected mechanism. Native CTM wrapping applies only on c8ntinuum. Native ETH, BNB, and SOL use their supported swap-input paths. A Solana split plan can leave CTM in the wallet if its open step fails. See [Solana execution](/infinity-interop/intents/api/concepts/solana-support). --- # Quotes and validation URL: https://docs.c8ntinuum.com/infinity-interop/intents/sdk/quotes `getQuote` returns an executable quote. `previewQuotes` returns indicative offers. `prepareQuote` prepares a selected cross-chain provider under a stable preparation identifier. Use `getQuote` to confirm a same-chain preview. The preparation endpoint rejects same-chain requests. ## Request fields Use the [API quote fields](/infinity-interop/intents/api/quote). Always supply `sourceAccount` and `recipient` separately. Use decimal strings for base-unit amounts. Use `toBaseUnits` and `formatUnits` for display conversion where appropriate. Infinity Hub treats `slippageBps` as total route tolerance. Explicit zero remains zero. Check that the installed SDK's validation accepts the deployment's supported tolerance and allocation fields. See [slippage allocation](/infinity-interop/intents/api/concepts/slippage). ## Validation ```ts const quote = await client.getQuote(request); const report = await client.vetQuote(quote); if (!report.ok) throw new Error("Quote validation failed."); ``` `vetQuote` compares the executable payload with the request and pinned signing trust. Checks include the wallet account, chain, assets, amounts, recipients, contracts, and deadlines. Solana wallet plans also require trusted lookup-table and mint reads. Do not obtain trust solely from the quote or catalog response. ## Expiry and replacement `quoteTimeLeftMs` exposes the remaining client-side validity. An identical cached quote retains its original expiry. Do not restart its countdown when it is received again. Execution can request a replacement when too little time remains for signing. `ReviewRequiredError` identifies replacement terms that require renewed user approval. Keep comparisons anchored to the terms the user reviewed. Do not silently increase the input or reduce the output. An expired quote does not cancel an already signed or broadcast operation. Reconcile the original attempt before obtaining another authorization. --- # Executing orders URL: https://docs.c8ntinuum.com/infinity-interop/intents/sdk/execution ```ts const result = await client.executeQuote({ quote, wallets: { evm, solana }, onEvent, signal, }); ``` Provide the wallet adapter required by the source chain. The SDK validates the quote, obtains approvals where required, requests authorization, submits or registers, and tracks execution. ## Execution options | Option | Purpose | |---|---| | `quote` | Terms reviewed by the user. | | `wallets` | Available source-wallet adapters. | | `onEvent` | Progress callback. | | `signal` | Cancellation signal for local work. | | `subject` | Per-call subject override, where supported. | | `acceptRequote` | Application policy for reviewing replacement terms. | Use the installed package's declarations for additional options. Cancellation after authorization or broadcast does not cancel the chain operation. ## Tracking Use progress events to distinguish approval, signature, submission, destination fill, and settlement. Preserve transaction hashes as soon as the wallet returns them. Use `trackOrder`, `waitForOrder`, or `waitForHubOrder` for later tracking. An upstream `failed` state can later advance after another solver delivers the order. A chain-only status response can omit upstream `state`. Use the chain evidence for contract-level completion. ## Deferred submissions `EIN0053` permits a bounded retry of the same request after the supplied delay. Do not create a replacement quote solely because a submission was deferred. ## Lost responses and unknown outcomes Preserve the durable Infinity Hub identifier and original request after a transport failure. A same-body retry can recover an acknowledgement. `EIN0052` ends automatic retrying because the earlier attempt may have executed. `OutcomeUnknownError` requires application recovery state. Prevent another authorization for the unresolved intent until its outcome or signed expiry is reconciled. See [submission recovery](/infinity-interop/intents/submission-recovery). --- # Order history and tracking URL: https://docs.c8ntinuum.com/infinity-interop/intents/sdk/orders Order history requires a server credential and the correct subject. Use a partner backend when a browser needs private history. `walkOrders` iterates pages using the server cursor. `listAllOrders` collects available pages where the application requires the full result. For direct API pagination, start with an explicit empty `cursor` query parameter. Preserve each returned `nextCursor` unchanged. Verify that the installed SDK sends this parameter when starting cursor pagination. Remove repeated rows by `orderId`. See [order pagination](/infinity-interop/intents/api/orders-list) for the stopping condition and legacy behavior. Keep upstream, Infinity Hub, and on-chain identifiers as distinct fields. Use `onchainOrderId` for contract observation and refund helpers. Do not infer an order's contract identifier from an unrelated transaction hash. ## Display state Display actual source spend and destination output evidence. Separate destination delivery from origin settlement. Use `isChainOnlyStatus`, `statusOutcome`, or `chainStatusOutcome` where supported by the client. Do not require upstream history when `upstreamUnavailable` is true. History rows preserve the initial upstream `state`. Use `lifecycle` and `chain.status` for current progress. Infinity Hub's status endpoint remains at `CREATED` for openFor orders. Use upstream status with its chain projection or the on-chain fill view instead. The API's chain projection can include refund eligibility and an extended deadline. Pass the effective deadline into refund checks where the helper supports it. Confirm escrow state before sending a refund. --- # SDK refunds URL: https://docs.c8ntinuum.com/infinity-interop/intents/sdk/refunds A refund returns the escrowed asset to the order's user. It does not reverse a completed input swap. For CTM routing, the escrowed asset can differ from the asset the user originally sold. ## EVM ```ts const check = await client.checkEvmRefund({ onchainOrderId, entry, wallet: evm, }); ``` The result can be `refundable`, `not-yet`, `filled`, `settled`, `refunded`, or `cannot-tell`. Do not interpret `cannot-tell` as evidence that no fill exists. The helper's `filled` result describes destination evidence, not a contract restriction on refunds. The EVM escrow can refund a filled order after its effective deadline if finalisation has not completed. Provide the wallet when live escrow checks are required. `prepareEvmRefund` constructs the plan without sending it. `refundEvmOrder` validates the order identity, escrow state, and effective deadline before requesting the transaction. The user pays the transaction fee. ## Solana `refundSolanaOrder` requests the unsigned refund transaction from Infinity Hub. The order's user signs and broadcasts it. The helper must validate the chain, program, accounts, and signer before sending. `unwrap: true` can close the entire wrapped-SOL account. Existing wrapped SOL in that account is also unwrapped. Obtain user approval for this effect. ## Recovery Read the effective deadline instead of relying only on signed `expires`. An expired blockhash requires a fresh transaction, after reconciliation of any prior broadcast. See [refund rules](/infinity-interop/intents/api/concepts/refunds) and [watcher behavior](/infinity-interop/settlement/watcher). --- # SDK errors URL: https://docs.c8ntinuum.com/infinity-interop/intents/sdk/errors Classify SDK errors before retrying. Use `adviseError` where available to map failures to application actions. Keep the original error and request identifier for diagnostics. | Error | Meaning | Required response | |---|---|---| | `VetError` | Executable quote validation failed. | Stop before signing. | | `ReviewRequiredError` | Replacement terms require review. | Obtain renewed user approval. | | `HubError` | The endpoint returned an error envelope. | Apply the documented code and reference policy. | | `RouteUnavailableError` | The gateway does not expose the requested endpoint. | Correct the integration capability or endpoint. | | `WalletError` | Wallet or transaction operation failed. | Distinguish rejection, revert, and uncertain broadcast. | | `OutcomeUnknownError` | Execution may have started without a confirmed result. | Preserve the attempt and reconcile it. | | `SolanaSplitWalletError` | A wallet-plan step failed. | Preserve completed-step evidence before recovery. | `isDeferredSubmission` identifies errors that permit a delayed identical submission. `isLostSubmission` identifies outcomes that require reconciliation. The two classes have different recovery requirements. Do not automatically retry `EIN0052`. Do not replace an unresolved order with a new quote or signature. See [execution](/infinity-interop/intents/sdk/execution). --- # SDK interface map URL: https://docs.c8ntinuum.com/infinity-interop/intents/sdk/reference The installed package's type declarations define exact signatures and supported options. This page maps the main interfaces to their responsibilities. ## Client and transports | Interface | Responsibility | |---|---| | `createInteropClient` | Compose transport, subject, catalog access, and signing trust. | | `createHubApi` | Expose typed endpoint methods with response bodies unchanged. | | `hubTransport` | Server API-key access to the gateway. | | `proxyTransport` | Browser access through an application backend. | | `projectTransport` | Browser access with a public project identifier. | | `createInteropProxy`, `toNodeListener` | Partner backend proxy integration. | ## Quotes and execution | Interface | Responsibility | |---|---| | `getCatalog` | Read and index configured chains and assets. | | `getQuote`, `previewQuotes`, `prepareQuote` | Request executable, indicative, or prepared terms. | | `detectLane` | Identify the execution mechanism. | | `vetQuote`, `verifyQuote`, `parseSigningTrust` | Validate payloads against requests and trusted deployments. | | `quoteTimeLeftMs` | Read remaining quote validity. | | `executeQuote` | Execute a supported order workflow. | | `executeSameChainSwap` | Execute and report a same-chain swap. | | `ensurePermit2Allowance`, `ensureExactAllowance` | Prepare required token allowances. | | `evmEscrowEnvelope` | Encode the tagged Permit2 escrow signature. | | `eip3009EscrowEnvelope` | Encode the tagged EIP-3009 escrow signature. | | `solanaEnvelope` | Encode the Solana signature and public key envelope. | The Permit2 escrow envelope prefixes the signature with `0x00`. The EIP-3009 escrow envelope prefixes it with `0x01`. Do not confuse `eip3009Envelope` with the tagged escrow helper. ## Tracking and refunds | Interface | Responsibility | |---|---| | `deriveHubOrderId` | Derive the durable alias from `quoteId`. | | `submitOpenFor` | Submit with supported recovery and deferral handling. | | `trackOrder`, `waitForOrder`, `waitForHubOrder` | Follow order progress. | | `walkOrders`, `listAllOrders` | Read paginated order history. | | `isChainOnlyStatus`, `statusOutcome`, `chainStatusOutcome` | Interpret upstream and chain-only responses. | | `canonicalOnchainOrderId` | Validate and normalize a contract order identifier. | | `checkEvmRefund`, `prepareEvmRefund`, `refundEvmOrder` | Check, construct, and send an EVM refund. | | `refundSolanaOrder` | Validate and execute a Solana refund built by Infinity Hub. | See [SDK setup](/infinity-interop/intents/sdk/installation) for package compatibility requirements. --- # Infinity Programs URL: https://docs.c8ntinuum.com/infinity-interop/programs Infinity Programs is a planned programmable interoperability product in the Infinity Interop suite. It will sit beside Infinity Intents. Details, availability, and documentation are to be announced. This page will link to them when they are published. For swaps and cross-chain transfers, see [Infinity Intents](/infinity-interop/intents). --- # Infinity Settlement URL: https://docs.c8ntinuum.com/infinity-interop/settlement Infinity Settlement checks each cross-chain message through three independent layers: Infinity Attest, Infinity Checkpoint and Infinity Verify. A solver delivers the requested assets before it receives the user's source deposit. Infinity Settlement helps establish that the delivery matches the order the user approved. This gives the solver the evidence it needs to collect payment. ## Three layers of verification | Layer | What it checks | Status | |---|---|---| | Infinity Attest | The Attester Network checks the delivery evidence and signs each message with FROST threshold signatures. Attesters are staked, and their group key comes from an on-chain distributed key generation (DKG). Slashing is not active yet. | In active development and devnet testing. | | Infinity Checkpoint | c8ntinuum validators sign BLS checkpoints of the c8ntinuum hub and the connected chains. | In active development and devnet testing. | | Infinity Verify | On-chain light clients of the connected chains, running on the c8ntinuum hub. IBC light clients provide this layer. | Live for IBC on c8ntinuum. | Verification Policies, which will set which layers must approve a message, are not available yet. The rest of this section documents the Attest path: attesters check a delivery and sign it, and the solver submits the proof to the source chain's contracts. An **attester** is a member of the Attester Network. It checks delivery records from the blockchain against the approved order. Attesters work together to create a signed statement about a verified delivery. The solver uses this statement as proof when it asks the source contracts to release the deposit. ## From delivery checks to solver payment ```mermaid flowchart TD D[Approved order and recorded delivery] --> A[Attester A checks] D --> B[Attester B checks] D --> C[Attester C checks] A --> S[Required members sign together] B --> S C --> S S --> F[Solver uses the proof to finalise] F --> P[Source contracts check and pay the solver] ``` The attester labels illustrate the process, not a fixed Attester Network size. The Attester Network configuration sets how many attesters must participate in signing. ## Check what the user received The approved order tells attesters what the solver must deliver. Each participating attester checks the recorded asset, amount, recipient, and destination network. It also checks that the delivery came through the expected contracts and met the order's conditions. Attesters wait for the required network confirmations before they sign. These confirmations reduce the risk that the network later removes the delivery record. An application message saying "complete" is not enough. The checks use blockchain evidence. If an order requires several deliveries, each delivery needs its own verified evidence. A missing or incomplete record delays the proof for that delivery. ## Sign the verified delivery The Attester Network uses a **threshold signature scheme (TSS)** to share signing authority across its attesters. The required number of members must participate to create a valid group signature. Each participating attester checks the evidence before it approves signing. One member cannot sign alone when the required number is greater than one. The resulting signature acts as a signed receipt for that delivery. It identifies the delivery being confirmed, so the source contracts can check the proof against the order. The signature does not move the user's deposit by itself. ## Let the solver complete settlement The source deposit waits in an **escrow**, a contract that holds assets until its release conditions are met. The solver collects the required signed proofs and submits them for verification on the source network. The solver then **finalises** the order: it asks the escrow to release the deposit to the approved payout address. The source contracts check the proofs and the solver's authority before releasing the assets. The attesters confirm delivery; the solver completes settlement. The recipient can therefore receive the destination assets before the solver receives payment from the escrow. ## When settlement takes longer Network delays, unavailable attesters, or missing evidence can delay settlement after the recipient receives the assets. On supported source networks, an authorized **watcher** can give eligible delivered orders more time before a refund becomes available. This gives the solver more time to complete settlement, but also delays the user's refund opportunity. A signed receipt does not guarantee payment to the solver. On EVM source networks, a refund can still succeed before the solver finalises if the effective refund deadline has passed. See [finalisation and refund timing](/infinity-interop/settlement/finalisation#evm-deadline-and-refund-race) for the EVM contract rules. How attesters check delivery and create signed proofs for the Attest layer. What the checks protect and which assumptions they depend on. --- # Attester Network URL: https://docs.c8ntinuum.com/infinity-interop/settlement/attester-network The Attester Network provides the Infinity Attest layer of [Infinity Settlement](/infinity-interop/settlement). Attesters are staked, and their group key comes from an on-chain distributed key generation (DKG). Slashing is not active yet. Infinity Attest is in active development and devnet testing. See [Terminology](/infinity-interop/intents/terminology) for the component and protocol definitions. An attester runs the engine's `verifier` binary with a separate threshold signing daemon. The attester validates orders and fills. The daemon holds its Attester Network key share. ## Validation sequence 1. Observe the source order through the configured escrow. 2. Validate the order identity and supported chains. 3. Observe the destination fill through the configured output settler. 4. Apply the configured confirmation depth. 5. Match the fill to the required output. 6. Derive the proof tuple from local evidence. 7. Confirm the requested digest to the signing daemon. 8. Participate in the threshold signing ceremony. 9. Publish the resulting signature to the attestation registry. Each output is verified and attested separately. The signed payload binds the solver identifier, order identifier, timestamp, token, amount, recipient, callback data, and context. The proof tuple also identifies the destination chain, remote oracle, and output settler. ## Local confirmation Each node reconstructs the requested digest from its own evidence. It does not accept an arbitrary digest supplied by another participant. Missing evidence, a failed reconstruction, or a confirmation timeout prevents signing. The signing request selects the signature curve and key generation explicitly. ## Canonical fill evidence For EVM and Solana fills, the engine checks the recorded solver and timestamp against the destination settler's fill record. A replacement observation must satisfy confirmation requirements and match that record. The engine increments `fill_revision` when it adopts a replacement. Obsolete ceremony results cannot update the new revision. An unreadable fill record defers processing. It does not establish that a replacement is valid. Previously issued signatures cannot be revoked by a local record update. The protocol therefore still depends on its chain finality assumptions. ## Missing observations The engine can recover known unfinished orders from durable state. It can also search configured EVM and Solana origins when fill or Attester Network evidence identifies a missing source order. Incomplete RPC history can prevent recovery. An attester does not attest a fill without the required source order evidence. Infinity Hub's observers provide application status data. Their observations do not replace the attester's own validation. --- # Attestation format URL: https://docs.c8ntinuum.com/infinity-interop/settlement/attestation-format The engine creates one attestation per verified output. The input oracle verifies the proof format required by the origin chain. ## Fill description The fill description concatenates these fields in order. Fixed-width integers use big-endian encoding. | Field | Width | Meaning | |---|---|---| | Solver identifier | 32 bytes | Solver recorded by the destination fill. | | Order identifier | 32 bytes | Identity of the source order. | | Timestamp | 4 bytes | Destination fill time as an unsigned integer. | | Token | 32 bytes | Encoded output asset. | | Amount | 32 bytes | Unsigned output amount in base units. | | Recipient | 32 bytes | Encoded output recipient. | | Callback length | 2 bytes | Length of callback data. | | Callback data | Variable | Exact callback bytes. | | Context length | 2 bytes | Length of execution context. | | Context | Variable | Exact context bytes. | Callback data and context each have a maximum encoded length of 65,535 bytes. The payload hash is `keccak256(fillDescription)`. ## Proof tuple | Field | Meaning | |---|---| | `remoteChainId` | Chain identifier of destination execution. | | `remoteOracle` | Oracle identifier from the required output. | | `application` | Destination output settler identifier. | | `dataHash` | Hash of the fill description. | For the EVM `FrostInputOracle`, the message digest is: ```solidity keccak256(abi.encodePacked(remoteChainId, remoteOracle, application, dataHash)) ``` The tuple occupies 128 bytes before hashing: four fields of 32 bytes each. The EVM oracle verifies the FROST Schnorr signature against its immutable secp256k1 group public key. The signature arguments are `rx`, `ry`, and `z`. FROST means Flexible Round-Optimized Schnorr Threshold signatures. Other chain families use their own encodings and signature verification paths. Do not apply EVM signature serialization to Solana or Move transactions. ## Origin-specific signatures The origin chain selects the signature suite because its oracle verifies the proof. The destination chain does not select that suite. | Origin family | Signed digest | Signature suite | |---|---|---| | EVM | Hash of the 128-byte proof tuple. | FROST over secp256k1. | | Solana | Hash of the 291-byte attestation record. | FROST over Ed25519. | | Move | Hash of the 291-byte attestation record. | FROST over Ed25519. | Solana and Move use the protocol record `ContinuumAttestationV1`. The digest is `keccak256(preimage)`. The preimage uses the following fixed layout and big-endian integer encoding. | Field | Width | |---|---| | Domain tag `CONTINUUM_ATTEST_V1` | 19 bytes. | | Format discriminator | 1 byte. | | Target virtual machine | 1 byte. | | Direction | 1 byte. | | Signature curve | 1 byte. | | Reserved source chain identifier | 32 bytes. | | Reserved destination chain identifier | 32 bytes. | | Remote chain identifier | 32 bytes. | | Remote oracle | 32 bytes. | | Application | 32 bytes. | | Order identifier | 32 bytes. | | Solver identifier | 32 bytes. | | Fill data hash | 32 bytes. | | Fill deadline | 4 bytes. | | Signer epoch | 8 bytes. | The target discriminator distinguishes Move from Solana. The curve discriminator identifies Ed25519 for these origin families. | Field | Value used by the engine | |---|---| | Format discriminator | `1`. | | Target virtual machine | `1` for Move; `2` for Solana. | | Direction | `0`, the deposit-side proof. | | Signature curve | `1`, Ed25519. | | Reserved source and destination identifiers | `0` in each 32-byte field. | | Signer epoch | `1`. | The wire signer epoch is separate from the signing request's Attester Network `KeyGeneration`. Changing the Attester Network key generation does not change this encoded epoch. The engine rejects a Solana oracle with a different signer epoch before signing. Protocol record names and discriminators must remain byte-exact. The EVM oracle does not sign or parse this 291-byte record. ## Proof storage After successful verification, the input oracle records the tuple as proven. The EVM oracle exposes that state through `isProven` and `efficientRequireProven`. The escrow requires the relevant proofs before finalisation. The attestation registry stores published signature bytes under the order and output index. Registry publication requires an authorized operator, but publication does not verify the signature bundle. The solver checks signatures before using them. The input oracle verifies the submitted proof on chain. --- # Solver finalisation URL: https://docs.c8ntinuum.com/infinity-interop/settlement/finalisation Finalisation releases the origin escrow deposit after the required destination fills are proven. The solver performs finalisation. The Attester Network supplies fill attestations. ## Procedure 1. Collect the published attestations for each required output. 2. Verify each signature against the order's expected attestation key and signature suite. 3. Submit the required proofs to the origin input oracle. 4. Confirm that the oracle records every required output proof. 5. Obtain the Infinity Solvers custody authorization required by the finalisation path. 6. Submit the finalisation transaction to the origin escrow. 7. Confirm the terminal settlement event at the configured observation depth. ## Output ownership In the engine's normal settlement path, the first output's recorded solver determines settlement ownership. The EVM escrow also supports recorded order purchases that can assign finalisation authority to a purchaser. Every output still requires its own valid fill proof. The engine does not treat a first-output proof as proof of the remaining outputs. ## Separate authorizations The Attester Network signs fill evidence. Infinity Solvers authorizes the settlement payout instruction where that path requires a signature. An attester signature cannot replace the Infinity Solvers custody authorization. The EVM escrow provides `finalise` and `finaliseWithSignature` entry points. The engine selects the chain-specific custody path and binds its payout destination. The escrow validates fill deadlines, proofs, and caller or signature authority before releasing the inputs. ## EVM deadline and refund race Each proven fill timestamp must be less than or equal to `fillDeadline`. Finalisation itself can occur after `expires` or the effective refund deadline. The order must still be deposited when finalisation executes. A watcher extension is not a prerequisite for finalisation. After the effective refund deadline, anyone can call `refund(order)` while the order remains deposited. The refund function does not check destination fills or published attestations. It can therefore refund a filled order before finalisation succeeds. Finalisation and refund compete for the same deposited state; the first successful transaction prevents the other. A refund returns the escrow deposit to the user without reversing destination delivery. An extension can delay refund eligibility while the solver obtains proofs and submits finalisation. It cannot recover a deposit after a successful refund. ## Recovery and terminal state An unavailable proof, pending receipt, or expired local timer does not prove that settlement failed. The engine preserves the paid order while it reconciles transactions and effective refund deadlines. An observed refund or finalisation establishes the terminal contract result. An Infinity Hub status response is a projection of upstream or chain evidence. Applications must distinguish destination delivery from origin finalisation. See [order status](/infinity-interop/intents/api/concepts/order-lifecycle) for the API views. --- # Watcher and refund deadlines URL: https://docs.c8ntinuum.com/infinity-interop/settlement/watcher The watcher protects eligible filled orders when settlement takes longer than expected. It does not fill orders, attest events, or hold threshold key shares. ## Supported origins The watcher supports configured EVM and Solana escrows. EVM requires `REFUND_EXTENDER_ROLE` on the escrow. Solana requires the configured `refund_extender` authority. Move solver or attester support does not imply Move watcher support. ## Extension conditions Every required output must have an observed fill. The order must remain deposited without a terminal finalisation or refund. The effective refund deadline must be sufficiently close or already past. Alternatively, the fill must exceed the configured patience interval within the extension window. The watcher checks the escrow before sending an extension. It does not extend partially filled orders. This fill requirement is watcher service policy. The EVM extension function checks authority and deposited state, but it does not require fill proofs. An authorized caller outside the watcher can therefore extend an unfilled order's deadline. Protected solvers receive priority and can receive repeated extensions while settlement remains delayed. Other solvers receive at most one extension under the watcher's policy. ## Deadline effects An extension moves the refund deadline later. It does not change the signed fill deadline, create a fill proof, or transfer escrowed assets. A deposited order can receive a late extension before a refund lands. The extension is calculated from the later of chain time and the current refund deadline. The implementation has no cumulative extension cap for protected orders. The EVM contract limits the resulting deadline to the maximum `uint32` Unix timestamp. Repeated extensions can therefore delay refund availability. Applications must read the effective escrow deadline instead of displaying `expires` as an unconditional refund time. ## Transaction recovery Only one extension operation can be in flight for an order. Retries preserve the original operation identity and extension duration. The watcher reconciles an uncertain transaction before requesting another additive extension. Extension success depends on the authority, its transaction fee balance, chain access, and transaction confirmation. The presence of a watcher does not guarantee settlement completion. A refund can execute before a late extension reaches the chain. Finalisation remains possible after the deadline if the escrow still holds the deposit and all proofs are valid. See the [EVM refund race](/infinity-interop/settlement/finalisation#evm-deadline-and-refund-race). --- # Settlement security URL: https://docs.c8ntinuum.com/infinity-interop/settlement/security Settlement security combines threshold authorization, validated chain evidence, and contract enforcement. Each mechanism has a separate responsibility. ## Threshold trust If the Attester Network has `n` attesters, signing requires the configured threshold `t`. Fewer than `t` compromised shares cannot produce a valid group signature under the scheme's security assumptions. A compromised threshold can produce false attestations under that key. Unavailable members can prevent signing when fewer than `t` members can participate. TSS distributes signing authority. It does not remove trust in the Attester Network or guarantee availability. ## Event validity Attesters derive proofs from observed source orders and destination fills. They verify output identity and apply confirmation requirements before signing. RPC omissions, unavailable historical data, and chain reorganizations can delay or invalidate observations. Independent processes can still share an upstream infrastructure failure. An attestation signature does not include a consensus proof from the destination chain. The input oracle verifies Attester Network authorization over the fill tuple. This trust model differs from IBC light-client verification. ## Replay boundaries The fill description includes the order identifier and exact output fields. The proof tuple includes the destination chain, remote oracle, output settler, and fill hash. These fields bind the signature to its execution context. The EVM proof digest does not add the origin chain or input oracle address as separate fields. The EVM order identifier commits to the origin chain identifier, escrow address, input oracle, and encoded order terms. Do not assume domain separation beyond the implemented encoding. ## Verification boundaries | Check | Responsible component | |---|---| | User authorization | Wallet signature checks and origin contracts. | | Local event reconstruction | Each participating attester engine. | | Threshold signature creation | Attester Network signing daemons. | | Registry publication permission | Attestation registry. | | Published signature validity | Solver and origin input oracle. | | Custody payout authorization | Infinity Solvers and origin escrow. | | Terminal result | Confirmed origin contract state. | The watcher has separate deadline-extension authority. That authority can delay refunds within contract rules. It cannot replace fill proofs or authorize custody transfers. The EVM contract does not require proof of a fill before accepting an authorized extension. The watcher's all-output fill requirement is service policy, not a contract restriction on the extension role. Attestations do not lock the deposit against refunds. A filled order can still be refunded before finalisation if its effective refund deadline has passed. The solver depends on timely finalisation or a confirmed extension to reduce that exposure. --- # Key management URL: https://docs.c8ntinuum.com/infinity-interop/settlement/key-management Distributed key generation (DKG) creates key shares without a single operator generating the complete private key. The Attester Network's DKG runs on-chain. Each threshold signing daemon holds its node's shares. The engine coordinates evidence and transaction submission without holding those shares. ## Key separation Infinity Solvers is a TSS-powered committee that custodies solver funds for extra security. It uses the `SPEND` identity. The Attester Network uses the `ATTEST` identity. Every signing request identifies its signature suite and key generation. For Solana and Move attestations, the encoded signer epoch remains `1` in the reviewed implementation. This protocol field does not automatically follow Attester Network key generations. Transaction fee accounts remain separate from these threshold keys. ## Order-bound attestation keys An EVM order names its input oracle in the signed order data. The `FrostInputOracle` stores an immutable group public key. A new attestation key generation therefore requires the corresponding oracle deployment for new orders. Existing orders retain their original oracle and require signatures under its key. The engine pins one attestation generation for the complete output signature bundle. Signatures from different generations cannot satisfy one order's oracle requirements. ## Rotation behavior The solver pauses new intake while a relevant attestation key rotation is active. Existing admitted work follows the engine's generation and recovery checks. The daemon retains a superseded generation until the next ceremony begins. Starting another ceremony can therefore affect unfinished orders that still require the superseded shares. Before starting another rotation, verify that orders requiring the previous generation have completed. Preserve the state needed to recover unfinished signing and settlement operations. ## Operational requirements Protect daemon state and communication keys. Maintain authenticated connectivity between signing daemons. Fund the operator and transaction fee accounts required by each role. Monitor peer health, signing refusals, discovery gaps, and unfinished settlements. Do not delete durable state to resolve an uncertain transaction or nonce allocation. Reconcile the chain result before changing recovery records. --- # Learn URL: https://docs.c8ntinuum.com/learn Learn pages explain how c8ntinuum works and why its design differs from a standard EVM chain. If you need exact network values or deployment commands, use [Developer Essentials](/developer-essentials). If you are building a mental model of the system, start here. ## Choose a path | Reader | Start with | Then read | |--------|------------|-----------| | EVM developer | [Execution and EVM](/learn/execution-evm) | [EVM Compatibility](/core-concepts/evm-compatibility), [Transaction Lifecycle](/learn/transaction-lifecycle), [Modules & Precompiles](/modules/overview) | | Cosmos or IBC developer | [Interoperability and IBC](/learn/interoperability) | [IBC](/core-concepts/ibc), [Cross-chain Verification](/modules/cross-chain-verification), [ICS20](/modules/cosmos/ics20) | | Protocol reader | [Chain Architecture](/learn/chain-architecture) | [Consensus](/learn/consensus), [Transactions](/core-concepts/transactions), [Precompile Families](/modules/overview) | | Integrator or custodian | [Transaction Lifecycle](/learn/transaction-lifecycle) | [Accounts](/core-concepts/accounts), [Tokens](/core-concepts/tokens), [Exchange and Custody Integration](/guides/exchange-integration) | ## Concept map Accounts, tokens, transactions, IBC, and EVM compatibility. The high-level shape of c8ntinuum's EVM, Cosmos, precompile, and interoperability layers. How Ethereum-compatible execution fits with native module access. Trust-minimized cross-chain communication, IBC, and light-client verification. Native precompile families exposed to Solidity contracts. Submission, validation, mempool handling, execution, receipts, and finality. ## What Learn is for Learn pages are intentionally conceptual. They explain relationships, trust boundaries, and developer implications. Exact ABI signatures, RPC method availability, endpoint limits, and operational runbooks live in Reference, Developer Essentials, and Node Operations pages. --- # Accounts URL: https://docs.c8ntinuum.com/core-concepts/accounts Accounts on c8ntinuum are compatible with both Ethereum and Cosmos SDK tooling. Every account has dual representation for cross-ecosystem compatibility. ## Address Formats ### Hex (Ethereum) ```text 0x91defC7fE5603DFA8CC9B655cF5772459BF10c6f ``` ### Bech32 (Cosmos) ```text c81j800cll9vq7l4rxfke2u74mjgkdlzrr0nfjdlj ``` Both formats reference the **same underlying account**. Use whichever is appropriate for your context — `0x` for EVM interactions, `c8` for Cosmos SDK operations. ## Key Derivation c8ntinuum uses Ethereum-compatible HD key derivation: | Property | Value | |----------|-------| | **Curve** | ECDSA secp256k1 | | **Default HD Path (`ctmd`)** | `m/44'/60'/0'/0/0` | | **Ledger Ethereum HD Path** | `m/44'/60'/0'/0/0` | | **Default Coin Type (`ctmd`)** | 60 (Ethereum) | | **Ledger Ethereum Coin Type** | 60 (Ethereum) | | **Key Type** | `eth_secp256k1` | `ctmd keys add` uses coin type `60` by default, so a mnemonic recovered with `ctmd` derives the same `0x` address as the first MetaMask account for that mnemonic. Coin type `118` (`m/44'/118'/0'/0/0`) is used only when you pass `--coin-type 118`, for example with the Ledger Cosmos app. c8ntinuum supports `eth_secp256k1` account keys. Ledger coin type `60` uses the Ethereum app and creates an `eth_secp256k1` public key; Ledger coin type `118` uses the Cosmos app and creates a Cosmos `secp256k1` public key. ## Account Types | Type | Prefix | Key | |------|--------|-----| | **User accounts** | `c8` / `0x` | `eth_secp256k1` | | **Validator operators** | `c8valoper` | `eth_secp256k1` | | **Consensus nodes** | `c8valcons` | `ed25519` | ## EIP-7702 Status EIP-7702 Set Code is fully supported for EOA code delegation on c8ntinuum. ## Querying Accounts **JSON-RPC** (standard Ethereum): ```bash curl -X POST https://public-evm-rpc.c8ntinuum.com \ -H "Content-Type: application/json" \ -d '{"jsonrpc":"2.0","method":"eth_getBalance","params":["0x...","latest"],"id":1}' ``` **Cosmos REST API**: ```bash # Mainnet REST/LCD endpoint: curl "https://public-comet-grpc-web.c8ntinuum.io/cosmos/auth/v1beta1/accounts/{address}" # On local nodes, REST uses tcp://127.0.0.1:1317 when enabled: curl "http://127.0.0.1:1317/cosmos/auth/v1beta1/accounts/{address}" ``` --- # Tokens URL: https://docs.c8ntinuum.com/core-concepts/tokens ## Native Token c8ntinuum's native token is **CTM**. It uses 18-decimal precision to match Ethereum's denomination: ```text 1 CTM = 10^18 ctm (base denom) ``` | Field | Value | |-------|-------| | **Official name** | `c8ntinuum` | | **Symbol** | `CTM` | | **Base denom** | `ctm` | | **Decimals** | `18` | This mirrors Ethereum's: ```text 1 ETH = 10^18 wei ``` ## Token Types c8ntinuum supports two categories of assets: ### Cosmos Coins Tokens managed by the Cosmos SDK `x/bank` module. Used for staking, IBC transfers, governance deposits, and gas fees. ### EVM Tokens Standard Ethereum token contracts: - **ERC-20**: Fungible tokens - **ERC-721**: Non-fungible tokens (NFTs) - **ERC-1155**: Multi-token standard All Ethereum token standards work identically on c8ntinuum. ## Wrapped Native Token (WETH9) c8ntinuum ships with a canonical wrapped native token (WETH9-equivalent) pre-deployed at: ```text 0xc8Fb80fCc03f699C70ff0CC08C09106288888888 ``` On c8ntinuum (chain ID `8`) this contract is wrapped CTM: symbol `WCTM`, name `c8ntinuum`, 18 decimals. This provides an ERC-20 interface for CTM, enabling use in DeFi protocols that require ERC-20 tokens. The same address is a different contract on other chains. On Ethereum (chain ID `1`) it is the CTM ERC-20 token, and on BNB Chain (chain ID `56`) it is the CTM BEP-20 token, not wrapped CTM. Always identify the token by chain ID and address. ## Native-to-ERC20 Surfaces c8ntinuum has three related but distinct surfaces: | Surface | Address model | Use | |---------|---------------|-----| | WETH9 | Fixed pre-deployed contract | Standard wrapped CTM for most DeFi integrations. | | Native CTM ERC-20 | Registered token pair for `ctm` at `0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE` (symbol `CTM`) | ERC-20 methods over native CTM balances, with no wrapping. `balanceOf` returns the same amount as the native balance. | | ERC20/WERC20 extensions | Dynamic registered token-pair addresses | Cosmos-native token pairs exposed through ERC-20-compatible methods. | Native CTM can move through a `transfer()` call on `0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE`. Such a transfer appears as an ERC-20 `Transfer` log from that address, not as transaction value, so deposit scanners should track both native value transfers and `Transfer` logs from this address. The [ERC20 extension](/modules/cosmos/erc20) and [WERC20 extension](/modules/cosmos/werc20) depend on registered token-pair addresses. Do not treat the fixed WETH9 address as the address for every WERC20 token-pair surface. ## Token Decimals in Precompiles Cosmos module precompiles take amounts in the base denom `ctm`, the smallest unit of CTM: 1 CTM = 10^18 `ctm`, the same scale as wei. Do not convert to 6 decimals as on other Cosmos chains; check each precompile's expected amount format before interacting with it. --- # Transactions URL: https://docs.c8ntinuum.com/core-concepts/transactions ## Transaction Types c8ntinuum supports two transaction types: ### Ethereum Transactions Standard EVM transactions are submitted through Ethereum-compatible JSON-RPC. | Type | EIP | Description | |------|-----|-------------| | **Legacy** | EIP-155 | Chain ID replay protection | | **Access List** | EIP-2930 | Pre-declared storage access | | **Dynamic Fee** | EIP-1559 | Base fee + priority fee | | **Set Code** | EIP-7702 | EOA code delegation (type 4) | ### Cosmos Transactions Cosmos SDK transactions using Protobuf-encoded messages. Can contain multiple messages in a single transaction (e.g., delegate + vote in one tx). ## Transaction Lifecycle ### 1. Submission Transaction is submitted via JSON-RPC (`eth_sendRawTransaction`) or Cosmos SDK. ### 2. Validation (CheckTx) - Signature verification - Fee and balance checks - Nonce validation - Gas limit verification ### 3. Mempool Valid transactions enter the mempool and are broadcast to validators. c8ntinuum supports nonce gap queuing — transactions with future nonces are queued locally and promoted automatically. ### 4. Execution (FinalizeBlock) - EVM bytecode execution with gas metering - State changes committed to the Cosmos SDK store - Receipt generation with bloom filters and logs ### 5. Finality After a transaction is included in a committed block, c8ntinuum has 1-block finality under standard CometBFT. Expected block time is 4s. ## Transaction Ordering Transactions are ordered by effective tip: - **Ethereum**: `min(gas_tip_cap, gas_fee_cap - base_fee)` - **Cosmos**: `(fee_amount / gas_limit) - base_fee` Higher tips = higher priority, regardless of transaction type. ## Receipts c8ntinuum generates Ethereum-compatible transaction receipts with standard fields: `transactionHash`, `blockHash`, `blockNumber`, `from`, `to`, `gasUsed`, `effectiveGasPrice`, `contractAddress`, `logs`, `logsBloom`, `status` --- # IBC URL: https://docs.c8ntinuum.com/core-concepts/ibc ## Overview c8ntinuum uses IBC (Inter-Blockchain Communication) for **trust-minimized cross-chain messaging**. Unlike bridge protocols that rely on trusted intermediaries, IBC uses light-client verification — safety reduces to the security assumptions of the underlying chains' consensus. c8ntinuum implements IBC v2 (Eureka) and exposes IBC functionality directly to Solidity via the [ICS02](/modules/cross-chain-verification) and [ICS20](/modules/cosmos/ics20) precompiles. IBC v2/Eureka support is a network and release-level capability. Before building production cross-chain logic, confirm the target channel, client type, and enabled precompile behavior against the target c8ntinuum release and the [Precompile ABI Reference](/reference/precompile-abi#ics02-and-ics20). ## Key Components Verifies the state of a counterparty chain using cryptographic proofs. Each client maintains a `ClientState` (parameters) and evolving `ConsensusState` snapshots. c8ntinuum registers the Tendermint light client (`07-tendermint`); the allowed client types are `07-tendermint` and `09-localhost`. Access from Solidity via the `ics02` precompile. Standardized cross-chain token transfer protocol. Supports composable cross-chain payments and asset movement without application-specific bridging logic. Access from Solidity via the `ics20` precompile. 1. **SendPacket** — Application data committed on source chain 2. **RecvPacket** — Destination verifies proof, executes `OnRecvPacket` 3. **Acknowledgement** — Source verifies ack, finalizes or reverts 4. **Timeout** — If deadline passes, source triggers rollback ## IBC from Solidity c8ntinuum's precompiles enable smart contracts to participate directly in IBC flows: ```solidity // Pseudocode: import ICS20I and construct Height timeoutHeight per the ABI reference. ICS20I(0x0000000000000000000000000000000000000802).transfer( "transfer", sourceChannel, denom, amount, address(this), // sender: must be the direct caller of the precompile (this contract holds the tokens) receiver, timeoutHeight, timeoutTimestamp, // channel-N (IBC v1): Unix nanoseconds; IBC v2 client ID: Unix seconds (see below) memo ); ``` The `timeoutTimestamp` rules depend on what you pass as `sourceChannel`. For a channel ID (`channel-N`, IBC v1), it is an absolute Unix time in nanoseconds, and `0` disables the timestamp timeout only when `timeoutHeight` is set, because both cannot be zero. For an IBC v2 client ID, it is an absolute Unix time in seconds that must be non-zero and no more than 24 hours after the current block time; set `timeoutHeight` to zero. The `sender` argument must equal the immediate caller of the precompile: an EOA calling it directly, or the calling contract itself. Otherwise the call reverts with `msg.sender address ... does not match the requester address ...`. Use [Precompile ABI Reference](/reference/precompile-abi#ics02-and-ics20) for the exact `Height` struct, return value, events, and revert behavior. ## Trust Model IBC on c8ntinuum is trust-minimized through light-client verification. The trust model is: 1. **Source chain consensus** — validators agree on the packet 2. **Light client verification** — destination chain verifies source state IBC light clients on c8ntinuum provide the Infinity Verify layer of [Infinity Settlement](/infinity-interop/settlement), and they are live. The other two layers, Infinity Attest and Infinity Checkpoint, are in active development and devnet testing. --- # EVM Compatibility URL: https://docs.c8ntinuum.com/core-concepts/evm-compatibility ## Compatibility Matrix | Feature | Ethereum | c8ntinuum | Status | |---------|----------|-----------|--------| | **EVM bytecode execution** | All opcodes | All opcodes up to the Prague fork; Osaka is not active, so opcodes such as `CLZ` are rejected | Compatible up to Prague | | **Transaction ordering** | Gas price + nonce | Fee priority + nonce | Compatible | | **Nonce management** | Sequential | Sequential + gap queuing | Compatible | | **EIP-1559 fees** | Base fee + tip | Base fee + tip; both are burned | Compatible | | **EIP-7702 (Set Code)** | EOA code delegation | Fully supported | Fully supported | | **EIP-2935 (Block Hashes)** | Historical block hashes | Supported by the EVM stack | Compatible | | **Event logs** | Ethereum event system | Ethereum-compatible logs | Compatible | | **JSON-RPC API** | Standard methods | Ethereum-compatible endpoint | Compatible | | **Smart contract standards** | ERC-20, 721, 1155, etc. | All standards | Compatible | | **Developer tools** | Hardhat, Foundry, Remix | Compatible through standard EVM RPC | Compatible | | **Block time** | ~12 seconds | Expected 4s | Different | | **Finality** | Multiple confirmations are common | 1-block finality under standard CometBFT | Different | | **Reorganizations** | Possible | Governed by CometBFT consensus finality | Different | | **Cross-chain** | Bridge protocols | Native IBC | Enhanced | | **Precompiles** | Standard crypto only | Standard + advanced | Enhanced | The matrix reflects the current c8ntinuum documentation status. For production wallet policy or protocol compatibility gates, verify precompile behavior, gas formulas, and node release version against the target network. ## Forward Compatibility c8ntinuum is **forward-compatible** with Ethereum: - It can run any valid Ethereum smart contract that targets the Prague EVM version or earlier. Compile with `evmVersion` set to `prague` or lower. - It can implement features not yet available on standard Ethereum EVM (zk verification, post-quantum signatures) ## What's Enhanced ### Additional Precompiles Beyond standard Ethereum precompiles (ecrecover, sha256, etc.), c8ntinuum provides: - **Cross-chain**: IBC light clients, ICS-20 transfers, SP1 zk proof verification - **Cryptography**: Ed25519, P-256, Schnorr, Schnorrkel, FROST, ML-DSA, SLH-DSA, VRF - **Hashing**: SHA-3, BLAKE2b, Poseidon, gnark-crypto aligned hashes - **Cosmos modules**: Bank, Staking, Distribution, Governance, Slashing, ERC-20 See [Modules](/modules/overview) for the full catalogue. ### Pre-deployed Contracts 13 widely-used contracts deployed at genesis (Multicall3, Permit2, WETH9, the Safe singleton factory, CreateX, etc.). See [Pre-deployed Contracts](/modules/predeployed-contracts). ### Fee Burn c8ntinuum follows EIP-1559-style fee behavior but burns the whole fee: the base fee and the priority fee are both burned by [`x/feeburn`](/modules/custom/feeburn), so validators receive no fee revenue. The priority fee still sets transaction priority. See [Gas on c8ntinuum](/developer-essentials/gas) for configured fee-market parameters. ## JSON-RPC Notes - Public endpoint method coverage is provider-dependent; see [RPC Reference](/rpc-reference/json-rpc-api) - Mining-related methods (`eth_mining`, `eth_hashrate`, `eth_coinbase`, `eth_getWork`, `eth_submitWork`, `eth_submitHashrate`) are not available and return JSON-RPC error `-32601` (CometBFT consensus, no mining) - `txpool_*` methods require compatible node configuration - Debug tracing is intended for full archive debug surfaces, not the default public RPC --- # Chain Architecture URL: https://docs.c8ntinuum.com/learn/chain-architecture c8ntinuum combines an Ethereum-compatible execution surface with Cosmos-native modules and trust-minimized interoperability. The important idea is not that these layers are separate products; it is that each layer has a clear responsibility and contracts can cross the boundary through precompiles. ## Layer model | Layer | Role | Developer-facing surface | |-------|------|--------------------------| | EVM execution | Runs Solidity bytecode, Ethereum transaction types, logs, receipts, and contract standards. | JSON-RPC, wallets, Foundry, Hardhat, Remix, ethers, viem | | Cosmos-native modules | Maintain chain-native state for bank, staking, distribution, governance, slashing, IBC, and custom policy modules. | Cosmos SDK messages, queries, REST/gRPC, module keepers | | Precompile layer | Exposes selected native module and cryptographic capabilities to Solidity at stable addresses. | Fixed-address or token-pair precompiles called from EVM contracts | | Interoperability | Verifies and transports cross-chain state and packets through IBC and light-client semantics. | ICS02 and ICS20 precompiles, IBC modules, relayer-facing flows | ## Request flow | Flow | Path through the system | Output | |------|-------------------------|--------| | Standard contract call | EVM JSON-RPC -> EVM execution -> state update | Ethereum-compatible receipt and logs | | Native module call from Solidity | EVM transaction -> precompile -> Cosmos module keeper -> state update | Ethereum-compatible receipt plus native module effects | | Cosmos SDK transaction | Cosmos transaction path -> ante/validation -> module keeper -> state update | Cosmos transaction response and indexed events | | IBC transfer from Solidity | EVM transaction -> ICS20 precompile -> IBC transfer keeper -> packet lifecycle | EVM receipt plus IBC packet handling | ## Trust boundaries - EVM bytecode follows Ethereum execution semantics for contract logic, gas metering, logs, and receipts. - Native modules own their own state and validation rules; precompiles expose controlled entry points into that state. - IBC safety depends on source-chain consensus, light-client verification, packet commitments, acknowledgements, and timeout handling. - [Infinity Settlement](/infinity-interop/settlement) checks cross-chain messages through several layers of security: the Attester Network, c8ntinuum validators, and on-chain light clients. IBC light clients are live on c8ntinuum. The Attester Network and validator checkpoints are in active development and devnet testing. - Operational controls such as the circuit breaker and IBC breaker are native modules with defined enforcement scope. ## What this means for app developers - Existing EVM applications can start with the standard EVM surface and only use precompiles when they need native functionality. - Contracts that call precompiles should treat them as system interfaces with versioned behavior, not ordinary deployable contracts. - Integrations that read historical state should decide whether JSON-RPC, an indexer, or an archive node is the right source. - Cross-chain applications should design around packet acknowledgement and timeout paths, not only the happy path. ## Next reading - [Execution and EVM](/learn/execution-evm) - [Interoperability and IBC](/learn/interoperability) - [Modules & Precompiles](/modules/overview) - [Circuit Breaker](/modules/custom/circuit) --- # Consensus URL: https://docs.c8ntinuum.com/learn/consensus c8ntinuum uses CometBFT-style Byzantine fault tolerant consensus. Blocks become final after validator agreement rather than waiting through probabilistic proof-of-work confirmations. The expected block time is `4s`. ## Protocol finality vs operational confirmations | Concept | Meaning | Typical use | |---------|---------|-------------| | Protocol finality | A committed block is final after one block under standard CometBFT assumptions. | Smart contracts, wallets, and normal dapp UX can treat included transactions as final. | | Operational confirmations | A business policy that waits additional blocks even after protocol finality. | Exchanges and custodians may wait 60 confirmations to absorb scanner lag, provider delay, and operational risk. | Both statements can be true: the protocol provides one-block finality, while high-value business workflows may choose a larger confirmation policy. ## Developer-facing effects | Area | Effect | |------|--------| | Finality | Transactions are final after one committed block under standard CometBFT assumptions. | | Expected block time | `4s` | | Reorganizations | Application logic should not expect Ethereum-style probabilistic reorg handling. | | Validators | Native staking and validator state are exposed through Cosmos modules and selected precompiles. | | JSON-RPC | Mining-related Ethereum RPC methods such as `eth_mining`, `eth_hashrate`, and `eth_coinbase` are not available and return JSON-RPC error `-32601`. | | Indexing | Indexers should still use cursors, receipt checks, and retry logic because infrastructure can lag even when consensus has finalized. | ## Failure model CometBFT finality assumes less than one-third Byzantine voting power and a network that can eventually make progress. The Learn pages describe developer-facing behavior, not validator operations or incident handling. Operator procedures belong in [Node Operations](/node-ops). ## Related pages - [Transactions](/core-concepts/transactions) - [Transaction Lifecycle](/learn/transaction-lifecycle) - [Differences from Ethereum](/developer-essentials/differences-from-ethereum) - [Deposit Processing](/guides/exchange-integration/deposit-processing) --- # Execution and EVM URL: https://docs.c8ntinuum.com/learn/execution-evm This page is a conceptual overview of how EVM and native execution interact. For the canonical compatibility matrix and JSON-RPC notes, see [EVM Compatibility](/core-concepts/evm-compatibility). For exact precompile signatures, see [Precompile ABI Reference](/reference/precompile-abi). c8ntinuum is a standard EVM chain from the perspective of Solidity contracts and Ethereum tooling. The extension point is that contracts can call native precompiles when they need Cosmos module access, cross-chain verification, cryptographic verification, hashing, or data utilities. ## What stays familiar | Area | Behavior | |------|----------| | Contracts | Solidity bytecode deploys and executes through the EVM. | | Wallets | EVM-compatible wallets sign and submit transactions for chain ID `8` on mainnet. | | Tooling | Foundry, Hardhat, Remix, ethers, viem, and web3.js use standard EVM RPC flows. | | Receipts and logs | EVM transactions produce Ethereum-compatible receipts, status fields, logs, and bloom filters. | | Token standards | ERC-20, ERC-721, ERC-1155, and ordinary Solidity interfaces work as expected. | ## What is extended | Extension | Why it exists | Learn more | |-----------|---------------|------------| | Native module access | Contracts can query or invoke selected Cosmos module behavior without reimplementing it in bytecode. | [Modules & Precompiles](/modules/overview) | | Cross-chain verification | Contracts can participate in IBC and proof-carrying cross-chain flows. | [Cross-chain Verification](/modules/cross-chain-verification) | | Cryptographic verification | Contracts can verify signatures, proofs, and randomness more efficiently than pure Solidity. | [Cryptographic Verification](/modules/cryptographic-verification) | | Hashing and data utilities | Contracts can use native hashing and structured-data helpers. | [Hashing](/modules/hashing), [Data Ergonomics](/modules/data-ergonomics) | ## EVM and Cosmos transaction paths | Transaction path | Submitted through | Executes in | Typical reader | |------------------|-------------------|-------------|----------------| | EVM transaction | `eth_sendRawTransaction` or wallet RPC | EVM, with optional precompile calls into native modules | Solidity developers and dapps | | Cosmos SDK transaction | Cosmos transaction broadcast | Cosmos SDK module handlers | Operators, module integrators, Cosmos tooling | | EVM precompile call | EVM transaction calling a fixed precompile address | Native implementation behind an EVM-compatible call boundary | Hybrid EVM/Cosmos applications | ## Practical rules - Treat precompiles as system interfaces: use the documented addresses and ABI reference for signatures. - Keep exact method signatures in [Precompile ABI Reference](/reference/precompile-abi); Learn pages should explain when and why to call a precompile. - Estimate gas against the target network because native execution and SDK metering can affect costs. - Use [EVM Compatibility](/core-concepts/evm-compatibility) for compatibility differences and [JSON-RPC API](/rpc-reference/json-rpc-api) for method availability. --- # Interoperability and IBC URL: https://docs.c8ntinuum.com/learn/interoperability This page covers the mental model and application-design checklist. For the canonical IBC component overview, packet lifecycle, and trust model, see [IBC](/core-concepts/ibc). c8ntinuum treats interoperability as authenticated communication between replicated state machines. c8ntinuum keeps cross-chain trust minimized with several independent layers of security: the Attester Network, whose staked attesters sign with MPC/TSS threshold signatures; c8ntinuum validators; and on-chain light clients. IBC light clients are live on c8ntinuum. The Attester Network and validator checkpoints are in active development and devnet testing. For IBC, this page covers light-client verification, packet semantics, acknowledgements, and timeout paths. ## Mental model | Concept | Meaning | Developer implication | |---------|---------|-----------------------| | Light client | Verifies another chain's state from cryptographic proofs and consensus updates. | IBC packet correctness reduces to counterparty consensus and proof verification. IBC light clients are the live Infinity Verify layer of Infinity Settlement. | | Packet | A cross-chain message committed on a source chain and verified on a destination chain. | Applications should model the message as asynchronous. | | Acknowledgement | A response proving the destination chain handled the packet. | Source-chain logic may need an acknowledgement branch. | | Timeout | A safety path when a packet is not completed before its deadline. | User-facing flows need refund or recovery behavior. | | Relayer | Off-chain actor that submits packet data and proofs between chains. | Relayer liveness affects completion time, not the underlying verification model. | ## Solidity access c8ntinuum exposes IBC functionality to smart contracts through precompiles: | Precompile | Role | |------------|------| | ICS02 | Client updates and membership or non-membership verification against a verified counterparty state. | | ICS20 | Fungible token transfer flows that use IBC packet semantics. | Exact signatures live in [Precompile ABI Reference](/reference/precompile-abi#ics02-and-ics20). For a conceptual overview of the precompile family, see [Cross-chain Verification](/modules/cross-chain-verification). ## Application design checklist - Decide whether the contract only initiates a transfer or also tracks acknowledgement/timeout outcomes. - Make timeout values explicit and visible to users. - Treat relayer delay as a normal asynchronous condition. - Keep source and destination address formats clear in UI and logs. - Use the IBC breaker and rate-limiter pages to understand operational safety controls. ## Intent execution and settlement [Infinity Intents](/infinity-interop/intents) describes order creation, user authorization, and solver delivery. [Infinity Settlement](/infinity-interop/settlement) describes attester validation, threshold signing, and solver finalisation. Infinity Settlement checks each cross-chain message through three independent layers: Infinity Attest, Infinity Checkpoint and Infinity Verify. - **Infinity Attest**: the Attester Network signs each message with FROST threshold signatures. Attesters are staked, and their group key comes from an on-chain distributed key generation (DKG). Slashing is not active yet. - **Infinity Checkpoint**: c8ntinuum validators sign BLS checkpoints of the c8ntinuum hub and the connected chains. - **Infinity Verify**: on-chain light clients of the connected chains, running on the c8ntinuum hub. IBC light clients provide this layer and are live on c8ntinuum. The Attester Network and validator checkpoints are in active development and devnet testing. Infinity Intents settles through the Attest path today: contracts on the source chain verify the attester proofs and enforce the order before they release the deposit. This differs from IBC light-client verification. ## Next reading - [IBC](/core-concepts/ibc) - [ICS20](/modules/cosmos/ics20) - [IBC Breaker](/modules/custom/ibc-breaker) - [IBC Rate-Limiter Extension](/modules/custom/ibc-rate-limiter-extension) - [Infinity Intents](/infinity-interop/intents) - [Infinity Settlement](/infinity-interop/settlement) --- # Modules & Precompiles URL: https://docs.c8ntinuum.com/modules/overview Precompiles are **natively executed system interfaces** exposed at fixed addresses. They are used when computation is too costly in EVM bytecode (e.g., SNARK verification) or when contracts must interface with native chain modules without re-implementing them in Solidity. For canonical addresses, ABI artifacts, import guidance, function signatures, events, reverts, and gas behavior, see the [Precompile ABI Reference](/reference/precompile-abi). c8ntinuum's precompiles are organized into five families. c8ntinuum also includes custom Cosmos modules for validator incentives, validator creation policy, chain availability controls, IBC safety controls, and fee burning. When to use ICS02, ICS20, SP1 verifiers, and heterogeneous verification helpers Bank, Staking, Distribution, Governance, Slashing, ERC-20 surfaces (catalogued below) Validator rewards, minimum self-delegation, circuit breaker, IBC controls, fee burn (catalogued below) Signature, VRF, threshold, and post-quantum verification guidance Native hashing surfaces and encoding guidance JSON, address conversion, and address-compression concepts --- ## Cross-Chain Verification & Interoperability Trust-minimized cross-chain communication via light-client semantics, zkVM verification, and heterogeneous chain support. | Precompile | Purpose | Details | |------------|---------|---------| | **ics02** | Light-client verification | Enables contracts to update verified remote consensus views and validate proof-carrying statements about remote state | | **ics20** | IBC fungible token transfers | Standardized cross-chain token transfer logic, composable payments and asset movement | | **sp1verifiergroth16** | Groth16 proof verification (SP1) | Verifies Groth16 proofs from SP1 programs — "prove off-chain, verify on-chain" | | **sp1verifierplonk** | Plonk proof verification (SP1) | Verifies Plonk proofs from SP1 programs, offering flexibility in proof size and verification cost | --- ## Native Module Access Cosmos-native modules and chain economics accessible from Solidity for hybrid Cosmos-EVM applications. | Precompile | Purpose | Details | Reference | |------------|---------|---------|-----------| | **bank** | Native asset accounting | Balance, supply, and denomination logic as first-class EVM operations | [Details](/modules/cosmos/bank) | | **erc20** | ERC-20 surface for native assets | Bridges Ethereum's token interface into the native token model | [Details](/modules/cosmos/erc20) | | **werc20** | Wrapped native token | WETH-like wrapper for the native token supporting ERC-20-only flows | [Details](/modules/cosmos/werc20) | | **staking** | Delegation state interface | Staking operations and state queries for liquid staking, vaults, automation | [Details](/modules/cosmos/staking) | | **distribution** | Rewards accounting | Programmatic reward handling and auto-compounding strategies | [Details](/modules/cosmos/distribution) | | **slashing** | Fault observability | Slashing and jailing semantics for validator risk assessment | [Details](/modules/cosmos/slashing) | | **gov** | Governance interface | Proposal and voting workflows, governance-driven automation | [Details](/modules/cosmos/governance) | | **valrewards** | Custom incentive surface | Specialized validator reward logic and incentive design | [Details](/modules/custom/validator-rewards) | | **bech32** | Address conversion | Conversion between bech32 and EVM address representations | [Details](/modules/cosmos/bech32) | --- ## Custom Modules c8ntinuum modules add chain-specific policy and operational controls around the standard Cosmos/EVM stack. | Module | Purpose | Details | |--------|---------|---------| | **x/valrewards** | Validator reward points and epoch payouts | [Validator Rewards](/modules/custom/validator-rewards) | | **x/msdcheck** | Minimum self-delegation floor across staking entry points | [Minimum Self-Delegation Check](/modules/custom/minimum-self-delegation) | | **x/circuit** | Global chain availability gate for native and EVM transaction routes | [Circuit Breaker](/modules/custom/circuit) | | **x/ibcbreaker** | Operator-controlled IBC availability gate for restricted outbound IBC initiation paths | [IBC Breaker](/modules/custom/ibc-breaker) | | **x/ibcratelimiterext** | Governance-managed operator whitelist for IBC rate-limiter mutation APIs | [IBC Rate-Limiter Extension](/modules/custom/ibc-rate-limiter-extension) | | **x/feeburn** | Burns all transaction fees, base fee and priority fee, every block | [Fee Burn](/modules/custom/feeburn) | --- ## Cryptographic Constructions Advanced signature schemes, threshold protocols, and verifiable randomness. | Precompile | Purpose | Details | |------------|---------|---------| | **ed25519** | EdDSA verification | Ed25519 signatures for Solana-style and EdDSA-based ecosystems | | **p256** | NIST P-256 verification | Mainstream curve for enterprise crypto and modern authentication | | **schnorr** | Schnorr over secp256k1 | Aggregation-friendly signatures in a widely deployed curve | | **schnorrkel** | Schnorrkel / sr25519 | Verification for Schnorrkel-style ecosystem signatures | | **frost** | FROST signature verification | Verifies a complete FROST signature (single-signer or aggregated) against a caller-supplied key; the caller enforces any threshold or roster policy | | **ecvrf** | Verifiable Random Functions | Publicly verifiable randomness for lotteries, leader election, and randomness beacons | | **pqmldsa** | Post-quantum (ML-DSA) | Lattice-based PQ signature verification (NIST standardized) | | **pqslhdsa** | Post-quantum (SLH-DSA) | Hash-based PQ signatures as complementary design point | --- ## Hashing Surfaces Standardized and ZK-efficient hashing aligned with modern proof systems. | Precompile | Purpose | Details | |------------|---------|---------| | **sha3hash** | SHA-3 family | Standardized hashing for commitments and cryptographic constructions | | **blake2bhash** | BLAKE2b | High-performance hashing for modern protocols | | **poseidonhash** | Poseidon (ZK-efficient) | Optimized for zero-knowledge circuits — matches off-chain proving systems | | **gnarkhash** | gnark-crypto aligned | Practical hash utilities for proof systems and zk engineering | --- ## Data Handling & Ergonomics Developer ergonomics and UX improvements for multi-domain applications. | Precompile | Purpose | Details | |------------|---------|---------| | **json** | Structured payload parsing | Interpret structured messages without brittle custom parsers | | **addresstable** | Address compression | Short-hands for frequently used addresses, reducing calldata and gas | | **bech32** | Address conversion | Conversion between EVM `0x...` and Cosmos `c8...` address formats (also listed under Native Module Access) | --- ## Design Notes - Precompiles are implemented as **native code** for gas-efficiency and correctness - Address assignments are **stable by design** to preserve composability across upgrades - When building protocols that depend on specific precompile behavior (zk verification, PQ signatures), refer to versioned specifications and tests ## Usage in Smart Contracts ```solidity // Pseudocode: import the canonical interfaces for the target release. IBank constant bank = IBank(IBANK_PRECOMPILE_ADDRESS); StakingI constant staking = StakingI(STAKING_PRECOMPILE_ADDRESS); // Query native token-pair balances bank.balances(msg.sender); // Delegate the contract's own funds to a validator. // The delegator must be the direct caller of the precompile (here, the contract). staking.delegate(address(this), validatorAddr, amount); ``` For exact return structs, imports, events, reverts, and gas behavior, use [Precompile ABI Reference](/reference/precompile-abi). Cosmos module precompiles take amounts in the base denom `ctm`, the smallest unit of CTM: 1 CTM = 10^18 `ctm`, the same scale as wei. Do not convert to 6 decimals as on other Cosmos chains; check each precompile's expected amount format before interacting with it. --- # Cross-chain Verification URL: https://docs.c8ntinuum.com/modules/cross-chain-verification Cross-chain verification precompiles let contracts reason about state or messages from other systems without trusting a bridge committee. They are for applications that need proof-carrying cross-chain behavior, not just ordinary local contract calls. ## Surfaces | Surface | Address | Use it for | Status in docs | |---------|---------|------------|----------------| | ICS02 client | `0x0000000000000000000000000000000000000807` | Client updates, membership proofs, and non-membership proofs. | ABI reference available | | ICS20 transfer | `0x0000000000000000000000000000000000000802` | IBC fungible token transfer flows. | Learn page and ABI reference available | | SP1 Groth16 verifier | `0x0000000000000000000000000000000000000600` | Verifying Groth16 proofs from SP1 programs. | ABI and gas schedule available | | SP1 Plonk verifier | `0x0000000000000000000000000000000000000700` | Verifying Plonk proofs from SP1 programs. | ABI and gas schedule available | ## When to use - Use ICS02 when a contract needs to verify a statement about remote chain state. - Use ICS20 when the application flow is token movement over IBC. - Use SP1 verifiers when the expensive computation or state transition is proven off-chain and checked on-chain. ## Design notes | Concern | Guidance | |---------|----------| | Trust model | Safety should reduce to source-chain consensus, proof soundness, and light-client verification. | | Liveness | Relayers or off-chain provers may affect completion time even when verification is trust-minimized. | | Timeouts | Cross-chain flows need explicit timeout and acknowledgement handling. | | Gas | Proof verification can be large; use [Precompile ABI Reference](/reference/precompile-abi#gas-schedule) for formulas. | ## Related pages - [Interoperability and IBC](/learn/interoperability) - [IBC](/core-concepts/ibc) - [ICS20](/modules/cosmos/ics20) - [Precompile ABI Reference](/reference/precompile-abi#ics02-and-ics20) --- # Cryptographic Verification URL: https://docs.c8ntinuum.com/modules/cryptographic-verification Cryptographic verification precompiles expose native implementations for primitives that would be expensive, awkward, or unavailable in ordinary EVM bytecode. They are verification surfaces: contracts pass structured inputs and receive success, failure, or decoded output according to the relevant ABI. ## Surfaces | Surface | Address | Use it for | |---------|---------|------------| | P256 / secp256r1 | `0x0000000000000000000000000000000000000100` | Raw-call P-256 verification for enterprise and passkey-style signatures. | | Ed25519 | `0x0000000000000000000000000000000000000500` | Ed25519 signature verification. | | Schnorr | `0x0000000000000000000000000000000000000703` | Schnorr verification over secp256k1-style ecosystems. | | Schnorrkel | `0x0000000000000000000000000000000000000704` | Schnorrkel / sr25519-style verification. | | ECVRF | `0x0000000000000000000000000000000000000708` | Verifying ECVRF proofs and returning the VRF output. An off-chain key holder produces each proof and sees the output first. | | FROST | `0x0000000000000000000000000000000000000709` | Verifying a complete FROST signature (single-signer or aggregated) against a caller-supplied verification key. The calling contract enforces any threshold, roster, or group-key policy. | | PQMLDSA | `0x0000000000000000000000000000000000000712` | ML-DSA post-quantum signature verification. | | PQSLHDSA | `0x0000000000000000000000000000000000000713` | SLH-DSA post-quantum signature verification. | ## When to use - Use these precompiles when a protocol must verify signatures or proofs from ecosystems that are not covered by standard Ethereum precompiles. - Prefer native precompile verification over pure Solidity implementations for gas-heavy cryptographic operations. - For P256, use a raw low-level call because the ABI reference documents no Solidity ABI for that address. ## Safety notes | Concern | Guidance | |---------|----------| | Input encoding | Follow the exact ABI or raw-call input shape from the canonical reference. | | Failure behavior | Verification failures may return `false`, empty bytes, or revert depending on the interface. | | Domain separation | Contracts remain responsible for message framing, replay protection, and domain separation. | | Upgrade boundary | Treat address, ABI, revert, and gas schedule changes as compatibility-sensitive. | ## Related pages - [Precompile ABI Reference](/reference/precompile-abi) - [Opcode Pricing](/developer-essentials/opcode-pricing) - [Oracles](/tooling-and-infrastructure/oracles) --- # Hashing URL: https://docs.c8ntinuum.com/modules/hashing Hashing precompiles provide native implementations for hash functions used by commitments, proof systems, interoperability protocols, and data structures. They are useful when Solidity-only hashing would be too expensive or when the application needs a hash family that is not built into the EVM. ## Surfaces | Surface | Address | Use it for | |---------|---------|------------| | Gnark hash | `0x0000000000000000000000000000000000000705` | gnark-crypto aligned hash utilities for proof-system integrations. | | SHA3 hash | `0x0000000000000000000000000000000000000706` | SHA-3 family hashing for standardized commitments. | | BLAKE2b hash | `0x0000000000000000000000000000000000000707` | BLAKE2b hashing for high-performance protocol integrations. | | Poseidon hash | `0x0000000000000000000000000000000000000711` | ZK-efficient hashing aligned with proving systems. | ## When to use - Use native hashing when a contract needs a hash family that Ethereum does not expose as a standard opcode or precompile. - Use Poseidon or gnark-aligned utilities when the off-chain proof system expects those hash semantics. - Use SHA-3 or BLAKE2b when integrating with external protocols that commit data using those functions. ## Implementation notes | Concern | Guidance | |---------|----------| | ABI details | Use [Precompile ABI Reference](/reference/precompile-abi) for method signatures and return values. | | Gas | Gnark hash costs `6000 + ceil(input bytes / 32) * 30`. SHA3 and BLAKE2b cost `3000 + ceil(input bytes / 32) * 30`. Poseidon costs a flat `3000`. Input bytes are the full ABI-encoded call data. | | Test vectors | Applications should keep test vectors for every hash function used in a protocol boundary. | | Encoding | Hashes are only as stable as the byte encoding passed into them; define serialization explicitly. | ## Related pages - [Modules & Precompiles](/modules/overview) - [Precompile ABI Reference](/reference/precompile-abi) - [Opcode Pricing](/developer-essentials/opcode-pricing) --- # Data Ergonomics URL: https://docs.c8ntinuum.com/modules/data-ergonomics Data ergonomics precompiles help contracts work with structured payloads and repeated address data. They are not core consensus concepts, but they can reduce glue code and make cross-domain applications easier to build. ## Surfaces | Surface | Address | Use it for | |---------|---------|------------| | JSON | `0x0000000000000000000000000000000000000701` | Reading structured JSON payloads through a native parser. | | Address table | `0x0000000000000000000000000000000000000710` | Short-hands for frequently used addresses, reducing repeated calldata in supported flows. | | Bech32 | `0x0000000000000000000000000000000000000400` | Converting between EVM `0x...` and Cosmos `c8...` address formats. | ## When to use - Use JSON parsing when structured payloads are part of a protocol boundary and native parsing is safer than brittle byte slicing. - Use address conversion when a contract must translate between EVM and Cosmos account representations. - Use address compression when a protocol passes the same addresses repeatedly: `register` an address once, after which `compress` encodes it as its table index and `decompress` reads it back. The interface is `AddressTableI`. ## Design notes | Concern | Guidance | |---------|----------| | Canonical encoding | Define the exact payload shape before relying on parser output. | | Address UX | Label `0x...`, `c8...`, `c8valoper...`, and `c8valcons...` formats clearly in interfaces. | | Failure behavior | Treat parse failure, unknown paths, and unsupported payload shapes as expected error cases. | | Reference boundary | Keep exact ABI signatures in [Precompile ABI Reference](/reference/precompile-abi). | ## Related pages - [Accounts](/core-concepts/accounts) - [Bech32](/modules/cosmos/bech32) - [Precompile ABI Reference](/reference/precompile-abi) --- # Staking URL: https://docs.c8ntinuum.com/modules/cosmos/staking ## Overview The Staking precompile provides a Solidity interface to the Cosmos SDK `x/staking` module. Smart contracts can manage their own delegations and query staking state. `createValidator` and `editValidator` must be called directly by the validator operator's account (an EOA or an EIP-7702 delegated account); calls from a smart contract revert. **Precompile Address**: `0x0000000000000000000000000000000000000800` ## Gas Costs | Method Type | Gas Cost | |-------------|----------| | **Transactions** | `2000 + (30 x bytes of input)` | | **Queries** | `1000 + (3 x bytes of input)` | ## Transaction Methods | Method | Description | |--------|-------------| | `createValidator` | Create a new validator with description, commission, and self-delegation | | `editValidator` | Update validator description and commission | | `delegate` | Delegate tokens to a validator | | `undelegate` | Undelegate tokens (begins unbonding period) | | `redelegate` | Move delegation from one validator to another | | `cancelUnbondingDelegation` | Cancel an in-progress unbonding | ## Query Methods | Method | Description | |--------|-------------| | `delegation` | Get delegation details for a delegator-validator pair | | `unbondingDelegation` | Get unbonding delegation details | | `validator` | Get validator information | | `validators` | List all validators with pagination | | `redelegations` | Get redelegation entries | ## Example ```solidity // Pseudocode: import StakingI and Coin from the canonical interface. StakingI constant staking = StakingI(0x0000000000000000000000000000000000000800); // Delegate 1000 CTM (1000 * 10^18 ctm) from this contract to a validator staking.delegate(address(this), "c8valoper1...", 1000 ether); // Query delegation (uint256 shares, Coin memory balance) = staking.delegation(msg.sender, "c8valoper1..."); ``` In transaction methods, the delegator address must be the direct caller of the precompile. A contract delegates its own tokens by passing `address(this)`; an EOA calls the precompile directly with its own address. Any other address reverts with `msg.sender address ... does not match the requester address ...`. Queries such as `delegation` accept any address. Cosmos module precompiles take amounts in the base denom `ctm`, the smallest unit of CTM: 1 CTM = 10^18 `ctm`, the same scale as wei. Do not convert to 6 decimals as on other Cosmos chains; check each precompile's expected amount format before interacting with it. For exact signatures, structs, return values, and events, see [Precompile ABI Reference](/reference/precompile-abi#staking). --- # Distribution URL: https://docs.c8ntinuum.com/modules/cosmos/distribution ## Overview The Distribution precompile provides access to the Cosmos SDK `x/distribution` module. Smart contracts can claim rewards, query reward balances, and interact with the community pool. On mainnet, `x/distribution` currently receives no automatic rewards. Inflation is 0, `x/feeburn` burns all transaction fees every block before `x/distribution` can allocate them, and community tax and proposer rewards are 0. Unless tokens are deposited with `depositValidatorRewardsPool`, the reward and commission queries return empty amounts, `withdrawDelegatorRewards`, `claimRewards` and `withdrawValidatorCommission` pay nothing, and delegators earn nothing. Validators are paid through the `x/valrewards` subsidy instead; see [Validator Rewards](/modules/custom/validator-rewards). **Precompile Address**: `0x0000000000000000000000000000000000000801` ## Gas Costs | Method Type | Gas Cost | |-------------|----------| | **Transactions** | `2000 + (30 x bytes of input)` | | **Queries** | `1000 + (3 x bytes of input)` | ## Transaction Methods | Method | Description | |--------|-------------| | `setWithdrawAddress` | Set the address that receives staking rewards | | `withdrawDelegatorRewards` | Withdraw rewards from a specific validator | | `withdrawValidatorCommission` | Withdraw validator commission earnings | | `fundCommunityPool` | Send tokens to the community pool | | `claimRewards` | Claim rewards for a delegator with a max retrieval count | | `depositValidatorRewardsPool` | Add tokens to one validator's `x/distribution` rewards (commission first, the rest to its delegators). Takes the validator operator address. Not related to the `x/valrewards` pool | ## Query Methods | Method | Description | |--------|-------------| | `validatorDistributionInfo` | Get a validator's distribution state | | `validatorOutstandingRewards` | Get unclaimed validator rewards | | `validatorCommission` | Get accumulated validator commission | | `delegationTotalRewards` | Get total rewards across all delegations | | `delegatorValidators` | List validators a delegator has staked with | ## Example ```solidity // Pseudocode: import DistributionI from the canonical interface. DistributionI constant dist = DistributionI(0x0000000000000000000000000000000000000801); // Withdraw this contract's rewards from a validator dist.withdrawDelegatorRewards(address(this), "c8valoper1..."); ``` The delegator address must be the direct caller of the precompile. A contract withdraws its own rewards by passing `address(this)`; an EOA calls the precompile directly with its own address. Any other address reverts with `msg.sender address ... does not match the requester address ...`. For exact signatures, return values, and events, see [Precompile ABI Reference](/reference/precompile-abi#distribution). --- # Bank URL: https://docs.c8ntinuum.com/modules/cosmos/bank ## Overview The Bank precompile exposes native Cosmos SDK token supply and balance views. ERC-20-style transfers happen through registered ERC20 extension/token-pair addresses, not through the static Bank precompile. **Precompile Address**: `0x0000000000000000000000000000000000000804` ## Gas Costs The Bank precompile has query methods only. Each method has a fixed gas cost: | Method | Gas Cost | |--------|----------| | `balances` | `2851` | | `supplyOf` | `2477` | | `totalSupply` | `2477` | ## Transfer behavior The Bank precompile has no transfer method. For ERC-20-style transfers, see [ERC20](/modules/cosmos/erc20). ## Query Methods | Method | Signature | Returns | |--------|-----------|---------| | `balances` | `balances(address account)` | `(tuple[](address contractAddress,uint256 amount) balances)` | | `supplyOf` | `supplyOf(address erc20Address)` | `(uint256 totalSupply)` | | `totalSupply` | `totalSupply()` | `(tuple[](address contractAddress,uint256 amount) totalSupply)` | ## Example ```solidity // Pseudocode: import the canonical IBank interface for the target release. IBank constant bank = IBank(0x0000000000000000000000000000000000000804); // Query native token-pair balances exposed through the bank precompile. bank.balances(msg.sender); ``` Cosmos module precompiles take amounts in the base denom `ctm`, the smallest unit of CTM: 1 CTM = 10^18 `ctm`, the same scale as wei. Do not convert to 6 decimals as on other Cosmos chains; check each precompile's expected amount format before interacting with it. For the ABI catalog, see [Precompile ABI Reference](/reference/precompile-abi#bank). --- # Governance URL: https://docs.c8ntinuum.com/modules/cosmos/governance ## Overview The Governance precompile provides a Solidity interface to the Cosmos SDK `x/gov` module. Smart contracts can submit proposals, vote, and query governance state. **Precompile Address**: `0x0000000000000000000000000000000000000805` ## Gas Costs | Method Type | Gas Cost | |-------------|----------| | **Transactions** | `2000 + (30 x bytes of input)` | | **Queries** | `1000 + (3 x bytes of input)` | ## Transaction Methods | Method | Description | |--------|-------------| | `submitProposal` | Submit a JSON proposal with deposit | | `cancelProposal` | Cancel a proposal | | `vote` | Cast a vote on an active proposal | | `voteWeighted` | Cast a weighted vote with split options | | `deposit` | Deposit tokens to a proposal | ## Query Methods | Method | Description | |--------|-------------| | `getConstitution` | Get the active constitution text | | `getProposal` | Get proposal details by ID | | `getProposals` | List proposals with optional status, voter, depositor, and pagination filters | | `getVote` | Get a specific vote record | | `getVotes` | List votes for a proposal | | `getDeposit` | Get a specific deposit record | | `getDeposits` | List deposits for a proposal | | `getTallyResult` | Get current tally for a proposal | | `getParams` | Get governance parameters | ## Example ```solidity // Pseudocode: import IGov and VoteOption from the canonical interface. IGov constant gov = IGov(0x0000000000000000000000000000000000000805); // Vote YES on proposal #1 with this contract's account gov.vote(address(this), 1, VoteOption.Yes, ""); ``` The voter address must be the direct caller of the precompile. A contract votes with its own account by passing `address(this)`; an EOA calls the precompile directly with its own address. Any other address reverts with `msg.sender address ... does not match the requester address ...`. For exact signatures, return structs, and events, see [Precompile ABI Reference](/reference/precompile-abi#governance). --- # ICS20 URL: https://docs.c8ntinuum.com/modules/cosmos/ics20 ## Overview The ICS20 precompile exposes standardized IBC fungible token transfer logic to EVM contracts. Initiate cross-chain token transfers, query IBC denominations (`denom`, `denoms`, `denomHash`), and build composable cross-chain payment flows — all from Solidity. **Precompile Address**: `0x0000000000000000000000000000000000000802` ## Gas Costs | Method Type | Gas Cost | |-------------|----------| | **Transactions** | `2000 + (30 x bytes of input)` | | **Queries** | `1000 + (3 x bytes of input)` | ## Transaction Methods | Method | Signature | Returns | |--------|-----------|---------| | `transfer` | `transfer(string sourcePort,string sourceChannel,string denom,uint256 amount,address sender,string receiver,Height timeoutHeight,uint64 timeoutTimestamp,string memo)` | `(uint64 nextSequence)` | ## Query Methods | Method | Signature | Returns | |--------|-----------|---------| | `denom` | `denom(string hash)` | `(Denom denom)` | | `denomHash` | `denomHash(string trace)` | `(string hash)` | | `denoms` | `denoms(PageRequest pageRequest)` | `(Denom[] denoms, PageResponse pageResponse)` | ## Example ```solidity // Pseudocode: import ICS20I and construct Height timeoutHeight per the ABI reference. ICS20I constant ics20 = ICS20I(0x0000000000000000000000000000000000000802); // Transfer this contract's tokens to another chain ics20.transfer( "transfer", // source port "channel-0", // source channel "ctm", // denomination 1000000, // amount address(this), // sender: must be the direct caller receiver, // receiver on destination chain timeoutHeight, uint64((block.timestamp + 600) * 1e9), // timeout: absolute Unix time in nanoseconds (IBC v1 channel) "" // memo ); ``` `sender` must be the direct caller of the precompile. A contract can send only its own tokens, so it passes `address(this)`; an EOA calls the precompile directly with its own address. Any other address reverts with `msg.sender address ... does not match the requester address ...`. For a `channel-N` (IBC v1) source channel, `timeoutTimestamp` is an absolute Unix time in nanoseconds, not seconds. For an IBC v2 client ID, the precompile passes the value through unchanged and IBC v2 reads it in seconds. ## Trust Model ICS20 transfers inherit IBC's trust-minimized model: - No trusted intermediary required - Safety backed by light-client verification on both chains - Timeouts refund the sender after a relayer submits a timeout proof. Refunds depend on a live relayer and an active counterparty light client; if the client expires or is frozen, the refund waits until the client is recovered (for example through a governance client-recovery proposal) For exact params, events, and return values, see [Precompile ABI Reference](/reference/precompile-abi#ics02-and-ics20). --- # ERC20 URL: https://docs.c8ntinuum.com/modules/cosmos/erc20 ## Overview The ERC20 extension bridges Ethereum's de facto token interface into the native Cosmos token model. This allows existing DeFi contracts and tooling to interoperate with Cosmos-native assets seamlessly. Each native Cosmos denomination registered as a token pair gets a dynamically assigned ERC-20 address. Standard ERC-20 methods (`balanceOf`, `transfer`, `approve`, `transferFrom`, `allowance`) work as expected. **Address**: Dynamic per token pair ## Standard ERC-20 Interface | Method | Description | |--------|-------------| | `name()` | Token name | | `symbol()` | Token symbol | | `decimals()` | Token decimal precision | | `totalSupply()` | Total bank supply of the denom, including tokens held by module accounts | | `balanceOf(address)` | Account balance | | `transfer(address, uint256)` | Transfer tokens | | `approve(address, uint256)` | Approve spender | | `transferFrom(address, address, uint256)` | Transfer from approved allowance | | `allowance(address, address)` | Check approval amount | ## How It Works Native Cosmos tokens are registered as token pairs linking a Cosmos denomination to an ERC-20-compatible address. When you interact with the ERC-20 interface, the extension translates operations to the underlying `x/bank` module, so balances remain consistent across both interfaces. For exact signatures, events, and dynamic address behavior, see [Precompile ABI Reference](/reference/precompile-abi#erc20-and-werc20-extensions). --- # WERC20 URL: https://docs.c8ntinuum.com/modules/cosmos/werc20 ## Overview The WERC20 extension exposes the native CTM bank balance through an ERC-20 interface. It is enabled by the ERC20 keeper for the native token pair rather than by a single fixed precompile address. It holds no separate wrapped balance: `balanceOf` returns the account's native CTM balance. **Address**: `0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE` (mainnet and testnet token pair for the native denom `ctm`; name `c8ntinuum`, symbol `CTM`, 18 decimals) ## Methods Standard ERC-20 methods plus: | Method | Description | |--------|-------------| | `deposit()` | Payable. Sends the attached CTM straight back to the caller and emits `Deposit`; no balance changes | | `withdraw(uint256)` | Reverts if the caller's spendable CTM is below the amount, otherwise emits `Withdrawal`; no tokens move | Plus all standard ERC-20 methods: `balanceOf`, `transfer`, `approve`, `transferFrom`, `allowance`. `deposit()` and `withdraw()` exist only for WETH interface compatibility. Neither wraps nor unwraps anything. ## Usage ```solidity IWERC20 constant wctm = IWERC20(payable(0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE)); // Read the caller's native CTM balance through the ERC-20 interface uint256 balance = wctm.balanceOf(msg.sender); // WETH-compatible calls: deposit() returns the value to this contract, // withdraw() only checks the balance and emits an event wctm.deposit{value: 1 ether}(); wctm.withdraw(1 ether); ``` For most wrapped-CTM application flows, use the pre-deployed [WETH9](/modules/predeployed-contracts) contract at `0xc8Fb80fCc03f699C70ff0CC08C09106288888888`. WETH9 is a fixed genesis contract; WERC20 addresses are dynamic token-pair surfaces. For exact signatures, events, and dynamic token-pair address behavior, see [Precompile ABI Reference](/reference/precompile-abi#erc20-and-werc20-extensions). --- # Slashing URL: https://docs.c8ntinuum.com/modules/cosmos/slashing ## Overview The Slashing precompile provides access to the Cosmos SDK `x/slashing` module. Query validator signing info, check jailed status, and integrate slashing risk into contract logic. **Precompile Address**: `0x0000000000000000000000000000000000000806` ## Gas Costs | Method Type | Gas Cost | |-------------|----------| | **Transactions** | `2000 + (30 x bytes of input)` | | **Queries** | `1000 + (3 x bytes of input)` | ## Transaction Methods | Method | Description | |--------|-------------| | `unjail` | Unjail a validator after the jail duration has passed and the underlying issue is fixed | ## Query Methods | Method | Description | |--------|-------------| | `getSigningInfo` | Get signing info for a validator consensus address | | `getSigningInfos` | List signing info for validators with pagination | | `getParams` | Get slashing module parameters | ## Use Cases - **Risk assessment**: Check validator jail/slash history before delegating - **Liquid staking**: Monitor validator health and trigger rebalancing - **Insurance**: Build slashing insurance products using on-chain slashing data For exact signatures, return values, and events, see [Precompile ABI Reference](/reference/precompile-abi#slashing). --- # Bech32 URL: https://docs.c8ntinuum.com/modules/cosmos/bech32 ## Overview The Bech32 precompile provides address format conversion between Ethereum hex (`0x...`) and Cosmos Bech32 (`c8...`) representations. Essential for cross-domain UX and contract logic that bridges both address systems. **Precompile Address**: `0x0000000000000000000000000000000000000400` ## Methods | Method | Description | |--------|-------------| | `hexToBech32(address, string)` | Convert hex address to Bech32 with given prefix | | `bech32ToHex(string)` | Convert Bech32 address to hex | ## Example ```solidity // Pseudocode: import Bech32I from the canonical interface. Bech32I constant bech32 = Bech32I(0x0000000000000000000000000000000000000400); // Convert hex to Bech32 string memory cosmosAddr = bech32.hexToBech32( msg.sender, "c8" ); // Convert Bech32 to hex (returns 0x742D35cC6644c068532fDDB11b4c36A58D6d3EAB) address evmAddr = bech32.bech32ToHex("c81wskntnrxgnqxs5e0mkc3knpk5kxk604tum0jdk"); ``` For exact signatures and ABI artifacts, see [Precompile ABI Reference](/reference/precompile-abi#bech32). --- # Validator Rewards URL: https://docs.c8ntinuum.com/modules/custom/validator-rewards `x/valrewards` awards validators using per-epoch points. Rewards are not share-based: each validator listed in the previous block's commit info earns points in proportion to its voting power (whether or not it signed), proposers receive a fixed bonus, and epoch rewards are allocated proportionally to points. The module pays validators only; delegators receive no `x/valrewards` rewards. ## Runtime model - `current_reward_settings` are used for the epoch currently accumulating points. - `next_reward_settings` are staged values that become active at the next epoch boundary. - Changes made during epoch `N` do not alter calculations already in progress for epoch `N`. - Whitelisted accounts can submit runtime setter messages. - Whitelist changes are governance-only through `MsgUpdateParams`. - `PROPOSER_BONUS_POINTS` remains hardcoded and is currently `1`. If `rewarding_paused` is switched to `true` during an epoch, the current epoch still completes and pays normally. The next epoch starts paused, records no new validator points, and creates no new outstanding reward rows. ## Core logic | Area | Behavior | |------|----------| | Points | Every validator listed in the previous block's commit info receives points proportional to voting power, whether it signed, was absent, or voted nil; proposer receives a fixed bonus. | | Epoch rewards | At epoch end, total points split configured `rewards_per_epoch` across validators. | | Claiming | Claims are one-time and single-validator. Outstanding rewards are zeroed after success. | | Sponsor calls | Cosmos msg and EVM precompile claim paths are sponsor-callable; payout always goes to the target validator operator. | | Funding | Claims are paid from the module rewards pool and fail if the pool has insufficient balance. | | Epoch transitions | Payout uses completed epoch settings; only after payout are next settings promoted to current settings. | ## Mainnet values On mainnet (`c8ntinuum_8-1`) the epoch length, reward per epoch, and whitelist differ from the default genesis below, and the rewards pool was funded at genesis: | Setting | Mainnet value | |---------|---------------| | `blocks_in_epoch` (current and next) | `21600` | | `rewards_per_epoch` (current and next) | `45000000000000000000000` (45,000 CTM) | | `rewarding_paused` | `false` | | `params.whitelist` | Three team-controlled operator accounts | | Rewards pool funded at genesis | `16425000000000000000000000ctm` (16,425,000 CTM) | The whitelisted accounts can change `blocks_in_epoch`, `rewards_per_epoch`, and `rewarding_paused` without a governance proposal. Their changes are staged in `next_reward_settings` and take effect at the next epoch boundary. To see the current values, run `ctmd query valrewards params` and `ctmd query valrewards rewards-pool`. ## Default genesis These are the module defaults for a newly generated genesis, not the mainnet values. ```json { "valrewards": { "params": { "whitelist": [] }, "current_reward_settings": { "blocks_in_epoch": 17280, "rewards_per_epoch": "45004521205479450000000", "rewarding_paused": false }, "next_reward_settings": { "blocks_in_epoch": 17280, "rewards_per_epoch": "45004521205479450000000", "rewarding_paused": false }, "epoch_state": { "current_epoch": 0, "blocks_into_current_epoch": 0 }, "epoch_to_pay": 0, "validator_points": [], "validator_outstanding_rewards": [] } } ``` The rewards pool balance is not duplicated inside `app_state.valrewards`; it remains part of the module account balance in auth/bank state. ## Validation rules | Field | Rule | |-------|------| | `blocks_in_epoch` | `int64`, minimum `20`, maximum `6500000` | | `rewards_per_epoch` | Required decimal integer string, minimum `1000000000000000000`, maximum `25000000000000000000000000` | | `rewarding_paused` | Boolean | | `params.whitelist` | Valid bech32 account addresses only; duplicates rejected | | Deposit amount | Valid positive coin amount | | Outstanding rewards | Must use `evmtypes.DefaultEVMDenom`; sum cannot exceed the funded module account balance | | `epoch_to_pay` | Cannot exceed `epoch_state.current_epoch` | | Points/rewards entry epochs | Cannot exceed `epoch_state.current_epoch` | ## Exposed methods ### Cosmos SDK messages - `MsgDepositRewardsPool(depositor, amount)` - `MsgClaimRewards(validator_operator, epoch, requester)` - `MsgSetBlocksInEpoch(signer, blocks_in_epoch)` - `MsgSetRewardsPerEpoch(signer, rewards_per_epoch)` - `MsgSetRewardingPaused(signer, rewarding_paused)` - `MsgUpdateParams(authority, params)` `MsgClaimRewards` is sponsor-callable: any valid requester may submit the transaction, but rewards are still paid only to the target validator account. Runtime setter messages require the signer to be present in `params.whitelist`; `MsgUpdateParams` is authority-only and intended for governance. ### Queries - `Query/RewardsPool` - `Query/ValidatorOutstandingRewards` - `Query/DelegationRewards` - `Query/Params` `Query/ValidatorOutstandingRewards` expects a canonical Bech32 validator operator address. Hex `0x...` addresses are rejected. `Query/DelegationRewards` does not return delegator rewards. Its `delegator` field must be a validator operator's account address (the `c8...` or `0x...` account that owns the `c8valoper...` address). It returns that validator's own outstanding reward for the epoch, the same value as `Query/ValidatorOutstandingRewards`, and fails with `target address must be a validator operator` for any other address. ### EVM precompile Address: `0x0000000000000000000000000000000000000714` - `rewardsPool()` - `validatorOutstandingRewards(epoch, validatorAddress)` - `delegationRewards(delegatorAddress, epoch)` (`delegatorAddress` must be a validator operator's account; see `Query/DelegationRewards` above) - `depositValidatorRewardsPool(depositor, amount)` - `claimRewards(validatorOperatorAddress, epoch)` For exact ABI signatures, see [Precompile ABI Reference](/reference/precompile-abi#validator-rewards). ## CLI ```bash ctmd query valrewards rewards-pool ctmd query valrewards validator-outstanding-rewards ctmd query valrewards delegation-rewards ctmd query valrewards params ctmd tx valrewards deposit ctmd tx valrewards claim ctmd tx valrewards set-blocks-in-epoch ctmd tx valrewards set-rewards-per-epoch ctmd tx valrewards set-rewarding-paused ``` `claim` and `delegation-rewards` take the validator operator's account address (`c8...` or `0x...`), for example the output of `ctmd keys show -a`, not the `c8valoper...` form. `validator-outstanding-rewards` takes the `c8valoper...` form. --- # Minimum Self-Delegation Check URL: https://docs.c8ntinuum.com/modules/custom/minimum-self-delegation `x/msdcheck` enforces a minimum self-delegation floor for validator creation and proposed `MinSelfDelegation` updates across all transaction entry points: Cosmos SDK transactions, API endpoints, and the EVM staking precompile. The enforced minimum is: ```text 888888000000000000000000 ``` ## Scope and semantics - The rule applies to the validator operator's self-delegation only. - It does not depend on delegations from other users. - A validator can only set or raise `MinSelfDelegation` through create/edit flows. - `EditValidator` is not blocked solely because current validator tokens fell below the threshold after creation; the restriction applies to the proposed `MinSelfDelegation` value. - If an operator later reduces self-delegation below the minimum, for example through undelegation, the staking module's native behavior jails the validator and removes it from the active set. - `x/msdcheck` does not block undelegate or redelegate. ## Default genesis `x/msdcheck` does not have an independent module genesis section in `app_state`. Practical implications: - There is no `app_state.msdcheck` object to configure. - Staking genesis (`app_state.staking`) still applies as usual. - The minimum self-delegation check is enforced by module logic, not by msdcheck-specific genesis params. ## Covered scenarios | Scenario | Expected result | |----------|-----------------| | `MsgCreateValidator` below minimum | Reject | | `MsgCreateValidator` at exact minimum | Accept | | `MsgCreateValidator` above minimum | Accept | | `MsgEditValidator` below current stake threshold but without invalid `MinSelfDelegation` change | Accept | | `MsgEditValidator` proposed `MinSelfDelegation` below minimum | Reject | | EVM staking precompile `createValidator` below minimum | Reject | | EVM staking precompile `createValidator` at exact minimum | Accept | | EVM staking precompile `createValidator` above minimum | Accept | ## Test commands Run the tests from the root of the c8ntinuum source repository (see [Build the Node](/node-ops/build-the-node) for prerequisites). The tests live in the `evmd` Go module and link against the Rust SP1 verifier library, so run them through the top-level Makefile, which builds that library and sets the library path: ```bash make test GO_PKGS=./tests/integration/staking GO_TEST_FLAGS="-count=1 -run TestMSDCheck" ``` The command runs `TestMSDCheckIntegration` (Cosmos SDK messages) and `TestMSDCheckPrecompile` (EVM staking precompile). --- # Circuit Breaker URL: https://docs.c8ntinuum.com/modules/custom/circuit `x/circuit` is a global circuit breaker for the chain. It exposes a `system_available` flag and a whitelist of accounts authorized to toggle it. Whitelist management is governance-controlled. ## Core logic - `system_available` is a single boolean stored in module state. - Only whitelisted accounts can submit `MsgUpdateCircuit`. - Repeating the current `system_available` value succeeds without rewriting state. - An empty whitelist is allowed while `system_available=true`. - An empty whitelist is rejected while `system_available=false`, so at least one operator remains able to restore availability. - `MsgUpdateParams` updates the whitelist and requires the governance authority address. - gRPC query handlers reject nil request objects explicitly. ## Enforcement scope - The circuit gate is enforced in ante for native Cosmos SDK transactions and EVM extension transactions. - `eth_sendRawTransaction` submissions become `MsgEthereumTx` and pass through ante checks, so they are also gated. - When `system_available=false`, only transactions containing `MsgUpdateCircuit` messages are allowed through the circuit gate. - Any transaction containing non-`MsgUpdateCircuit` messages is rejected with `ErrUnauthorized` and `system unavailable`. ## Default genesis ```json { "circuit": { "params": { "whitelist": [] }, "state": { "system_available": true } } } ``` On mainnet (`c8ntinuum_8-1`) the whitelist is not empty. It holds three team-controlled operator accounts, which can halt and resume transactions chain-wide by setting `system_available` without a governance proposal. They cannot move funds or change the whitelist through this module. To see the current list, run `ctmd query circuit whitelist`. ## Exposed methods ### Cosmos SDK messages - `MsgUpdateCircuit(signer, system_available)` - `MsgUpdateParams(authority, params)` ### Queries - `Query/SystemAvailable` - `Query/Whitelist` ### CLI ```bash ctmd query circuit system-available ctmd query circuit whitelist ctmd tx circuit update-circuit ``` ## Test coverage The source test set covers CLI flow, governance whitelist updates, no-op state-write behavior, keeper nil-request checks, empty whitelist recovery guard, native and EVM ante gate behavior, JSON-RPC route behavior, and query correctness. --- # IBC Breaker URL: https://docs.c8ntinuum.com/modules/custom/ibc-breaker `x/ibcbreaker` provides an operator-controlled IBC breaker with one global `ibc_available` flag, a whitelist of operator accounts that can toggle the flag, and governance-controlled whitelist updates. The practical goal is to stop selected outbound IBC initiation paths, including ICS20 transfer initiation (`MsgTransfer`), when the breaker is disabled. ## Non-scope `x/ibcbreaker` is not a full transfer freeze. Internal non-IBC transfers, for example bank `MsgSend`, remain available. ## State and params ```json { "ibcbreaker": { "params": { "whitelist": [] }, "state": { "ibc_available": true } } } ``` - `state.ibc_available` is stored as a single byte and defaults to `true` if missing. - `params.whitelist` is a list of bech32 addresses allowed to submit `MsgUpdateIbcBreaker`. - Whitelist entries are validated for address format and duplicates. On mainnet (`c8ntinuum_8-1`) the whitelist is not empty. It holds three team-controlled operator accounts, which can halt and resume the restricted IBC paths by setting `ibc_available` without a governance proposal. They cannot move funds or change the whitelist through this module. To see the current list, run `ctmd query ibcbreaker whitelist`. ## Authorization model - `MsgUpdateIbcBreaker` signer must be bech32 and present in `params.whitelist`. - Repeated requests for the current `ibc_available` value succeed as a no-op. - `MsgUpdateParams` is authority-only and is the only path to update the whitelist. - `MsgUpdateParams.ValidateBasic()` rejects nil params before handler execution. ## Enforcement logic Enforcement is implemented in the Cosmos ante decorator `IbcAvailableDecorator` and in transfer keeper execution for `MsgTransfer`. When `ibc_available=false`: - Cosmos ante scans transaction messages and rejects restricted IBC message types with `ErrUnauthorized`. - Ante errors include the offending restricted message type URL. - `authz.MsgExec` contents are recursively scanned. - Recursion depth `>= 7` is rejected as unauthorized. - Transfer keeper rejects `MsgTransfer` with `ErrUnauthorized` and `ibc unavailable`. Restricted message types include: - `/ibc.core.client.v1.MsgCreateClient` - `/ibc.core.connection.v1.MsgConnectionOpenInit` - `/ibc.core.channel.v1.MsgChannelOpenInit` - `/ibc.applications.transfer.v1.MsgTransfer` - `/ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccount` - `/ibc.applications.interchain_accounts.controller.v1.MsgSendTx` - `/ibc.core.client.v2.MsgRegisterCounterparty` - `/ibc.core.client.v2.MsgUpdateClientConfig` - `/ibc.core.channel.v2.MsgSendPacket` ## EVM and ICS20 scope Cosmos IBC ante decoration is not applied to the EVM extension transaction route. However, ICS20 precompile transfer still routes into the transfer keeper, so `MsgTransfer` is blocked when `ibc_available=false`. Non-restricted IBC messages can still pass this decorator. ## Exposed methods ```bash ctmd query ibcbreaker ibc-available ctmd query ibcbreaker whitelist ctmd tx ibcbreaker update-ibcbreaker ``` Cosmos SDK messages: - `MsgUpdateIbcBreaker(signer, ibc_available)` - `MsgUpdateParams(authority, params)` Queries: - `Query/IbcAvailable` - `Query/Whitelist` --- # IBC Rate-Limiter Extension URL: https://docs.c8ntinuum.com/modules/custom/ibc-rate-limiter-extension `x/ibcratelimiterext` adds an independent, governance-managed operator whitelist for IBC rate-limiter operations. Packet enforcement remains the same as upstream ratelimiting middleware. The extension stores its own whitelist, lets governance update that whitelist through `MsgUpdateParams`, and lets whitelisted operators call rate-limiter mutation APIs. ## Operation authorization An address can operate the rate limiter if it can execute: - `MsgAddRateLimit` - `MsgUpdateRateLimit` - `MsgRemoveRateLimit` - `MsgResetRateLimit` Authorization passes when either: 1. The signer is the ratelimiting authority, normally governance authority. 2. The signer is in the `ibcratelimiterext` whitelist. Authority authorization is evaluated on the canonical decoded bech32 address, not raw input string casing. ## Architecture | Area | Behavior | |------|----------| | Independent whitelist module | `x/ibcratelimiterext` owns `Params.whitelist`, `MsgUpdateParams`, and `Query/Whitelist`. | | Ratelimiter service override | Keeps ratelimiting data plane, queries, and genesis, but overrides `ratelimit.v1.Msg` authorization. | | Middleware stack v1 | `transfer -> erc20 -> callbacks -> ratelimiting -> channel` | | Middleware stack v2 | `transferv2 -> erc20v2 -> ratelimitingv2` | ## Default genesis ```json { "ibcratelimiterext": { "params": { "whitelist": [] } } } ``` `params.whitelist` contains bech32 account addresses allowed to execute rate-limiter write operations through this extension. Default is empty, so only ratelimiter authority can operate those commands until whitelist entries are added. On mainnet (`c8ntinuum_8-1`) the whitelist is not empty. It holds three team-controlled operator accounts, which can add, update, remove, or reset IBC rate limits without a governance proposal. To see the current list, run `ctmd query ibcratelimiterext whitelist`. The upstream `ratelimit` module has its own separate genesis in `app_state.ratelimit`, including `hour_epoch`. `ibcratelimiterext` does not store or initialize those fields. ## Query CLI The extension adds only the `whitelist` query. Rate-limit queries come from the upstream `ratelimit` module: ```bash ctmd query ibcratelimiterext whitelist --node --chain-id ctmd query ratelimit list-rate-limits --node --chain-id ctmd query ratelimit rate-limit channel-0 --denom ibc/ABCDEF123 --node --chain-id ctmd query ratelimit rate-limits-by-chain osmosis-1 --node --chain-id ``` ## Transaction CLI The transaction examples set `--gas-prices` to `222000000000ctm` (222 gwei), the chain's minimum gas price. The gas price must also be at least the current base fee, so use a higher value when the base fee is above 222 gwei. See [Gas on c8ntinuum](/developer-essentials/gas). Whitelist updates are authority-only. The authority is the `x/gov` module account (`c810d07y265gmmuvt4z0w9aw880jnsr700j335k0a` on mainnet), which has no key, so submit the update as a governance proposal. `MsgUpdateParams` replaces the whole whitelist, so list every address that should stay on it. Set `deposit` to at least the governance minimum deposit (see `ctmd query gov params`). ```json { "messages": [ { "@type": "/cosmos.evm.ibcratelimiterext.v1.MsgUpdateParams", "authority": "c810d07y265gmmuvt4z0w9aw880jnsr700j335k0a", "params": { "whitelist": ["c8...", "c8..."] } } ], "metadata": "", "deposit": "ctm", "title": "Update IBC rate-limiter operator whitelist", "summary": "" } ``` ```bash ctmd tx gov submit-proposal proposal.json \ --from \ --chain-id \ --node \ --gas auto --gas-adjustment 1.4 \ --gas-prices 222000000000ctm ``` Rate-limit write commands require either governance authority or a whitelisted operator. They live under the upstream `ratelimit` module and take flags, not positional arguments. The extension only decides whether the signer is authorized: ```bash ctmd tx ratelimit add-rate-limit \ --channel-or-client-id channel-0 \ --denom ibc/ABCDEF123 \ --max-percent-send 10 \ --max-percent-recv 20 \ --duration-hours 24 \ --from \ --chain-id \ --node \ --gas auto --gas-adjustment 1.4 \ --gas-prices 222000000000ctm ctmd tx ratelimit update-rate-limit \ --channel-or-client-id channel-0 \ --denom ibc/ABCDEF123 \ --max-percent-send 15 \ --max-percent-recv 25 \ --duration-hours 24 \ --from \ --chain-id \ --node \ --gas auto --gas-adjustment 1.4 \ --gas-prices 222000000000ctm ctmd tx ratelimit remove-rate-limit \ --channel-or-client-id channel-0 \ --denom ibc/ABCDEF123 \ --from \ --chain-id \ --node \ --gas auto --gas-adjustment 1.4 \ --gas-prices 222000000000ctm ctmd tx ratelimit reset-rate-limit \ --channel-or-client-id channel-0 \ --denom ibc/ABCDEF123 \ --from \ --chain-id \ --node \ --gas auto --gas-adjustment 1.4 \ --gas-prices 222000000000ctm ``` --- # Fee Burn URL: https://docs.c8ntinuum.com/modules/custom/feeburn `x/feeburn` burns every transaction fee the chain collects. At the start of each block it takes the whole `fee_collector` balance, which holds the fees paid in the previous block, and destroys it. This covers the full fee of EVM and Cosmos SDK transactions: the EIP-1559 base fee and the priority fee (tip) alike. Validators and delegators receive no fee revenue; validators are paid through [Validator Rewards](/modules/custom/validator-rewards) instead. ## Core logic - Fees are collected into the standard `fee_collector` module account during the block. For EVM transactions, unused gas is refunded from `fee_collector` before the block ends, so what remains is the fee actually charged (see [Gas on c8ntinuum](/developer-essentials/gas)). - In `BeginBlock` of the next block, `x/feeburn` reads all balances held by `fee_collector`, moves them to the `feeburn` module account, and burns them from there. The `feeburn` module account holds the `Burner` permission. - Every denom held by `fee_collector` is burned in one pass. On mainnet, fees can only be paid in CTM, so in practice this is the CTM fee total. - If `fee_collector` is empty, the module does nothing for that block. - The burn runs after the `x/feemarket` and `x/vm` begin blockers and before `x/distribution`, so `x/distribution` always finds an empty fee pot and allocates nothing to validators or the community pool. - The priority fee still sets transaction priority in the mempool, but it is burned together with the base fee rather than paid to the block proposer. Because the burn happens at the start of the following block, querying `fee_collector` at the latest height can show a nonzero balance: those are the fees of the latest block, which are burned when the next block begins. ## Parameters and genesis `x/feeburn` is stateless. It has no parameters, no store, no transactions, and no queries, so there is no setting that governance can change. ```json { "feeburn": {} } ``` Mainnet genesis contains this empty `app_state.feeburn` object. ## Module accounts | Account | Address | Role | |---------|---------|------| | `fee_collector` | `c817xpfvakm2amg962yls6f84z3kell8c5lm2ynjn` | Collects transaction fees during a block | | `feeburn` | `c81d99pujdz48wkmn3uesfxnrctn44uuf5c5g7mys` | Receives the `fee_collector` balance and burns it (`Burner` permission) | ## Verify on mainnet Query the fee pot and the total CTM supply through the public REST endpoint: ```bash curl -s "https://public-comet-grpc-web.c8ntinuum.io/cosmos/bank/v1beta1/balances/c817xpfvakm2amg962yls6f84z3kell8c5lm2ynjn" curl -s "https://public-comet-grpc-web.c8ntinuum.io/cosmos/bank/v1beta1/supply/by_denom?denom=ctm" ``` Mainnet inflation is `0`, so no CTM is minted, and the total supply falls by the amount of fees burned. The `feeburn` module account balance is always empty between blocks. ## Test commands Run the test from the root of the c8ntinuum source repository (see [Build the Node](/node-ops/build-the-node) for prerequisites). The tests live in the `evmd` Go module and link against the Rust SP1 verifier library, so run them through the top-level Makefile: ```bash make test GO_PKGS=./tests/integration GO_TEST_FLAGS="-count=1 -run TestFeeBurnIntegration" ``` The test seeds `fee_collector` with CTM and a second denom, advances one block, and checks that `fee_collector` is empty, that the second denom's total supply is back to zero, and that `x/distribution` outstanding rewards and the community pool did not grow. --- # Pre-deployed Contracts URL: https://docs.c8ntinuum.com/modules/predeployed-contracts c8ntinuum ships with a curated set of **pre-deployed ecosystem contracts** at well-known addresses. In source and genesis these are called `preinstalls`: contract runtime bytecode placed at fixed addresses during chain initialization. This removes the bootstrap tax of deploying basic infrastructure and ensures immediate compatibility with existing wallets, SDKs, and protocol tooling. These contracts are **identical or bytecode-equivalent** to widely used deployments on Ethereum and major rollups, unless otherwise noted. ## Contract Directory | Name | Address | Reference | Notes | |------|---------|-----------|-------| | **Create2** | `0x4e59b44847b379578588920cA78FbF26c0B4956C` | Bytecode only | Deterministic deployment proxy; Foundry's default CREATE2 factory | | **Create2Deployer** | `0x13b0D85CcB8bf860b6b79AF3029fCA081AE9beF2` | Bytecode only | Deterministic deployment helper with `deploy`, `deployERC1820Implementer`, `computeAddress`, and `computeAddressWithDeployer`. It has no owner or pause functions, so its bytecode differs from the Ethereum contract at this address | | **Multicall3** | `0xcA11bde05977b3631167028862bE2a173976CA11` | Bytecode only | Batched read/write calls | | **Permit2** | `0x000000000022D473030F116dDEE9F6B43aC78BA3` | Bytecode only | Uniswap shared approvals and permit flows | | **Safe singleton factory** | `0x914d7Fec6aaC8cd542e72Bca78B30650d45643d7` | Bytecode only | Safe canonical singleton factory | | **EIP-2935 history storage** | `0x0000F90827F1C53a10cb7A02335B175320002935` | Go-ethereum `params.HistoryStorageCode` | Historical block hash storage | | **ERC1820 registry** | `0x1820a4B7618BdE71Dce8cdc73aAB6C95905faD24` | ABI committed under preinstalls | Interface registry and pseudo-introspection | | **EIP2470 singleton factory** | `0xce0042B868300000d44A59004Da54A005ffdcf9f` | ABI committed under preinstalls | Deterministic singleton factory | | **CreateX** | `0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed` | Source and ABI committed under preinstalls | Universal CREATE/CREATE2/CREATE3 deployer | | **MultiSend** | `0x998739BFdAAdde7C933B942a68053933098f9EDa` | Source and ABI committed under preinstalls | Safe batch executor using delegatecall | | **MultiSendCallOnly** | `0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B` | Source and ABI committed under preinstalls | Safe batch executor without delegatecall | | **UniversalSigValidator** | `0x7DD271fA79df3a5Feb99F73BebFA4395b2E4F4Be` | Source and ABI committed under preinstalls | EIP-6492 / ERC-1271 signature validator | | **WETH9** | `0xc8Fb80fCc03f699C70ff0CC08C09106288888888` | Bytecode only | Wrapped CTM with the WETH9 ABI (name `c8ntinuum`, symbol `WCTM`, 18 decimals). Its bytecode differs from Ethereum's WETH9 | ## Source of truth | Surface | Source | |---------|--------| | Mainnet preinstall list | `app_state.evm.preinstalls` in the [published mainnet genesis](https://resources.c8ntinuum.io/mainnet/genesis.json) | | VM genesis schema | `proto/cosmos/evm/vm/v1/genesis.proto` and `proto/cosmos/evm/vm/v1/evm.proto` | | Runtime registration | `x/vm/keeper/preinstalls.go` | | EVM genesis initialization | `x/vm/genesis.go` | | Go default preinstalls | `x/vm/types/preinstall.go` | | Governance registration message | `proto/cosmos/evm/vm/v1/tx.proto` | | Local contracts package | `contracts/package.json` | `x/vm/types.DefaultPreinstalls` and the published mainnet genesis list the same 13 entries. Treat the published mainnet genesis as the canonical list for the current chain configuration. The other paths in this table are paths inside the `ctmd` node source, which will be published in a public GitHub repository (repository TBA). ## Genesis and runtime behavior The `Preinstall` schema has three fields: | Field | Meaning | |-------|---------| | `name` | Human-readable contract name. It is not part of EVM execution. | | `address` | Ethereum hex address where code will be installed. `0x` prefixes and mixed case are accepted. | | `code` | Hex-encoded deployed runtime bytecode. `0x` prefixes are accepted. Empty code and empty-code hashes are rejected. | During genesis initialization, `x/vm/genesis.go` calls `Keeper.AddPreinstalls`. For each entry the keeper converts the address, computes the Keccak-256 code hash, rejects empty or conflicting code, creates an account, stores the code hash, and stores the code bytes. No storage is initialized for preinstalls. These contracts execute as ordinary EVM bytecode after genesis, so calls use normal EVM gas accounting and normal Solidity revert data. There is no special precompile-style gas schedule. On genesis export, preinstalls are exported as ordinary EVM contract accounts and the `preinstalls` array is empty. Governance can register more preinstalls through `MsgRegisterPreinstalls`, but only the configured VM authority, normally the Cosmos SDK governance module account, may execute that message. ## Package and import guidance The local contracts package is named `cosmos-evm-contracts`, but `contracts/package.json` does not define `main`, `files`, `exports`, or `types`. Treat this tree as repo-local contract assets, not as a stable npm subpath API. Do not promise npm imports like `cosmos-evm-contracts/preinstalls/createx/abi/abi-createx.json` unless the package is formalized later. Current consumers should vendor or copy the files they need, or import them by relative path from a checkout of the node source repository once it is published on GitHub (repository TBA). The preinstall ABI JSON files are raw ABI arrays, not Hardhat artifact objects with an `abi` wrapper field. No generated TypeScript binding package is committed for preinstalls; consumers who want typed ethers factories should generate TypeChain bindings from the committed ABI JSON files or Solidity sources. ## Tooling examples ### Hardhat and ethers ```ts const CREATEX_ADDRESS = "0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed"; const signer = await ethers.provider.getSigner(); const createX = new ethers.Contract(CREATEX_ADDRESS, createXAbi, signer); const predicted = await createX.computeCreate2Address(salt, initCodeHash); ``` ### viem ```ts const CREATEX_ADDRESS = "0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed"; const createXAbi = createXAbiJson as Abi; const publicClient = createPublicClient({ transport: http("https://public-evm-rpc.c8ntinuum.com"), }); declare const salt: Hex; declare const initCodeHash: Hex; await publicClient.readContract({ address: CREATEX_ADDRESS, abi: createXAbi, functionName: "computeCreate2Address", args: [salt, initCodeHash], }); ``` ### Foundry Foundry can compile Solidity sources once the preinstall tree is vendored or remapped into the project: ```text continuum-preinstalls/=lib/continuum/contracts/solidity/preinstalls/ ``` ```solidity contract UsesCreateX { CreateX constant CREATEX = CreateX(0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed); } ``` For bytecode-only entries such as Multicall3, Permit2, and WETH9, use the canonical external ABI expected by the tooling integration, or add a local interface in the consuming project. ## Design Considerations - **Bytecode parity** — Where possible, exact on-chain bytecode from Ethereum mainnet is reused to maximize compatibility with existing tools and audits - **Stable addresses** — These addresses are stable across network upgrades. Breaking changes require migration tooling - **Safety** — Contracts like `MultiSendCallOnly` provide safer defaults (no DELEGATECALL) - **Versioning** — Address changes, bytecode changes, removed ABI entries, changed ABI entries, or changed genesis import semantics are breaking release changes ## Usage Notes - You can **assume the presence** of these contracts when writing dApps and tooling for c8ntinuum - A fresh `local_node.sh` chain also includes these preinstalls: `ctmd init` writes the default set into the EVM genesis state, and the script does not remove it - If you rely on specific behavior (gas costs, revert semantics), refer to upstream source repositories and c8ntinuum's pinned test expectations --- # Transaction Lifecycle URL: https://docs.c8ntinuum.com/learn/transaction-lifecycle This page is a side-by-side EVM/Cosmos lifecycle walkthrough with operational guidance for senders. For the canonical reference on transaction types, ordering, and receipt fields, see [Transactions](/core-concepts/transactions). c8ntinuum accepts both Ethereum-style EVM transactions and Cosmos SDK transactions. For EVM users, the normal path is familiar: sign, submit, wait for inclusion, read the receipt. The difference is that an EVM transaction can also call precompiles that execute native chain logic. ## Lifecycle | Step | EVM transaction | Cosmos SDK transaction | |------|-----------------|------------------------| | Signing | Wallet or signer creates an Ethereum transaction for the EVM chain ID. | Cosmos signer creates a Protobuf-encoded transaction with one or more messages. | | Submission | JSON-RPC, usually `eth_sendRawTransaction` or wallet RPC. | Cosmos transaction broadcast endpoint or CLI. | | Validation | Signature, nonce, balance, fee, gas, and route checks. | Signature, account, fee, gas, and message route checks. | | Mempool | Valid transactions wait for ordering and block inclusion. | Valid transactions wait for ordering and block inclusion. | | Execution | EVM bytecode runs; precompile calls may invoke native modules. | Native module message handlers run. | | Output | Ethereum-compatible receipt, logs, status, and gas fields. | Cosmos transaction response and indexed events. | | Finality | Final after one committed block under standard CometBFT assumptions. | Final after one committed block under standard CometBFT assumptions. | ## Ordering and nonces Transactions are ordered by effective tip while preserving nonce semantics for each EVM account. c8ntinuum supports nonce gap queuing, but applications should still manage nonces carefully for high-throughput senders. | Concern | Guidance | |---------|----------| | Sequential senders | Track the latest pending nonce and serialize retries. | | Parallel senders | Allocate nonces centrally or shard sender accounts. | | Replacement transactions | Use current fee data and preserve the same nonce. | | Custody crediting | Confirm receipt status and logs; do not credit from pending transaction data. | ## Finality and confirmations Protocol finality is one block under standard CometBFT assumptions. Business workflows may wait longer for operational reasons. For example, exchange deposit processing recommends 60 confirmations to absorb RPC, log, receipt, and scanner lag. ## Related pages - [Transactions](/core-concepts/transactions) - [Consensus](/learn/consensus) - [Gas on c8ntinuum](/developer-essentials/gas) - [Best Practices](/developer-essentials/best-practices) - [Deposit Processing](/guides/exchange-integration/deposit-processing) --- # Node Operations URL: https://docs.c8ntinuum.com/node-ops This section is for operators running c8ntinuum infrastructure: installation and requirements first, day-to-day operations next, then advanced data and event surfaces. Minimum and recommended hardware profiles for c8ntinuum operators. Build and install the `ctmd` binary from source once the repository is published. Installation checklist for a c8ntinuum full node. Recommended bootstrap path for new non-archive nodes. Sync a new node from block 1 through every chain upgrade with `deploy.sh full-sync`. Manual mainnet install, validator creation, and links to staking concepts. Routine sync, peer, log, disk, RPC, and alerting checks for running nodes. Canonical upgrade runbook location. Recovery paths for stuck, lagged, corrupted, or out-of-disk nodes. Peer health, block lag, and network exposure checks for block delivery. WebSocket endpoints, event subscriptions, and connection planning. Archive and historical-data operator guidance. --- # Hardware Requirements URL: https://docs.c8ntinuum.com/node-ops/hardware-requirements These are conservative operator defaults, not benchmark-certified capacity limits. Validate public RPC throughput and storage headroom against live traffic before committing production SLOs. ## How to read these requirements These profiles assume Linux `amd64` or `arm64` hosts (`ctmd` releases are published for `linux-amd64`, `linux-arm64` and `darwin-arm64`), production-grade SSD or NVMe storage, unmetered or high-capacity bandwidth, NTP or chrony time sync, process supervision, and monitoring for disk, CPU, memory, peer count, block lag, and service restarts. Do not place chain data on HDD-backed storage. Network block devices should be used only after validating sustained read/write latency and IOPS during sync, compaction, upgrades, and high RPC load. The older `500 GB SSD, NVMe recommended` bootstrap value remains useful as a state-sync floor for short-lived or test infrastructure. Production nodes should use the node-profile minimums below. ## Hardware matrix | Node profile | Minimum | Recommended | Notes | |--------------|---------|-------------|-------| | Full node, pruned/private | 4 vCPU, 16 GB RAM, 1 TB NVMe, 100 Mbps | 8 vCPU, 32 GB RAM, 2 TB NVMe, 1 Gbps | Default for private application infrastructure and state-sync bootstrap. | | Validator node | 4 vCPU, 16 GB RAM, 1 TB NVMe, 100 Mbps low-latency | 8 vCPU, 32 GB RAM, 2 TB NVMe, 1 Gbps | No public RPC. Connect only to sentries and the signer or KMS. | | Sentry node | 4 vCPU, 16 GB RAM, 1 TB NVMe, 100 Mbps | 8 vCPU, 32 GB RAM, 2 TB NVMe, 1 Gbps | Public P2P. Enable protected RPC only when the sentry is intentionally serving that surface. | | Seed/seeder node | 2 vCPU, 8 GB RAM, 100 GB SSD, 100 Mbps | 4 vCPU, 16 GB RAM, 250 GB SSD/NVMe, 1 Gbps | Dedicated peer-discovery role only. If deployed as a full `ctmd` node, use full-node storage. | | Private RPC node | 4 vCPU, 16 GB RAM, 1 TB NVMe, 100 Mbps | 8 vCPU, 32 GB RAM, 2 TB NVMe, 1 Gbps | Internal wallets and applications, protected by firewall rules or a private gateway. | | Public RPC node | 8 vCPU, 32 GB RAM, 2 TB NVMe, 1 Gbps | 16 vCPU, 64 GB RAM, 4 TB NVMe, 1 Gbps+ | Place behind reverse proxy, rate limits, authentication where applicable, and horizontal scaling. | | Archive node | 8 vCPU, 64 GB RAM, 4 TB NVMe, 1 Gbps | 16 vCPU, 128 GB RAM, 8 TB expandable NVMe, 1 Gbps | Build with `deploy.sh full-sync --archive` (mainnet only so far) or restore a full-history data snapshot with `deploy.sh snapshot restore` (Linux), and monitor storage growth. Disk figures are the disk to provision; current archive data is roughly 1 TB. | | Archive RPC/debug node | 16 vCPU, 64 GB RAM, 8 TB NVMe, 1 Gbps | 32 vCPU, 128 GB RAM, 12 TB expandable NVMe, 1-10 Gbps | Private debug and trace surface only. Do not expose `debug`, `txpool`, or `personal` publicly. | | Event/indexer node | 8 vCPU, 32 GB RAM, 2 TB NVMe plus separate DB storage, 1 Gbps | 16 vCPU, 64 GB RAM, 4 TB NVMe plus separately sized DB/index storage, 1 Gbps+ | For WebSocket/event consumers, scanners, and exchange or indexer pipelines. | ## Storage and growth Plan storage for the selected data mode, not just initial sync. Pruned full nodes can bootstrap with state sync and default pruning, while archive nodes need every block from genesis and retain complete historical state. Build an archive node with `deploy.sh full-sync --archive`, which replays from block 1 (mainnet only so far), or restore a full-history data snapshot with `deploy.sh snapshot restore` (Linux). Archive profiles should use expandable storage and growth monitoring. Keep enough headroom for chain growth, database compaction, upgrades, logs, and backup staging. For archive configuration, use `pruning = "nothing"` and `min-retain-blocks = 0`, keep ABCI responses, enable the transaction index, and enable the EVM indexer as described in [Archive Data Setup](/node-ops/archive-data). `full-sync --archive` and `snapshot restore` write these settings, except the EVM indexer: `snapshot restore` turns it on only when the snapshot's `evm_indexer` is `verified`, and `full-sync --archive` does not turn it on. ## Archive sizing The current archive data footprint is roughly `1 TB` and grows about `10 GB/month`. That is the data, not the disk to buy: provision `4 TB` minimum and `8 TB` recommended for an archive node, as in the hardware matrix, to leave room for growth, compaction, upgrades, logs, and backup staging. Archive RPC/debug nodes need extra CPU, RAM, and disk I/O when serving traces, long historical scans, or backfills. Run archive backups monthly and resize from observed query load. On Linux, `sudo ./deploy.sh snapshot create` makes a full-history data snapshot of an archive node's `data/`. ## RPC scaling Public RPC is an infrastructure tier, not a single-node promise. Put public HTTP, WebSocket, REST, and gRPC surfaces behind a reverse proxy with TLS, rate limits, request-size limits, authentication where applicable, and IP allowlists for private or paid endpoints. Use the default public EVM namespace shape `eth,net,web3` for external RPC. Enable `debug`, `txpool`, or `personal` only on private operations or archive RPC nodes. For published endpoint limits, see [RPC Providers](/tooling-and-infrastructure/rpc-providers) and [Events and WebSockets](/node-ops/events-and-websockets). ## Validator and sentry separation Run validator nodes as private infrastructure. They should not expose public RPC, REST, gRPC, WebSocket, or metrics endpoints. Connect validators only to trusted sentries and the signer or KMS path. Sentries absorb public P2P exposure and can be rotated or scaled without moving the validator consensus key. Recommended validator-side settings include `pex = false`; recommended sentry-side settings include `pex = true`, `persistent_peers` including the validator, and `private_peer_ids` including the validator node ID. For the full topology notes, see [Validator Installation](/node-ops/validator-installation). ## Reference baselines These defaults are informed by c8ntinuum's node runbooks, [CometBFT production guidance](https://docs.cosmos.network/cometbft/v0.38/docs/core/Running-in-production#hardware), [Cosmos validator sentry guidance](https://docs.cosmos.network/hub/latest/validators/validator-faq#technical-requirements), and [Geth hardware requirements](https://geth.ethereum.org/docs/getting-started/hardware-requirements). ## Related pages - [Full Node Installation](/node-ops/full-node-installation) - [Validator Installation](/node-ops/validator-installation) - [Archive Data Setup](/node-ops/archive-data) - [RPC Providers](/tooling-and-infrastructure/rpc-providers) - [Events and WebSockets](/node-ops/events-and-websockets) --- # Build the Node URL: https://docs.c8ntinuum.com/node-ops/build-the-node c8ntinuum builds the `ctmd` node binary from source. Use this page when you need a local developer build, an installed binary, or a self-contained distribution bundle. The `ctmd` source (Apache 2.0) will be published in a public GitHub repository; the repository is to be announced. The steps on this page assume a checkout of that repository. Until it is published, use the release binaries listed in [metadata.json](https://resources.c8ntinuum.io/metadata.json): install them with `deploy.sh` as described in [Full Node Installation](/node-ops/full-node-installation), or, for a validator, with the [manual mainnet install](/node-ops/validator-installation#manual-mainnet-install). For local chain startup after the binary is built, see [Local Development](/tooling-and-infrastructure/local-development). ## What gets built The top-level Makefile builds `ctmd` from `evmd/cmd/evmd`. Builds use CGO and first build the Rust SP1 verifier dynamic library from `rust/sp1verifier`. The usual developer targets are: ```bash make doctor make build make install ``` `make build` creates a development binary under `build/`. `make install` installs the binary into `BINDIR`, which defaults to `$(go env GOPATH)/bin` or `$HOME/go/bin` if `GOPATH` is not available. ## Prerequisites - Go matching `go.mod` and `evmd/go.mod` - `make` - Rust and Cargo for `rust/sp1verifier` - A working C toolchain for CGO builds - macOS dynamic-library tooling: `otool` and `install_name_tool` - Linux dynamic-library tooling: `ldd`; `patchelf` is recommended Ledger support is enabled by default and requires `gcc`. To build without ledger support: ```bash LEDGER_ENABLED=false make build ``` RocksDB support is enabled by default. If RocksDB is not detected, the build falls back to `goleveldb` unless `ROCKSDB_REQUIRED=true` is set. A build without RocksDB can still run a node on `goleveldb`, which `deploy.sh install` gives a new node home by default. On macOS, `deploy.sh install --binary PATH --db-backend rocksdb` refuses such a build. Existing chain data is never converted, so `deploy.sh start` refuses a node whose data was written in another format than its configured backend. The build expects RocksDB `10.9.1`, the version the `grocksdb` v1.10.7 bindings target. The Makefile checks only that RocksDB headers and libraries are present, not their version. ## macOS setup Install the Xcode Command Line Tools: ```bash xcode-select --install ``` For a local RocksDB-backed build, install RocksDB and companion libraries with Homebrew: ```bash brew install rocksdb snappy zstd lz4 bzip2 zlib gflags ``` Check the installed RocksDB version with `brew info rocksdb`; the build expects `10.9.1`. The build system uses Homebrew prefixes when available and uses `install_name_tool` to fix local dynamic-library paths. ## Linux setup Install the core build tools and dynamic-library helpers: ```bash sudo apt-get update sudo apt-get install -y --no-install-recommends \ build-essential \ pkg-config \ patchelf \ curl \ ca-certificates \ libsnappy-dev \ zlib1g-dev \ libbz2-dev \ liblz4-dev \ libzstd-dev \ libgflags-dev \ libnuma-dev ``` If your distribution ships a RocksDB `10.9.1` development package, install it. Otherwise, build RocksDB `10.9.1` from source and set `ROCKSDB_PREFIX`, `ROCKSDB_INCLUDE_DIR`, or `ROCKSDB_LIB_DIR` so the Makefile can find it, or build with `ROCKSDB_ENABLED=false`. Distribution packages may be older than `10.9.1`, and the Makefile accepts an older version without warning, so check the package version first. ## Build commands Check the local environment: ```bash make doctor ``` Build a development binary: ```bash make build ``` Install the binary: ```bash make install ``` Install into a custom directory: ```bash BINDIR=/path/to/bin make install ``` Create a self-contained distribution bundle under `build/dist`: ```bash make dist make verify-dist ``` Useful build overrides: ```bash ROCKSDB_ENABLED=false make build ROCKSDB_REQUIRED=true make build RUST_SP1_PROFILE=dev make build RUSTUP_TOOLCHAIN= make build ``` ## Outputs `make build` writes: ```text build/ctmd build/libsp1verifier.dylib # macOS build/libsp1verifier.so # Linux ``` `make install` writes: ```text $BINDIR/ctmd $BINDIR/Frameworks/libsp1verifier.dylib # macOS $BINDIR/lib/libsp1verifier.so # Linux ``` `make dist` writes: ```text build/dist/bin/ctmd build/dist/lib/libsp1verifier.* ``` When RocksDB is enabled, install and dist targets also bundle the required RocksDB dynamic libraries that the build system can detect. ## Verify the binary For a development build: ```bash ./build/ctmd version ``` For an installed build: ```bash ctmd version ``` If `ctmd` is not found after `make install`, confirm that `BINDIR` is on your `PATH`: ```bash export PATH="$(go env GOPATH)/bin:$PATH" ``` ## Run a local build with deploy.sh (macOS) On macOS, `deploy.sh install --binary PATH` runs a `ctmd` you built instead of the published release. `PATH` can be any of these: - the `ctmd` file; - a `make install` output directory holding `ctmd` and `Frameworks/` (by default `~/go/bin`); - `make dist` output holding `bin/ctmd` and `lib/`. The script checks that the build is a macOS arm64 executable that runs with its own libraries. ```bash ./deploy.sh install --binary ~/go/bin/ctmd # import a make install build ./deploy.sh install --binary ~/go/bin/ctmd --link # run it in place ./deploy.sh install # back to the published release ``` - **Import.** This copies the build into `releases/ctmd-local--/` and activates it like a release. Rebuilding changes nothing until you import again. - **`--link`.** This runs the build where it is. Run `./deploy.sh stop` before rebuilding, because `make install` replaces the file the node runs. `deploy.sh upgrade` does not switch a build run in place. `install` refuses while the node runs, and Linux refuses `--binary`. For `make install`, give `BINDIR` as an absolute path. A rebuild into the same `BINDIR` does not replace libraries already in `Frameworks/`, so delete that directory first for a clean set. ## Troubleshooting | Issue | Fix | |-------|-----| | `cargo` not found | Install Rust and Cargo, then rerun `make doctor`. | | `gcc not installed for ledger support` | Install a C toolchain or build with `LEDGER_ENABLED=false make build`. | | RocksDB is missing | Let the build fall back to `goleveldb`, set `ROCKSDB_REQUIRED=true` to fail fast, or set `ROCKSDB_PREFIX=/path/to/rocksdb`. | | `patchelf` is missing on Linux | Install `patchelf`; development builds can still run with `LD_LIBRARY_PATH=build ./build/ctmd version`. | | `ctmd` is not on `PATH` | Use the full binary path or install with `BINDIR="$HOME/.local/bin" make install`. | --- # Full Node Installation URL: https://docs.c8ntinuum.com/node-ops/full-node-installation This page covers deployment of a non-validator c8ntinuum `ctmd` node with the `deploy.sh` lifecycle script. For hosted deployment scripts and peer-list resources, see [Deployment Scripts](/reference/deployment-scripts). Validators install by hand: use the [manual mainnet install](/node-ops/validator-installation#manual-mainnet-install), which mirrors what the script does, and follow the signing-key, TMKMS, sentry, and double-sign protection procedures in [Validator Installation](/node-ops/validator-installation). `deploy.sh` then maintains a validator's node: `adopt` brings a hand-installed host under `deploy.sh`, and `upgrade`, `upgrade --rollback`, `full-sync`, `snapshot create` and `snapshot restore` work on a validator with `--allow-validator`. ## Network defaults Use this table as an operator quick reference. For the canonical network records, see [Network Information - Mainnet Beta](/developer-essentials/network-information/mainnet) and [Network Information - Testnet](/developer-essentials/network-information/testnet). | Item | Mainnet | Testnet | | --- | --- | --- | | Cosmos chain ID | `c8ntinuum_8-1` | `c8ntinuum_8888-1` | | EVM chain ID | `8` | `8888` | | Native currency | `CTM` | `CTM` | | Public EVM RPC | `https://public-evm-rpc.c8ntinuum.com` | `https://public-testnet-evm.c8ntinuum.link` | | Public CometBFT RPC | `https://public-comet-rpc.c8ntinuum.com` | `https://public-testnet-comet.c8ntinuum.link` | | Genesis URL | `https://resources.c8ntinuum.io/mainnet/genesis.json` | `https://resources.c8ntinuum.io/testnet/genesis.json` | | Genesis SHA-256 | `ebe6292aa5885b508b1d455c93564683c92e9cc3f80592ee615b1cffbc74a653` | `844f4322877d19e538d7ce584af92a2ab3a7eb825757b6b956068a4d255c6d43` | | Peers URL | `https://resources.c8ntinuum.io/peers.json` | Same schema, selected by chain ID | ## Operating model | OS | Node home | Process model | |----|-----------|---------------| | Linux | `/var/lib/ctmd` | `systemd`, via `ctmd.service` | | macOS | `$HOME/.ctmd` | `deploy.sh start` background process with PID/log files | On Linux, `deploy.sh install` creates a `ctmd` service user and group, and the node home owned by `ctmd:ctmd`. It installs a hardened `ctmd.service` and enables it, but does not start it. The node starts when you run one of these: `deploy.sh state-sync` (a node that needs only recent blocks), `deploy.sh snapshot restore` (an archive or explorer node), `deploy.sh full-sync` (every block from 1, through each chain upgrade) or `deploy.sh start`. `install` ends by printing the first three as next steps. On macOS, it installs the binary and bootstraps the user-managed `$HOME/.ctmd` home without installing a service. ## Recommended operational configuration Use the node profile that matches the workload. A normal application node should prioritize fast bootstrap, protected RPC surfaces, and bounded historical reads. An exchange, custodian, or indexer that must rebuild history from first principles should run archive infrastructure or consume a dedicated indexer. | Workload | Recommended node shape | Data mode | Notes | |----------|------------------------|-----------|-------| | Wallets and applications | Full node behind a private RPC gateway | State sync bootstrap, default pruning | Best for current blocks, balances, receipts, and recent logs. | | Exchange deposits | Full node plus indexed log pipeline | State sync bootstrap plus durable scanner database | Use bounded RPC scans and idempotent crediting. Add archive/indexer access for long backfills. | | Complete historical replay | Archive node | `deploy.sh full-sync --archive` (mainnet only so far) or `deploy.sh snapshot restore` (Linux), `pruning = "nothing"` | State sync does not provide pre-snapshot history. See [Archive Data Setup](/node-ops/archive-data). | | Debug tracing | Archive node with private debug RPC | Built as above, EVM indexer enabled | Keep `debug`, `txpool`, and `personal` off public endpoints. | Exchange and custodian nodes must follow chain upgrades: once the proposal has passed and `metadata.json`'s upgrade map lists the upgrade, arm the release on each Linux node before the height with `sudo ./deploy.sh upgrade` (its `--dry-run` must say `armed` on the `Switch:` line), and keep the node running, because a stopped node never reaches the height. At the height the chain adds no blocks until validators with more than 2/3 of the voting power run the new release. See [Governance upgrades](/guides/exchange-integration/running-a-node#governance-upgrades) for the exchange walk-through, and [Upgrade Instructions](/node-ops/upgrade-instructions#governance-upgrades) for the full procedure. Recommended baseline: - Install Linux production nodes with `deploy.sh install`. `--moniker ` is optional: without it, a new node home takes the host name up to its first dot, or `ctmd-node` when nothing usable is left. Manage them with `deploy.sh start` and `deploy.sh stop`, monitor them with `deploy.sh status --check`, and keep them current with `deploy.sh upgrade`. - Bootstrap new non-archive nodes with [State Sync](/node-ops/state-sync). Build archive nodes with `deploy.sh full-sync --archive`, which replays every block from 1 and switches releases at each chain upgrade (mainnet only so far: testnet has no upgrade map, so `full-sync` refuses there). On Linux, you can instead restore a full-history snapshot with `deploy.sh snapshot restore`. Both write `pruning = "nothing"` and the other archive settings. Neither turns on the EVM JSON-RPC: run `deploy.sh rpc enable`. `full-sync --archive` does not turn on the EVM indexer, and `snapshot restore` turns it on only for a snapshot whose EVM index covers the history. Follow [Archive Data Setup](/node-ops/archive-data) for the rest. - Keep RPC, REST, gRPC, WebSocket, and metrics endpoints on localhost or private interfaces unless a reverse proxy enforces TLS, authentication, rate limits, request size limits, and IP allowlists. - Use the default public EVM namespace shape `eth,net,web3` for externally exposed RPC. Enable `txpool` or `debug` only on private archive or operations nodes. - Monitor local height, catching-up state, peer count, process restarts, disk growth, RPC latency, HTTP `429` rates, and WebSocket reconnect storms. ## Deploy script To install `ctmd`, run `deploy.sh install`. To move an installed node to another release, run `deploy.sh upgrade` (see [Upgrade](#upgrade)). Download the script and its checksum, and verify the script before you run it: ```bash curl -fsSL https://resources.c8ntinuum.io/deploy.sh -o deploy.sh curl -fsSL https://resources.c8ntinuum.io/deploy.sh.sha256 -o deploy.sh.sha256 sha256sum -c deploy.sh.sha256 # macOS: shasum -a 256 -c deploy.sh.sha256 chmod +x deploy.sh ``` Keep both files in the same directory, because the checksum line names the file `deploy.sh`. `./deploy.sh help` lists the commands, and `./deploy.sh COMMAND --help` shows a command's options. This download-first flow is the preferred operator path because it gives you a local script to inspect, rerun, and use for lifecycle commands. ## Install from release Recommended Linux install: ```bash sudo ./deploy.sh install --moniker ``` Recommended macOS install (Apple silicon only; `deploy.sh` does not support Intel Macs): ```bash ./deploy.sh install --moniker ``` `deploy.sh install` reads [metadata.json](https://resources.c8ntinuum.io/metadata.json), resolves `.ctmd.latest_version`, selects the current artifact and SHA-256 URL for the host platform (`linux-amd64`, `linux-arm64`, or `darwin-arm64`), downloads the tarball, verifies SHA-256, and installs the `ctmd` binary with bundled shared libraries. It then initializes the node home, downloads and verifies genesis, and repairs the chain ID settings. It writes `seeds` and `persistent_peers` from `https://resources.c8ntinuum.io/peers.json` to a new node home, or to an existing one that has neither. Any other existing node home keeps its own peers unless you pass `--reset-peers`. The plan's `Peers` line says which case applies. `install` and `state-sync` download the genesis for the node's chain ID before anything on the node changes. They check its `chain_id` and its SHA-256 against the `sha256_url` that `metadata.json` lists for that chain ID; this covers testnet as well as mainnet. `start` checks the local `genesis.json` against the same checksum. For mainnet, that is the SHA-256 published at the URL in the `metadata.json` field `genesis.mainnet.sha256_url` (`https://resources.c8ntinuum.io/mainnet/genesis.json.sha256`). A chain ID that `metadata.json` does not list needs `CTMD_GENESIS_URL`, and that genesis is checked for its `chain_id` only, with a warning. `deploy.sh` manages these paths. `install` creates the ones from `/opt/ctmd-/bin/ctmd` to the macOS cache row, and sets the previous-release links. `upgrade`, arming for a chain upgrade and `full-sync` write the others only while they need them: | Path | Purpose | |------|---------| | `/opt/ctmd-/bin/ctmd` | Versioned binary | | `/opt/ctmd-/lib/` | Bundled shared libraries | | `/opt/ctmd` | Symlink to the active version | | `/usr/local/bin/ctmd` | Symlink to the active binary | | `/etc/systemd/system/ctmd.service` | Linux systemd unit | | `/var/lib/ctmd/` | Linux node home | | `/var/cache/ctmd/` | Linux release download cache | | `$HOME/.ctmd/releases/ctmd-/` | macOS versioned install | | `$HOME/.ctmd/current` | macOS symlink to the active version | | `$HOME/.ctmd/bin/ctmd` | macOS CLI symlink | | `$HOME/.ctmd/cache/downloads/` | macOS release download cache | | `/opt/ctmd.previous` | Symlink to the release before the last switch, which `upgrade --rollback` goes back to | | `$HOME/.ctmd/previous` | macOS symlink to the previous release | | `/opt/.ctmd-upgrade` | Record of a switch that has not passed its check yet; `status` shows an `Upgrade` line while it exists | | `/opt/.ctmd-armed` | Release armed for a chain upgrade; renamed `/opt/.ctmd-armed.done` once the watcher switched | | `/opt/.ctmd-full-sync` | Plan of a full sync in progress | | `/etc/systemd/system/ctmd-chain-upgrade.path`, `.service`, `.timer`, `ctmd-chain-upgrade-check.service`, `/usr/local/libexec/ctmd-chain-upgrade` | Chain-upgrade watcher. Installed when a release is armed, or when a full sync begins with a chain upgrade in its map; removed by the next `upgrade` after the switch, by `upgrade --cancel`, or when the full sync is done or cancelled | | `/run/ctmd-deploy/upgrade.lock` | Lock held by `upgrade`, the watcher's switch, `snapshot restore`, `uninstall`, `reset`, and `full-sync` while it sets a node up, so only one of them changes the node at a time | ## Linux service unit `deploy.sh install` generates `/etc/systemd/system/ctmd.service`. The file carries a `do not edit` header, and both `install` and `state-sync` rewrite it, so local changes belong in a drop-in: ```bash sudo systemctl edit ctmd.service sudo systemctl restart ctmd.service ``` `systemctl edit` writes `/etc/systemd/system/ctmd.service.d/override.conf` and reloads systemd; a drop-in you place by hand needs `systemctl daemon-reload`. Drop-ins survive reinstall and state sync, but `deploy.sh reset` deletes the unit and the entire `ctmd.service.d` directory, so keep overrides in configuration management rather than only on the host. Read the unit on the host you are working on rather than from documentation: ```bash systemctl cat ctmd.service ``` A host built by hand from a flat `/usr/local` install carries a different unit at the same path: a non-versioned `LD_LIBRARY_PATH`, and a real binary at `/usr/local/bin/ctmd` instead of a symlink. Use one deployment model per host and do not mix them. `install` and `state-sync` refuse a flat install. To move it under `deploy.sh` and keep its `ctmd` version, node home, keys and peers, run `adopt`; after that, `upgrade` works on it: ```bash sudo ./deploy.sh adopt --dry-run sudo ./deploy.sh adopt ``` `deploy.sh start` and `deploy.sh stop` drive this unit through `systemctl`. Logs go to the journal under the `ctmd-node` syslog identifier. The fields that matter to an operator: | Field | Value | Implication | |-------|-------|-------------| | `ExecStart` | `/usr/local/bin/ctmd start --home /var/lib/ctmd` | Runs through the CLI symlink, which points at the active `/opt/ctmd` install. Repointing the active install takes effect on the next restart, with no unit edit and no `daemon-reload`. | | `User` / `Group` | `ctmd` / `ctmd` | Unprivileged system account created by `install`. `install` and `state-sync` set ownership across the node home; anything you copy in by hand, such as a restored `data/` directory, must be owned by `ctmd:ctmd`. | | `Environment=LD_LIBRARY_PATH` | `/opt/ctmd/lib` | A fallback only. The release binary finds its bundled libraries in `/opt/ctmd-/lib` through its RPATH (`$ORIGIN/../lib`), which the loader searches first, so the binary and its libraries always move together. `ldconfig` is not needed. | | `Environment=TMPDIR` | `/var/lib/ctmd/tmp` | `ProtectSystem=strict` makes `/tmp` read-only for the service, and CometBFT writes state-sync chunks through the Go temp directory. `install` creates this directory owned by `ctmd` with mode `0700`; state sync fails if it is missing or not writable. | | `Restart` / `RestartSec` | `on-failure` / `10s` | A crash restarts after ten seconds. A clean `deploy.sh stop` or `systemctl stop` stays stopped. | | `KillSignal` / `TimeoutStopSec` | `SIGINT` / `600` | `SIGINT` is the clean CometBFT shutdown, and a busy node can take minutes to close its database. Do not shorten the timeout: an earlier `SIGKILL` lands mid-write. | | `LimitNOFILE` | `1000000` | Headroom for database file handles and peer sockets. Do not lower it in a drop-in. | | `TasksMax` | `infinity` | Removes the default per-unit task cap of roughly 15% of the system maximum, which otherwise limits a busy node unexpectedly. | Two hardening settings need care. `CapabilityBoundingSet=` and `AmbientCapabilities=` are both empty, so the service runs with no capabilities. That is correct only while every listener binds above 1024, as the Ports table below shows. If you move a listener below 1024, add `CAP_NET_BIND_SERVICE` to both directives in a drop-in; setting one without the other still fails the bind. Prefer a reverse proxy or a firewall redirect over lowering the node's own bind ports. The generated unit sets `MemoryDenyWriteExecute=no`; keep that value unless you have tested the node with it changed. macOS installs no service. `deploy.sh start` runs `ctmd` in the background under your own user, records the PID in `$HOME/.ctmd/ctmd.pid`, and writes `$HOME/.ctmd/node.log`; `deploy.sh stop` sends `SIGINT` to that PID. There is no unit, no drop-in, and no journal. To go back to the release the node ran before the last switch, run `upgrade --rollback`, which checks that release, restarts the node on it and checks the node again; the unit does not change, so no `daemon-reload` is needed, and on macOS you run `./deploy.sh upgrade --rollback` without `sudo`: ```bash sudo ./deploy.sh upgrade --rollback --dry-run sudo ./deploy.sh upgrade --rollback ``` See [Rollback](/node-ops/upgrade-instructions#rollback) for when it refuses. ## Build from source The `ctmd` source will be published in a public GitHub repository; the repository is to be announced. Until then, install from the release binaries above. Once the source is available, follow [Build the Node](/node-ops/build-the-node), then verify the binary: ```bash ctmd version ctmd version --long | grep -i rocksdb ``` ## Start sync State sync is recommended for new nodes because it avoids replaying from genesis: ```bash sudo ./deploy.sh state-sync ``` On macOS: ```bash ./deploy.sh state-sync ``` State sync keeps only the blocks after its trust height. A node that needs every block from 1 cannot replay the chain with `start`: a later release stops with `BINARY UPDATED BEFORE TRIGGER` below a chain upgrade it knows, and an earlier one halts at the next upgrade's height. Run `full-sync` on a new node home instead. It runs each stretch of history with the release that ran it, as `metadata.json`'s upgrade map lists them, and switches the release at each chain upgrade. It takes weeks on mainnet and needs peers that keep every block, so run it in tmux: ```bash tmux new -s sync sudo ./deploy.sh full-sync --dry-run sudo ./deploy.sh full-sync # --archive for an archive node ``` On Linux, Ctrl-C or a lost session ends only the wait: the node keeps syncing, and the chain-upgrade watcher keeps switching it. Run `full-sync` again to follow the sync and finish it. Only mainnet has an upgrade map so far, so `full-sync` refuses on testnet. On Linux, an archive or explorer node can instead restore a full-history snapshot with `sudo ./deploy.sh snapshot restore`, also in tmux; its `--dry-run` shows the download size and the disk it needs. See [Full Sync](/node-ops/full-sync) for the details. macOS has no chain-upgrade watcher, so `full-sync` switches the release itself, and only while it runs. Keep it running in tmux (macOS does not include it: `brew install tmux`, or use `screen`) and keep the Mac awake: ```bash tmux new -s sync caffeinate -i ./deploy.sh full-sync ``` If it stops, the node halts at the next chain upgrade until you run `full-sync` again. Use `full-sync`, not `start`, for a halted node. Follow the node's log with `sudo ./deploy.sh logs -f` (macOS: `./deploy.sh logs -f`). ## Upgrade `deploy.sh upgrade` moves an installed node to another `ctmd` release, changing only the binary and its libraries, and waits until the node is synced. ```bash sudo ./deploy.sh upgrade --dry-run # download and check the release, show the plan; changes nothing sudo ./deploy.sh upgrade # the release for a chain upgrade at hand, else metadata.json's latest_version sudo ./deploy.sh upgrade 0.2.4 # a given release sudo ./deploy.sh upgrade --rollback # back to the release before sudo ./deploy.sh upgrade --cancel # disarm a release armed for a chain upgrade ``` A binary upgrade restarts the node on the new release, checks that it answers with the new version and adds blocks, and goes back to the old release by itself if that check fails. For a chain upgrade that governance scheduled, `upgrade` on Linux arms the release and restarts nothing, and a watcher switches the node when it halts at the upgrade height; macOS has no watcher, so run `upgrade` there once the node has halted. A running validator needs `--allow-validator`, and on macOS the commands run without `sudo`. See [Upgrading a node](/node-ops/upgrade-instructions#upgrading-a-node) for the full procedure and the exit codes. ## Ports | Port | Service | Exposure | |------|---------|----------| | `26656/tcp` | P2P | Public or peer-restricted | | `26657/tcp` | CometBFT RPC | Localhost or reverse proxy only | | `1317/tcp` | Cosmos REST/LCD | Localhost or reverse proxy only | | `9090/tcp` | gRPC | Localhost or reverse proxy only | | `8545/tcp` | EVM JSON-RPC HTTP | Localhost or reverse proxy only | | `8546/tcp` | EVM JSON-RPC WebSocket | Localhost or reverse proxy only | | `26660/tcp` | CometBFT Prometheus metrics | Firewall-restricted | | `6065/tcp` | EVM JSON-RPC metrics | Firewall-restricted | Do not expose RPC, REST, gRPC, or EVM JSON-RPC directly to the public internet without a reverse proxy, firewall, and rate limiting. ## Health checks Check local status: ```bash curl -s http://127.0.0.1:26657/status | jq ``` Check install and sync status (on Linux, run it with `sudo`: without it, `status` cannot read the node home and shows less; on macOS, run the same commands without `sudo`, which macOS commands refuse): ```bash sudo ./deploy.sh status sudo ./deploy.sh status --check sudo ./deploy.sh status --json | jq '.chain.height, .health' ``` `status` shows five sections: `Node`, `Chain`, `Endpoints`, `Config` and `Disk`. The `Node` section also reports the release state: - `Previous`: the release `upgrade --rollback` goes back to. - `Running`: the node runs another version than the installed one, because it was not restarted after a switch. - `Runs under` (Linux): a drop-in makes `ctmd.service` run another program than `/usr/local/bin/ctmd`, such as cosmovisor. `Running` is then left out, and `Previous` is not a way back. `sudo ./deploy.sh upgrade` takes a node under cosmovisor over (see [Upgrading a node](/node-ops/upgrade-instructions#upgrading-a-node)). - `Upgrade`: an upgrade did not finish. Go back with `sudo ./deploy.sh upgrade --rollback`. - `Armed` (Linux): a release is armed for a chain upgrade, with its watcher `on`, `off` or `failed`. - `Switched` (Linux): the watcher switched the node at a chain upgrade. - `Full sync`: a full sync from block 1 is in progress. `--check` adds a `Health` line and exits with its code: - `0` `OK`; - `1` `DOWN`; - `2` `BEHIND`: the node is catching up, or its last block is more than 120 seconds old; - `3` `MISCONFIGURED`. When several apply, 1 wins over 3, and 3 over 2. Run `status --check` from cron or a systemd timer, and alert on a non-zero exit code. ## Monitoring Enable CometBFT metrics in `config.toml`: ```toml [instrumentation] prometheus = true prometheus_listen_addr = "127.0.0.1:26660" namespace = "ctm" ``` Optional EVM JSON-RPC metrics require `--metrics` on startup and this app config: ```toml [json-rpc] metrics-address = "127.0.0.1:6065" ``` Scrape `http://127.0.0.1:26660/metrics` for CometBFT metrics and `http://127.0.0.1:6065/debug/metrics/prometheus` for EVM JSON-RPC metrics. Run `node_exporter` alongside `ctmd` for disk, CPU, memory, and network metrics. ## Common recovery Use the managed lifecycle commands for normal start, stop, and inspection: ```bash sudo ./deploy.sh stop sudo ./deploy.sh start sudo ./deploy.sh status ``` For a clean reinstall, use the destructive reset command: ```bash sudo ./deploy.sh reset ``` On macOS: ```bash ./deploy.sh reset ``` `reset` is `uninstall --purge-data`. It removes everything `deploy.sh` installed and the whole node home (keys, config, chain data). On Linux it also removes the unit and its drop-ins, the chain-upgrade watcher, and the `ctmd` system user and group. Before it deletes anything, it saves the node identity (`priv_validator_key.json`, `node_key.json`, `priv_validator_state.json` and `config/*.toml`) to `ctmd-identity--.tar.gz` (mode 0600) in your home. `--no-backup` skips that save, and `--dry-run` shows the plan without changing anything. The node home records the chain ID, so to reinstall a testnet node, pass `--chain-id c8ntinuum_8888-1` to `install` again. To remove the install but keep the node home, use `uninstall`. Preview either command with `--dry-run`: ```bash sudo ./deploy.sh reset --dry-run sudo ./deploy.sh uninstall --dry-run ``` --- # State Sync URL: https://docs.c8ntinuum.com/node-ops/state-sync State sync lets a node bootstrap from a recent application snapshot instead of replaying every block from genesis. Use `deploy.sh state-sync` for normal c8ntinuum installs; the hosted script and peer-list source are listed in [Deployment Scripts](/reference/deployment-scripts). The script resolves trusted RPC endpoints and snapshot peers, patches the node config, resets local chain data, starts the node, waits for catch-up, then disables state sync again. ## State sync, snapshot restore, or full sync State sync is the quickest way to get a node that needs only recent blocks. An archive or explorer node needs the full history, which state sync cannot give it. | | `state-sync` | `snapshot restore` (Linux) | `full-sync` (mainnet only so far) | |---|---|---|---| | Use for | A node that needs only recent blocks | An archive or explorer node: the full history | A new node that replays the chain itself, where no snapshot fits or none should be trusted | | Chain data | Reset, then the app state at one recent height | Replaced by an archive's `data/` up to a height H, then synced from H | None at the start (a node with any is refused), then every block from 1 | | Release it runs | The active one | The active one, which must be the snapshot's `ctmd_version` | The release from block 1, then each chain upgrade's, switched at its height | | Downloads | `genesis.json`, then a state-sync snapshot from P2P peers | A `.tar.zst` of the whole history over HTTPS | Every release the upgrade map names, then every block from peers that keep them all | | Checked against | A trust height and hash from a trusted RPC | The manifest's SHA-256, and block H's hash and app hash at a trusted RPC | The upgrade map against x/upgrade at a trusted RPC, and each release against its `.sha256` | `deploy.sh start` runs a node home that is already set up, and keeps its data. See [Archive Data Setup](/node-ops/archive-data) and [Full Sync](/node-ops/full-sync). State sync wipes the local `data/` directory. Back up anything you need before confirming the reset. ## Prerequisites - **Managed install and node home** created by `deploy.sh install`. `--moniker` is optional: a new node home takes the host name up to its first dot (`node-1.example.com` gives `node-1`), or `ctmd-node` when nothing usable is left. - `curl`, `jq`, `awk`, `sed`, `tr`, `mktemp`, `cp` and `id`, plus `sha256sum` or `shasum`. Linux also needs `systemctl` and `runuser`; macOS needs `ps`. - On Linux, a node that `deploy.sh` manages. A node installed by hand under `/usr/local` is refused, and the message points to `sudo ./deploy.sh adopt`. - No release armed for a chain upgrade, no full sync in progress, and no upgrade left unfinished. On Linux, no `upgrade`, `snapshot restore`, `uninstall`, `reset` or full-sync setup running either. - On Linux, a `ctmd.service` that runs `/usr/local/bin/ctmd`. A node that a drop-in puts under cosmovisor is refused: take it over first with `sudo ./deploy.sh upgrade` (see [Upgrading a node](/node-ops/upgrade-instructions#upgrading-a-node)). - On macOS, a stopped node (`./deploy.sh stop`). A node home other than `$HOME/.ctmd` needs `--home DIR` or `CTMD_HOME`. - Network access to trusted CometBFT RPC endpoints and P2P snapshot peers Default homes: | OS | Node home | Process model | |----|-----------|---------------| | Linux | `/var/lib/ctmd` | `ctmd.service` managed by systemd | | macOS | `$HOME/.ctmd` | `deploy.sh start` background process with PID/log files | ## Quick start Linux: ```bash sudo ./deploy.sh install --moniker sudo ./deploy.sh state-sync ``` macOS: ```bash ./deploy.sh install --moniker ./deploy.sh state-sync ``` The default flow targets mainnet: | Item | Value | | --- | --- | | Chain ID | `c8ntinuum_8-1` | | Genesis URL | `https://resources.c8ntinuum.io/mainnet/genesis.json` | | Genesis SHA-256 | `ebe6292aa5885b508b1d455c93564683c92e9cc3f80592ee615b1cffbc74a653` | | Peers URL | `https://resources.c8ntinuum.io/peers.json` | | Trust-height lag | `2000 blocks` | | Trust period | `168h0m0s` | | P2P port | `26656` | ## Testnet Install the node with the testnet chain ID. `deploy.sh state-sync` reads the chain ID from the node home, so you choose the chain at `install`, not with a `state-sync` flag. The testnet genesis comes from `metadata.json` and is checked against its published SHA-256, so no genesis URL override is needed: ```bash sudo ./deploy.sh install --chain-id c8ntinuum_8888-1 sudo ./deploy.sh state-sync ``` On macOS, run the same commands without `sudo`. `CTMD_GENESIS_URL` is only for a chain ID that `metadata.json` does not list; such a genesis is checked for its chain ID only. An existing node home keeps its chain ID. To move it to another network, run `deploy.sh reset`, then `install` with `--chain-id`. ## Custom endpoints `deploy.sh state-sync` reads RPCs and snapshot peers from `https://resources.c8ntinuum.io/peers.json`, selected by chain ID. Override individual endpoints when you need private infrastructure: ```bash sudo ./deploy.sh state-sync \ --rpc-1 https:// \ --rpc-2 https:// \ --p2p-host-1 \ --p2p-host-2 ``` Options: | Flag | Default | Purpose | |------|---------|---------| | `--lag N` | `2000` | Blocks behind RPC 1's latest height for the trust point. | | `--restore-timeout MIN` | `60` | Minutes the node may stay at height 0 while it restores a snapshot, before state sync counts as stuck (1 to 99999). | | `--rpc-1 URL` | first `trusted_rpcs` URL in `peers.json` | Override trusted RPC 1 (trust point and `rpc_servers`). | | `--rpc-2 URL` | second `trusted_rpcs` URL in `peers.json` | Override trusted RPC 2. | | `--p2p-host-1 HOST` | first `persistent_peers` entry in `peers.json` | Replace that snapshot peer. A host that the network's `persistent_peers` lists keeps that entry's node ID and port. Any other host takes RPC 1's node ID and port `26656`, so RPC 1 must be that node. | | `--p2p-host-2 HOST` | second `persistent_peers` entry in `peers.json` | The same for the second entry and RPC 2. | | `--force` | off | State-sync a node that looks like an archive. Its history is deleted. | | `-y, --yes` | off | Answer the `Patch config and reset chain data?` prompt. Without it and without a terminal, `state-sync` stops before changing anything. | The trust period is fixed at `168h0m0s`. The snapshot peers are every `persistent_peers` entry of the network in `peers.json`, each with the node ID and port listed there (port `26656` when none is given). They need not be the nodes behind the trusted RPCs. Only a `--p2p-host-N` host that the network's `persistent_peers` does not list takes its node ID from RPC N's `/status` and port `26656`. ## What the script does Before the prompt, nothing is stopped or changed: 1. Detects the host OS and node home. Linux needs root; macOS refuses it. 2. Checks the required programs and the initialized node home (`config.toml`, `app.toml`, `client.toml`, and `ctmd.service` on Linux). On Linux it refuses a node installed by hand under `/usr/local` and points to `sudo ./deploy.sh adopt`. 3. Refuses while a release is armed for a chain upgrade, a full sync is in progress, or an upgrade did not finish. On Linux it also refuses while an `upgrade`, `snapshot restore`, `uninstall`, `reset` or a full sync's setup runs, and refuses a node whose `ctmd.service` a drop-in points at cosmovisor or another program. On macOS it also refuses while the node runs. 4. Refuses a node that looks like an archive, unless `--force`. 5. Reads the chain ID from `client.toml` (else `genesis.json`), looks up the genesis in `metadata.json`, and resolves the trusted RPCs and snapshot peers from `peers.json`. 6. Fetches the latest height from RPC 1, computes `trust_height = latest_height - lag`, and fetches the `trust_hash` at that height. 7. Prints the plan and asks `Patch config and reset chain data?`. After you confirm: 8. Downloads `genesis.json` and checks its chain ID and published SHA-256. If this fails, the script stops here with nothing stopped or changed. 9. Stops `ctmd.service` on Linux. 10. Saves the node's own `seeds` and `persistent_peers` if they differ from the sync's. Then it moves the genesis into place and repairs the chain IDs: `[evm] evm-chain-id` in `app.toml` is set from the chain ID, `8` on mainnet and `8888` on testnet. 11. Patches `[statesync]`, `[mempool]` and `[p2p]`. On Linux it also rewrites `/etc/systemd/system/ctmd.service`; a unit that `deploy.sh` did not write is first saved to `/var/backups/ctmd-unit-.service`. 12. Resets local data with `ctmd comet unsafe-reset-all --keep-addr-book` (`tendermint` on older builds). 13. Starts the node and waits until it reports `catching_up=false` or is within 2 blocks of RPC 1's tip. 14. Stops the node, sets `[statesync] enable = false`, puts back the node's own peers, and starts it again: `ctmd.service` on Linux, the managed background node on macOS. ## Trust verification Before confirming the run, verify the printed `Trust height` and `Trust hash` against an independent source. With `-y` there is no prompt to stop at, so check the trust point on a run without `-y`. The script uses RPC 1 to compute the trust point, so an explorer or third RPC gives you a better safety check. | Network | Explorer | |---------|----------| | Mainnet | `https://ctmscan.io` | | Testnet | `https://testnet.ctmscan.io` | Look up the block at the printed trust height and compare its block hash to the printed trust hash. The comparison is case-insensitive. If the hashes do not match, do not continue. ## Config written `deploy.sh state-sync` writes these fields in `config.toml`: | Field | Section | Value | |-------|---------|-------| | `enable` | `[statesync]` | `true` during sync, then `false` after catch-up. | | `rpc_servers` | `[statesync]` | `,` | | `trust_height` | `[statesync]` | Latest height minus lag. | | `trust_hash` | `[statesync]` | Block hash at the trust height. | | `trust_period` | `[statesync]` | Fixed script default `168h0m0s`. | | `type` | `[mempool]` | `"app"` | | `seeds` | `[p2p]` | During the sync, the seeds from `peers.json`. Afterwards, the node's own again if it had other ones. | | `persistent_peers` | `[p2p]` | During the sync, the snapshot peers: the network's `persistent_peers` from `peers.json`, with any `--p2p-host-N` override in place of entry N. Afterwards, the node's own again if it had other ones. | | `max_packet_msg_payload_size` | `[p2p]` | `10240` | If the node has `seeds` or `persistent_peers` of its own that differ from the sync's, `state-sync` saves them to `config/p2p-peers.before-state-sync` and writes them back when the sync completes. The plan then shows an `Own peers` line. A sync that does not finish leaves the file in place, and `deploy.sh status` shows it. Nodes that should provide snapshots to the network need snapshots enabled in `app.toml`: ```toml [state-sync] snapshot-interval = 5000 snapshot-keep-recent = 2 ``` ## Logs and artifacts | Path | OS | Purpose | |------|----|---------| | `sudo ./deploy.sh logs` (the `ctmd.service` journal) | Linux | Sync and runtime logs. `-f` follows; `-n N` sets the line count. | | `./deploy.sh logs --state-sync` (`$HOME/.ctmd/state_sync.log`) | macOS | State sync catch-up log. The previous run's log is kept as `state_sync.log.prev`. | | `./deploy.sh logs` (`$HOME/.ctmd/node.log`) | macOS | Post-sync node log. | Check local sync status: ```bash sudo ./deploy.sh status # macOS: ./deploy.sh status curl -s http://127.0.0.1:26657/status | jq .result.sync_info ``` ## Troubleshooting | Issue | Fix | |-------|-----| | RPC height or block hash cannot be fetched | Confirm the RPC responds to `/status` and `/block?height=`. | | `could not read a node ID from ` | Only a `--p2p-host-N` host that the network's `persistent_peers` in `peers.json` does not list reads its node ID from RPC N. Confirm that RPC N's `/status` returns the `result.node_info.id` of the node at that host, or pass the host spelled as `persistent_peers` lists it. | | `this node looks like an archive: ...` | The node has `pruning = "nothing"` and serves every block from 1, or is stopped. On Linux, restore a full-history snapshot instead (`sudo ./deploy.sh snapshot restore`), or pass `--force` if its history may go. | | `... is armed for the chain upgrade ...` or `a full sync is in progress ...` | Disarm with `sudo ./deploy.sh upgrade --cancel`, or wait for the switch. Stop a full sync with `sudo ./deploy.sh full-sync --cancel`. | | `... is a file, not deploy.sh's link: this node was installed by hand under /usr/local` | Move the node under `deploy.sh` first: `sudo ./deploy.sh adopt`. | | `an upgrade from ... did not finish ...` | Settle it with `sudo ./deploy.sh upgrade --rollback`, then run `state-sync` again. | | `taking the node over from cosmovisor ... did not finish ...` | `sudo ./deploy.sh upgrade --rollback` puts the node back under cosmovisor, where `state-sync` still refuses it. Then take it over with `sudo ./deploy.sh upgrade`, and run `state-sync` again. | | `... is running on this host (it holds /run/ctmd-deploy/upgrade.lock) ...` | Wait for that command to finish, then run `state-sync` again. | | `ctmd.service runs /usr/local/bin/cosmovisor (cosmovisor), not /usr/local/bin/ctmd ...` | Take the node over from cosmovisor with `sudo ./deploy.sh upgrade`. For a node that cannot run, the message gives the steps to set cosmovisor's drop-in aside by hand. | | `ctmd.service runs , not /usr/local/bin/ctmd (systemctl cat ctmd.service) ...` | Remove the drop-in that sets `ExecStart`, run `sudo systemctl daemon-reload`, then run `state-sync` again. | | `still at height 0 after N minutes` | The snapshot restore may still be running. Rerun with a larger `--restore-timeout`. | | `state-sync` was interrupted | Run `state-sync` again until the node has caught up. Once it has printed `Disabling state sync and restarting normally`, the sync is done: run `start` instead. | | No snapshots found | Confirm the snapshot peers are reachable on the P2P ports that `persistent_peers` in `peers.json` lists (`26656` when none is given); if needed, rerun with `--lag 5000`. | | Local node is past the trust height | Skip state sync and let normal block sync continue, or choose an older trust point with a larger lag. | --- # Full Sync URL: https://docs.c8ntinuum.com/node-ops/full-sync `deploy.sh full-sync` syncs a node that has no chain data yet from block 1, through every chain upgrade (x/upgrade), and switches the `ctmd` release at each one. Use it for a new node that should replay the chain itself, where no data snapshot fits or none should be trusted. For a node that needs only recent blocks, [State Sync](/node-ops/state-sync) is quicker. For the full history on Linux, restoring a data snapshot is quicker too (see [Archive Data Setup](/node-ops/archive-data)). A full sync takes weeks on mainnet and needs peers that keep every block. It runs only on a network whose upgrade map is published: mainnet, not testnet yet. ## Why each era needs its own release No single release can replay the whole chain. A later release stops with `BINARY UPDATED BEFORE TRIGGER` below an upgrade it knows, and an earlier one halts at the next upgrade's height. So `full-sync` runs each stretch of history with the release that ran it, as listed in the upgrade map in `https://resources.c8ntinuum.io/metadata.json`: | Network | From block 1 | Chain upgrades | |---------|--------------|----------------| | Mainnet (`c8ntinuum_8-1`) | `ctmd 0.2.3` | `v0.2.3-to-v0.2.3-rc1` at height `714700`: `ctmd 0.2.4` | | Testnet (`c8ntinuum_8888-1`) | Not published | Not published: `full-sync` refuses | Both mainnet releases are published for `linux-amd64`, `linux-arm64` and `darwin-arm64`. ## Quick start Linux: ```bash sudo ./deploy.sh install --moniker archive-1 # a new node home: no chain data yet tmux new -s sync # reattach later: tmux attach -t sync sudo ./deploy.sh full-sync --dry-run # download and check every release, show the plan; changes nothing sudo ./deploy.sh full-sync # set up, start, and follow the sync (--archive for an archive) ``` macOS: ```bash ./deploy.sh install --moniker local-archive tmux new -s sync ./deploy.sh full-sync --dry-run caffeinate -i ./deploy.sh full-sync ``` macOS does not include tmux: install it first (`brew install tmux`), or use `screen`. On macOS, run every command on this page without `sudo`: `deploy.sh` refuses root there. The files this page places under `/opt` live under the install prefix there (`PREFIX`: the node home, `$HOME/.ctmd`, unless `--prefix DIR`). On Linux, Ctrl-C (exit 130) or a lost session ends only the wait: the node keeps syncing and the watcher keeps switching it. On macOS, it also ends the switches (see below). Either way, run `full-sync` again to follow the sync and finish it. ## How the release is switched On Linux, `full-sync` writes its plan to `/opt/.ctmd-full-sync` and turns on the chain-upgrade watcher (`ctmd-chain-upgrade.path` and `ctmd-chain-upgrade.timer`). At each upgrade's halt, the watcher stops the node, points `/opt/ctmd` at that upgrade's release, and starts the node again. This works whether or not `full-sync` is running, and across reboots. macOS has no watcher, so `full-sync` makes the same switches itself, and only while it runs. Keep it running in tmux. If it stops, the node halts at the next chain upgrade until `full-sync` runs again. For a node halted there, run `full-sync`, not `start`. ## Before anything changes `full-sync` checks the node, the map and every release before it changes anything. When a check fails, it stops with `ERROR: ...` and exit 1, and nothing has changed. Among the checks: - The node is stopped and `data/` holds no chain data. To start over: `sudo ./deploy.sh stop`, `sudo ./deploy.sh reset`, `sudo ./deploy.sh install`, then `full-sync`. - No release is armed for a chain upgrade, and no upgrade or snapshot command was left unfinished. - Block sync is on in `config.toml`. No `halt-height` or `halt-time` is set in `app.toml`, and `[statesync] enable = true` is not set in `config.toml`. - The upgrade map is valid, and it agrees with x/upgrade at the first trusted RPC from `peers.json` that answers, including any upgrade the chain has scheduled. When no trusted RPC answers, `full-sync` warns that the map is not checked against the chain and goes on. - Every release downloads, matches its `.sha256` and checksum lists, runs on this host, and reports its version. Each one knows the upgrade that starts its stretch and not the next one. - The node's key has voting power 0, or `--allow-validator` is passed (only when this node is to be that validator and the key runs nowhere else). When no trusted RPC answers, it warns and goes on. - `/opt` (macOS: `PREFIX/releases`) keeps at least 1 GB free with every release unpacked. ## Options | Flag | Default | Purpose | |------|---------|---------| | `--archive` | off | Make the node an archive first. Applies only when a full sync begins. | | `--allow-validator` | off | Sync a node whose key has voting power above 0. | | `--start-timeout MIN` | `10` | Minutes a release has to answer with its version after the start and after each switch (1 to 9999). | | `--cancel` | | Stop a full sync in progress. | | `--dry-run` | | Download and check everything, show the plan, and change nothing. | | `-y, --yes` | | Do not prompt. | ## Following, finishing, and cancelling - While the sync runs, `sudo ./deploy.sh status` shows a line such as `Full sync: from block 1 (started ...): ctmd 0.2.3, era 1 of 2; next: ...`. - Once the node is synced, `full-sync` removes the plan and prints `==> Full sync complete: ctmd 0.2.4 runs from /opt/ctmd-0.2.4`. On Linux it also removes the watcher, unless the plan lists a chain upgrade ahead of the network: that release then stays armed and the watcher stays. A scheduled chain upgrade added to the map after the full sync began is not armed: run `sudo ./deploy.sh upgrade` for it once the sync is done. macOS arms nothing: for a chain upgrade ahead of the network, the node halts at it, and `./deploy.sh upgrade` then switches it. Before the height, `upgrade` refuses on macOS. - `full-sync` never switches to a newer `latest_version`; run `sudo ./deploy.sh upgrade` for that. Right after a full sync there is no `/opt/ctmd.previous`, so `upgrade --rollback` has nothing to go back to. - `sudo ./deploy.sh full-sync --cancel` removes the plan and the watcher. The node keeps running its release and halts at the next chain upgrade, where `sudo ./deploy.sh upgrade` switches it. - If the node halts at a chain upgrade that the plan does not list, `full-sync` exits 3. The data so far is good: once the upgrade is in the map, run `sudo ./deploy.sh full-sync --cancel`, then `sudo ./deploy.sh upgrade`. - While a full sync is in progress, `install`, `state-sync`, `snapshot restore`, `adopt` and every form of `upgrade` refuse. `start`, `stop`, `status`, `logs` and `rpc` work. ## Exit codes | Exit | Meaning | |------|---------| | `0` | Synced and finished; `--dry-run`; cancelled at the prompt; `--cancel` done | | `1` | Refused before anything changed, or the full sync was cancelled while this run followed it | | `3` | The node did not start or answer on its release, a switch failed, the log shows `BINARY UPDATED BEFORE TRIGGER` or an app hash mismatch (the map names the wrong release), or the node halted at an upgrade the plan does not list. The setup stays: fix the cause, then run `full-sync` again. After a halt at an unlisted upgrade, run `full-sync --cancel`, then `upgrade`, instead | | `4` | The node stopped syncing: `ctmd` down for 2 minutes, or no block for 10 minutes while the network adds them | | `130` | Ctrl-C | --- # Validator Installation URL: https://docs.c8ntinuum.com/node-ops/validator-installation These values are grounded in the current c8ntinuum genesis and node code. ## Network constants | Field | Value | |-------|-------| | Binary | `ctmd` | | Home directory | `~/.ctmd`; `/var/lib/ctmd` on Linux hosts set up with the [manual mainnet install](#manual-mainnet-install) or `deploy.sh` | | Cosmos chain ID | `c8ntinuum_8-1` | | EVM chain ID | `8` | | Account prefix | `c8` | | Validator prefix | `c8valoper` | | Consensus prefix | `c8valcons` | | Staking denom | `ctm` | | Display symbol | `CTM` | | Denom exponent | `18` | ## Prerequisites - A fully synced `ctmd` node. Install it with the [manual mainnet install](#manual-mainnet-install) below. `deploy.sh`, described in [Full Node Installation](/node-ops/full-node-installation), maintains the node once `sudo ./deploy.sh adopt` has brought it under the script (see [Run the node as a service](#run-the-node-as-a-service)). These `deploy.sh` commands take `--allow-validator`: `upgrade`, `upgrade --rollback`, `full-sync`, `snapshot create` and `snapshot restore`. Without the flag they refuse a node whose key has voting power above 0, as far as they can tell. `adopt` and `rpc` have no such check: they restart a running node after a prompt, or at once with `-y`. `upgrade` asks a running node's RPC, so it switches and starts a stopped validator without the flag. `full-sync` and `snapshot restore` warn and go on when no RPC answers. `deploy.sh state-sync` has no such check, and it runs the same `unsafe-reset-all` as [Configure state sync](#configure-state-sync-optional). Run it only before the validator has signed. Submit `create-validator` only after `ctmd status` reports `catching_up` as `false`. - The node home. Commands on this page use `~/.ctmd`, the default home of `ctmd`. The manual install below puts the node home at `/var/lib/ctmd`, owned by the `ctmd` user, so run commands that read it, such as `ctmd comet show-validator`, as that user with `--home /var/lib/ctmd`. ## Manual mainnet install This route installs a mainnet `ctmd` node on Linux by hand. Each step does what `deploy.sh install` and `deploy.sh state-sync` do, so the host ends up with the same layout, service unit settings, and configuration as a `deploy.sh` host, without the script. `deploy.sh` manages the host only after `sudo ./deploy.sh adopt` (see [Run the node as a service](#run-the-node-as-a-service)). Release binaries exist for `linux-amd64`, `linux-arm64`, and `darwin-arm64`; the systemd steps apply to Linux only. You need `curl`, `jq`, `tar`, `sha256sum`, and `systemd`. Run the commands in a root shell (`sudo -i`), as `deploy.sh` does, and keep one working directory for the downloaded files. ### Download and verify the release Release binaries are listed in [metadata.json](https://resources.c8ntinuum.io/metadata.json). Resolve the current version and the tarball and checksum URLs for your platform: ```bash PLATFORM=linux-amd64 # or linux-arm64 curl -fsSL https://resources.c8ntinuum.io/metadata.json -o metadata.json VERSION=$(jq -r '.ctmd.latest_version' metadata.json) TARBALL_URL=$(jq -r --arg p "$PLATFORM" '.ctmd.artifacts[$p].url' metadata.json) CHECKSUM_URL=$(jq -r --arg p "$PLATFORM" '.ctmd.artifacts[$p].sha256_url' metadata.json) echo "$VERSION $TARBALL_URL" ``` Download the tarball and its `.sha256` file, then verify the tarball. The check must print `OK`: ```bash curl -fsSLO "$TARBALL_URL" curl -fsSLO "$CHECKSUM_URL" sha256sum -c "ctmd-${VERSION}-${PLATFORM}.tar.gz.sha256" ``` The tarball unpacks to `ctmd--/`, which holds `bin/ctmd`, a `lib/` directory of bundled shared libraries (RocksDB, the SP1 verifier, and their compression libraries), and the checksum lists `bin-checksums.sha256` and `lib-checksums.sha256`. `ctmd` needs both directories. ```bash tar -xzf "ctmd-${VERSION}-${PLATFORM}.tar.gz" RELEASE_DIR="ctmd-${VERSION}-${PLATFORM}" ``` After unpacking, check the files against the lists; every line must print `OK`: ```bash (cd "$RELEASE_DIR/bin" && sha256sum -c ../bin-checksums.sha256) (cd "$RELEASE_DIR/lib" && sha256sum -c ../lib-checksums.sha256) ``` ### Install the binary and libraries Install into a versioned directory under `/opt`, then point the `/opt/ctmd` and `/usr/local/bin/ctmd` symlinks at it. This is the layout `deploy.sh` uses, so the hand procedure under [Rollback](/node-ops/upgrade-instructions#rollback) works on this host. `deploy.sh upgrade`, including `upgrade --rollback`, refuses it until you run `sudo ./deploy.sh adopt` (see [Run the node as a service](#run-the-node-as-a-service)). ```bash install -d -m 0755 -o root -g root /opt "/opt/ctmd-${VERSION}" "/opt/ctmd-${VERSION}/bin" "/opt/ctmd-${VERSION}/lib" install -m 0755 -o root -g root "$RELEASE_DIR/bin/ctmd" "/opt/ctmd-${VERSION}/bin/ctmd" cp -aP "$RELEASE_DIR/lib/." "/opt/ctmd-${VERSION}/lib/" chown -R root:root "/opt/ctmd-${VERSION}" ln -sfn "/opt/ctmd-${VERSION}" /opt/ctmd ln -sfn /opt/ctmd/bin/ctmd /usr/local/bin/ctmd ``` ### Create the service user and node home ```bash getent group ctmd >/dev/null || groupadd --system ctmd id -u ctmd >/dev/null 2>&1 || \ useradd --system --gid ctmd --home-dir /var/lib/ctmd --shell /usr/sbin/nologin --no-create-home ctmd install -d -o ctmd -g ctmd -m 0750 /var/lib/ctmd install -d -o ctmd -g ctmd -m 0750 /var/lib/ctmd/config /var/lib/ctmd/data install -d -o ctmd -g ctmd -m 0700 /var/lib/ctmd/tmp ``` Check that the binary runs with its bundled libraries. It prints the release version: ```bash (cd /var/lib/ctmd && sudo -u ctmd env HOME=/var/lib/ctmd LD_LIBRARY_PATH=/opt/ctmd/lib /usr/local/bin/ctmd version) ``` ### Initialize the node Initialize the node home as the `ctmd` user with the mainnet chain ID. Like `deploy.sh`, run it from inside the node home, in a subshell so your working directory does not change: ```bash (cd /var/lib/ctmd && sudo -u ctmd env HOME=/var/lib/ctmd LD_LIBRARY_PATH=/opt/ctmd/lib \ /usr/local/bin/ctmd init --home /var/lib/ctmd --chain-id c8ntinuum_8-1) ``` `ctmd init` also creates the validator consensus key at `/var/lib/ctmd/config/priv_validator_key.json`. Back it up securely, and see [KMS and sentry architecture](#kms-and-sentry-architecture) before you rely on the local file signer. ### Install and verify genesis Replace the generated `genesis.json` with the mainnet genesis, then check it against the SHA-256 that `metadata.json` publishes. The check must print `OK`: ```bash curl -fsSL "$(jq -r '.genesis.mainnet.url' metadata.json)" -o /var/lib/ctmd/config/genesis.json EXPECTED=$(curl -fsSL "$(jq -r '.genesis.mainnet.sha256_url' metadata.json)" | awk '{print $1}') echo "$EXPECTED /var/lib/ctmd/config/genesis.json" | sha256sum -c - ``` The mainnet genesis SHA-256 is `ebe6292aa5885b508b1d455c93564683c92e9cc3f80592ee615b1cffbc74a653`. ### Configure peers and chain IDs Build the seed and persistent peer lists from the mainnet entry in [peers.json](https://resources.c8ntinuum.io/peers.json): ```bash curl -fsSL https://resources.c8ntinuum.io/peers.json -o peers.json jq -r '(.networks.mainnet.seeds // []) | map("\(.id)@\(.host):\(.port // 26656)") | join(",")' peers.json jq -r '(.networks.mainnet.persistent_peers // []) | map("\(.id)@\(.host):\(.port // 26656)") | join(",")' peers.json ``` Set these keys in `/var/lib/ctmd/config/config.toml`, using the two lists printed above: ```toml [p2p] seeds = "" persistent_peers = "" max_packet_msg_payload_size = 10240 [mempool] type = "app" ``` Once your validator runs behind sentries, replace `persistent_peers` with your sentries, as described in [KMS and sentry architecture](#kms-and-sentry-architecture). Set the EVM chain ID in `/var/lib/ctmd/config/app.toml` explicitly: ```toml [evm] evm-chain-id = 8 ``` Set the client chain ID in `/var/lib/ctmd/config/client.toml`: ```toml chain-id = "c8ntinuum_8-1" ``` ### Configure state sync (optional) State sync bootstraps the node from a recent snapshot instead of replaying from genesis. `deploy.sh state-sync` takes the trust height and hash from the first trusted RPC in `peers.json`, 2000 blocks below its latest height, and uses both trusted RPCs as `rpc_servers`. It syncs from every `persistent_peers` entry of the network in `peers.json`, with the node ID and port listed there: the same list as in [Configure peers and chain IDs](#configure-peers-and-chain-ids). ```bash RPC_1=$(jq -r '.networks.mainnet.trusted_rpcs[0].url' peers.json) RPC_2=$(jq -r '.networks.mainnet.trusted_rpcs[1].url' peers.json) PEERS=$(jq -r '(.networks.mainnet.persistent_peers // []) | map("\(.id)@\(.host):\(.port // 26656)") | join(",")' peers.json) LATEST_HEIGHT=$(curl -fsSL "$RPC_1/block" | jq -r '.result.block.header.height') TRUST_HEIGHT=$((LATEST_HEIGHT - 2000)) TRUST_HASH=$(curl -fsSL "$RPC_1/block?height=$TRUST_HEIGHT" | jq -r '.result.block_id.hash') echo "rpc_servers = \"$RPC_1,$RPC_2\"" echo "trust_height = $TRUST_HEIGHT" echo "trust_hash = \"$TRUST_HASH\"" echo "persistent_peers = \"$PEERS\"" ``` Put the printed values in `/var/lib/ctmd/config/config.toml`: ```toml [statesync] enable = true rpc_servers = "," trust_height = trust_hash = "" trust_period = "168h0m0s" [p2p] persistent_peers = "" ``` A node home that has never started holds no chain data. If this node has already run, stop it and clear its chain data first, as `deploy.sh state-sync` does: ```bash systemctl stop ctmd.service (cd /var/lib/ctmd && sudo -u ctmd env HOME=/var/lib/ctmd LD_LIBRARY_PATH=/opt/ctmd/lib \ /usr/local/bin/ctmd comet unsafe-reset-all --home /var/lib/ctmd --keep-addr-book) ``` Reset only before the node has signed blocks as a validator: `unsafe-reset-all` also resets the validator signing state (`data/priv_validator_state.json`). On a validator that has already signed, that can make it sign the same height twice, and a double sign is slashed 5% and permanently jails (tombstones) the validator. To replay from genesis instead, skip this section, but not with the release installed above: on mainnet, a later release stops with `BINARY UPDATED BEFORE TRIGGER` below a chain upgrade it knows. The upgrade map in [metadata.json](https://resources.c8ntinuum.io/metadata.json) lists the releases (`.genesis.mainnet.genesis_version` and `.genesis.mainnet.upgrades`): - `0.2.3` runs from block 1 until it halts at height `714700`, the chain upgrade `v0.2.3-to-v0.2.3-rc1`; - `0.2.4` runs from that height on. `sudo ./deploy.sh full-sync` does this, switching the release at each upgrade's height. It runs only on a node that `deploy.sh` manages and that has no chain data yet. On this host, write the unit in [Run the node as a service](#run-the-node-as-a-service) without starting it, then run `sudo ./deploy.sh adopt` before `full-sync`. `full-sync` refuses a unit `deploy.sh` did not write, and a node with chain data. Pass `--allow-validator` when the node's key has voting power, and only when that key runs nowhere else. By hand, install `0.2.3` in the download step (`https://resources.c8ntinuum.io/download/ctmd-0.2.3-.tar.gz` and its `.sha256`). When the node halts at `714700`, switch it to `0.2.4` as in [Upgrade Instructions](/node-ops/upgrade-instructions). A replay takes weeks on mainnet and needs peers that keep every block. ### Set ownership After editing, restore the ownership and modes that `deploy.sh` sets on the node home: ```bash chown -R ctmd:ctmd /var/lib/ctmd chmod 0750 /var/lib/ctmd /var/lib/ctmd/config /var/lib/ctmd/data chmod 0640 /var/lib/ctmd/config/genesis.json chmod 0700 /var/lib/ctmd/tmp ``` ### Run the node as a service Create `/etc/systemd/system/ctmd.service` with the settings of the unit that `deploy.sh` generates, without its header line (see the note below). `LD_LIBRARY_PATH` points at the bundled libraries of the active install, and `TMPDIR` points at the node-owned temp directory that state sync writes to. ```ini [Unit] Description=ctmd node After=network-online.target Wants=network-online.target [Service] User=ctmd Group=ctmd WorkingDirectory=/var/lib/ctmd Environment=HOME=/var/lib/ctmd Environment=LD_LIBRARY_PATH=/opt/ctmd/lib Environment=TMPDIR=/var/lib/ctmd/tmp UMask=0077 StateDirectory=ctmd StateDirectoryMode=0750 ExecStart=/usr/local/bin/ctmd start --home /var/lib/ctmd Restart=on-failure RestartSec=10s KillSignal=SIGINT TimeoutStopSec=600 TimeoutStartSec=300 LimitNOFILE=1000000 LimitNPROC=65535 StandardOutput=journal StandardError=journal SyslogIdentifier=ctmd-node KeyringMode=private Nice=-5 CPUWeight=1000 StartupCPUWeight=1000 IOWeight=1000 StartupIOWeight=1000 IOSchedulingClass=best-effort IOSchedulingPriority=0 TasksMax=infinity CPUQuota= MemoryHigh=infinity MemoryMax=infinity CPUAffinity= NoNewPrivileges=yes PrivateDevices=yes PrivateIPC=yes PrivateUsers=no PrivateNetwork=no ProtectSystem=strict ProtectHome=yes ProtectHostname=yes ProtectKernelTunables=yes ProtectKernelModules=yes ProtectKernelLogs=yes ProtectControlGroups=yes ProtectClock=yes ProtectProc=invisible ProcSubset=all CapabilityBoundingSet= AmbientCapabilities= RestrictSUIDSGID=yes RestrictRealtime=yes RestrictNamespaces=yes LockPersonality=yes MemoryDenyWriteExecute=no SystemCallArchitectures=native RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6 AF_NETLINK [Install] WantedBy=multi-user.target ``` `deploy.sh` treats a unit as its own only when it has the line `# Generated by ctmd deploy.sh - do not edit; re-run deploy.sh install to update.`, which the unit above leaves out. On this host, `deploy.sh upgrade` (including `upgrade --rollback`), `full-sync`, `snapshot create` and `snapshot restore` refuse with `/etc/systemd/system/ctmd.service was not written by deploy.sh: run sudo ./deploy.sh adopt for a node installed by hand, else sudo ./deploy.sh install`. To manage the host with `deploy.sh`, run `sudo ./deploy.sh adopt --dry-run`, then `sudo ./deploy.sh adopt`. It keeps the release, node home, keys and peers, and gives the whole node home to `ctmd:ctmd`. It replaces the unit with `deploy.sh`'s, which has the same settings. Its plan is headed `ctmd adopt plan (finishing an adopt that was cut short)`. On a running node, `adopt` then asks before it restarts it: `-y` restarts it without asking, and `--no-restart` leaves it running. [Linux service unit](/node-ops/full-node-installation#linux-service-unit) explains the fields that matter to an operator. Enable and start the service, then follow the logs: ```bash systemctl daemon-reload systemctl enable ctmd.service systemctl start ctmd.service journalctl -u ctmd.service -f ``` Wait until the node reports `catching_up` as `false`: ```bash curl -s http://127.0.0.1:26657/status | jq '.result.sync_info.catching_up' ``` If you configured state sync, turn it off once the node has caught up, as `deploy.sh` does: stop the service, set `enable = false` under `[statesync]` in `config.toml`, and start the service again. ## Create validator Generate an operator key. `eth_secp256k1` is the default account key algorithm for `ctmd`. ```bash ctmd keys add validator --algo eth_secp256k1 --keyring-backend file ``` Get the node consensus public key from the validator home: ```bash ctmd comet show-validator --home ~/.ctmd ``` On a host set up with the [manual mainnet install](#manual-mainnet-install), run it as the `ctmd` user against `/var/lib/ctmd`: ```bash (cd /var/lib/ctmd && sudo -u ctmd env HOME=/var/lib/ctmd LD_LIBRARY_PATH=/opt/ctmd/lib /usr/local/bin/ctmd comet show-validator --home /var/lib/ctmd) ``` Create `validator.json`. The `pubkey` must be the `/cosmos.crypto.ed25519.PubKey` output from `ctmd comet show-validator`. ```json { "pubkey": { "@type": "/cosmos.crypto.ed25519.PubKey", "key": "" }, "amount": "888888000000000000000000ctm", "moniker": "", "identity": "", "website": "", "security": "", "details": "", "commission-rate": "0.10", "commission-max-rate": "0.20", "commission-max-change-rate": "0.01", "min-self-delegation": "888888000000000000000000" } ``` Submit the transaction: ```bash ctmd tx staking create-validator validator.json \ --from validator \ --keyring-backend file \ --chain-id c8ntinuum_8-1 \ --node \ --fees ctm \ --gas auto \ --gas-adjustment 1.3 ``` `` must be at least the gas limit multiplied by the chain's minimum gas price, currently `222000000000ctm` (222 gwei) per unit of gas, or by the current base fee if it is higher (`ctmd query feemarket base-fee`). To have `ctmd` compute the fee, pass that per-gas price with `--gas-prices`, for example `--gas-prices 222000000000ctm`, instead of `--fees`. See [Gas on c8ntinuum](/developer-essentials/gas) for the fee market parameters. c8ntinuum enforces a validator creation floor of 888,888 CTM (`888888000000000000000000ctm`, `888888 * 10^18`) for both the initial self-delegation amount and `min-self-delegation`. The six genesis validators use this minimum self-delegation and have between `999000000000000000000000ctm` and `999912000000000000000000ctm` self-bonded. For the module-level policy details and EVM staking precompile coverage, see [Minimum Self-Delegation Check](/modules/custom/minimum-self-delegation). ## Commission bounds The six genesis validators use: | Field | Value | |-------|-------| | `commission-rate` | `0.10` | | `commission-max-rate` | `0.20` for three validators, `1.00` for the other three | | `commission-max-change-rate` | `0.01` for the same three validators, `1.00` for the other three | | Chain-wide `min_commission_rate` | `0` | General staking validation still applies: commission values cannot be negative, `rate <= max-rate`, `max-rate <= 1`, `max-change-rate <= max-rate`, and commission can be changed (raised or lowered) at most once per 24 hours, with each increase capped at `max-change-rate`. ## Keys and Ledger - Account/operator keys default to `eth_secp256k1`. - Supported account algorithms are `eth_secp256k1` and `secp256k1`. - Consensus validator keys are CometBFT `ed25519` keys exposed through `ctmd comet show-validator`. - The default coin type for `ctmd` is `60`, with default path `m/44'/60'/0'/0/0`. - Ledger coin type `60` uses the Ethereum app and creates an `eth_secp256k1` public key. - Ledger coin type `118` uses the Cosmos app and creates a Cosmos `secp256k1` public key. - `ctmd keys add --ledger` rejects a custom `--hd-path`; use `--coin-type`, `--account`, and `--index`. ```bash ctmd keys add validator-eth-ledger \ --ledger \ --coin-type 60 \ --algo eth_secp256k1 ctmd keys add validator-cosmos-ledger \ --ledger \ --coin-type 118 \ --algo secp256k1 ``` ## KMS and sentry architecture c8ntinuum does not require a specific KMS or sentry topology; use these as operational recommendations. - Lowest-complexity signing uses the local CometBFT file signer under `~/.ctmd/config/priv_validator_key.json`, but this has the largest key-exposure risk. - Remote signing can be implemented with TMKMS or Horcrux-compatible CometBFT remote signer setups. - For threshold signing or high availability, prefer Horcrux-style threshold signing over running duplicate live validator keys. - Never run the same validator consensus key in two active signers at once. - Keep the validator node private and connect it only to sentry nodes. - Public sentries should expose P2P and any intended public RPC surfaces; the validator should use sentries as persistent peers. - Recommended validator-side settings include `pex = false`, no public RPC, and firewall access limited to sentries and the signer. - Recommended sentry-side settings include `pex = true`, `persistent_peers` including the validator, and `private_peer_ids` including the validator node ID. ## Ports and services | Service | Default | Notes | |---------|---------|-------| | CometBFT P2P | `tcp://0.0.0.0:26656` | Public on sentries | | CometBFT RPC | `tcp://127.0.0.1:26657` | Keep private unless intentionally exposed | | ABCI | `tcp://0.0.0.0:26658` | Internal application transport | | Cosmos REST API | `tcp://localhost:1317` | Disabled by default | | Cosmos gRPC | `localhost:9090` | Enabled by default (`[grpc] enable = true` in `app.toml`), bound to localhost | | gRPC-Web flag default | `0.0.0.0:9900` | Requires gRPC/gRPC-Web enablement | | EVM JSON-RPC HTTP | `127.0.0.1:8545` | Disabled by default | | EVM JSON-RPC WebSocket | `127.0.0.1:8546` | Disabled by default | | EVM JSON-RPC metrics | `127.0.0.1:6065` | Enabled with JSON-RPC and `--metrics` | | Geth metrics address | `127.0.0.1:8100` | Used by telemetry/API metrics plumbing | | CometBFT Prometheus | `:26660` | Disabled by default | gRPC is enabled by default on `localhost:9090`. The REST API, JSON-RPC, and telemetry are disabled by default unless explicitly enabled in config or via start flags. ## Monitoring Monitor at least: - Process health and automatic restart behavior for `ctmd`. - Sync status from `ctmd status`; alert if `catching_up` is true on a validator. - Peer count and sentry connectivity from CometBFT RPC. - Block height progress, block time, disk usage, memory, file descriptors, and database growth. - Validator signing info from `ctmd query slashing signing-info $(ctmd comet show-address)`. - Missed blocks well before the downtime threshold; alert before `4444` missed blocks in the `8888` block window. - JSON-RPC, gRPC, API, and indexer latency only on nodes intentionally serving those surfaces. Validator incentive state is tracked by `x/valrewards`, including epoch reward settings, reward-pool funding, outstanding reward queries, and one-time validator reward claims. See [Validator Rewards](/modules/custom/validator-rewards) for CLI and precompile details. ## Slashing, jailing, and unjail Mainnet (`c8ntinuum_8-1`) slashing params, from `ctmd query slashing params`: | Param | Value | |-------|-------| | `signed_blocks_window` | `8888` | | `min_signed_per_window` | `0.500000000000000000` | | `downtime_jail_duration` | `600s` | | `slash_fraction_downtime` | `0.010000000000000000` | | `slash_fraction_double_sign` | `0.050000000000000000` | A validator is jailed for downtime when it misses more than half of the `8888` block signing window after the slashing warm-up period. Downtime burns `1%` and jails for `600s`. Double-signing burns `5%`, jails, and tombstones the validator; tombstoned validators cannot be unjailed. Unjail only after fixing the signer/node issue, waiting until `jailed_until` has passed, and confirming self-delegation is at least `888888000000000000000000ctm`. ```bash ctmd query slashing signing-info "$(ctmd comet show-address)" ctmd query staking validator ctmd tx slashing unjail \ --from validator \ --keyring-backend file \ --chain-id c8ntinuum_8-1 \ --node \ --fees ctm \ --gas auto \ --gas-adjustment 1.3 ``` ## Upgrade flow and emergency contacts Use [Upgrade Instructions](/node-ops/upgrade-instructions) as the canonical upgrade runbook. For a validator: - **Governance upgrade (x/upgrade).** Every validator switches at the upgrade height. The chain resumes only once validators with more than 2/3 of the voting power run the new release. - On a host that `deploy.sh` manages (after `sudo ./deploy.sh adopt`), arm before the height with `sudo ./deploy.sh upgrade VERSION --allow-validator`. This restarts nothing, and the watcher switches the node at the halt. - On a manual install, switch by hand once the node halts. - Do not start the new release before the height: it stops with `BINARY UPDATED BEFORE TRIGGER`. - **Binary upgrade.** The node restarts and misses blocks, twice if the upgrade goes back. - Upgrade validators after the other nodes, one at a time, with `--allow-validator`. - Check that each validator signs again before the next one: the health check counts the blocks the node adds, not its signatures. - A stopped validator's voting power is not known, so `upgrade` switches and starts it without `--allow-validator`. Keep to one at a time yourself. - **Signing state.** `upgrade` keeps the node home, the key and `data/priv_validator_state.json` as they are. Never start a second instance of a validator while it is down, and never put back an older `priv_validator_state.json`: both risk a double sign. Layer signing-key safety, sentry topology, TMKMS, and double-sign protection checks on top of each release-specific upgrade notice. --- # General Operations URL: https://docs.c8ntinuum.com/node-ops/general-operations Use this page as the day-to-day operator checklist once a node is installed and syncing. ## Routine checks | Check | What to verify | |-------|----------------| | Sync status | Node height is near the network tip. On a `deploy.sh` node, `sudo ./deploy.sh status --check` exits `0` (`OK`) when it is, and `2` (`BEHIND`) while the node catches up or its last block is more than 120 seconds old. | | Peers | The node has enough healthy peers. | | Logs | No repeated consensus, state sync, disk, or RPC errors. | | Disk | Storage has enough free capacity for the selected pruning or archive mode. | | RPC | HTTP and WebSocket services are reachable only where intended. A new `deploy.sh` install has the EVM JSON-RPC off: `sudo ./deploy.sh rpc enable` turns it on, with it and the Comet RPC on `127.0.0.1`. `rpc enable --public` puts both on `0.0.0.0`, and `rpc enable evm --public` only the EVM JSON-RPC, so put a firewall or reverse proxy in front. `rpc` asks before it restarts a running node to apply the change. | | Alerts | Monitoring covers block lag, process restarts, disk, memory, and peer count. Run `sudo ./deploy.sh status --check` from cron or a systemd timer and alert on a non-zero exit code; `status --json` gives the same data as one JSON object. See [Health checks](/node-ops/full-node-installation#health-checks). | ## Useful command shapes c8ntinuum uses `ctmd` as the node binary. Confirm final flags and home paths for your environment. ```bash ctmd status ctmd start --home ~/.ctmd ``` On a node that `deploy.sh` manages, start and stop it with `deploy.sh start` and `deploy.sh stop`, not with a hand-run `ctmd start`. For Linux installs managed by `deploy.sh`, prefer the service and lifecycle helpers: ```bash sudo systemctl status ctmd.service sudo ./deploy.sh logs -n 200 # journalctl -u ctmd.service; -f follows the log sudo ./deploy.sh status sudo ./deploy.sh stop sudo ./deploy.sh start ``` On Linux, `status` needs `sudo` to read the node home. On macOS, run `./deploy.sh status` and `./deploy.sh logs` without `sudo`. ## Monitoring endpoints | Component | Endpoint | Notes | |-----------|----------|-------| | CometBFT Prometheus | `http://127.0.0.1:26660/metrics` | Controlled by `[instrumentation]` in `config.toml`. | | EVM JSON-RPC metrics | `http://127.0.0.1:6065/debug/metrics/prometheus` | Requires `[json-rpc].metrics-address` and starting `ctmd` with `--metrics`. | The `ctmd.service` that `deploy.sh` writes starts `ctmd` without `--metrics`. To add the flag, override `ExecStart` in a drop-in with `sudo systemctl edit ctmd.service`: ```ini [Service] ExecStart= ExecStart=/usr/local/bin/ctmd start --home /var/lib/ctmd --metrics ``` `deploy.sh` keeps drop-ins when it rewrites the unit. Then restart the node with `sudo systemctl restart ctmd.service`. Keep metrics endpoints bound to localhost or a private interface and restrict access with a firewall. Run `node_exporter` alongside `ctmd` for host disk, CPU, memory, and network metrics. ## Related runbooks - [Upgrade Instructions](/node-ops/upgrade-instructions) - [Recovering a Node](/node-ops/node-recovery) - [State Sync](/node-ops/state-sync) - [Deployment Scripts](/reference/deployment-scripts) --- # Upgrade Instructions URL: https://docs.c8ntinuum.com/node-ops/upgrade-instructions `ctmd` release binaries are published through [metadata.json](https://resources.c8ntinuum.io/metadata.json): `.ctmd.latest_version` names the current release, and each platform artifact has a tarball URL and a SHA-256 URL. `deploy.sh install` installs `latest_version`. A network's `.genesis` entry can also carry its upgrade map. Mainnet's is published; testnet has none yet: - `genesis_version`: the release from block 1; - `upgrades`: one `{ "name", "height", "version" }` entry per chain upgrade, in height order, naming the release that runs from its height. An upgrade is added to the map once its proposal has passed and its release is published. `deploy.sh upgrade` without a version takes the map's release for a chain upgrade that is scheduled or that the node has halted at, and `deploy.sh full-sync` uses the map to replay the chain from block 1. Every published release, current or older, is at `https://resources.c8ntinuum.io/download/ctmd---.tar.gz`, next to its `.sha256` file. Upgrade announcements will be published as GitHub releases in the `ctmd` node repository, which is to be announced. Each scheduled network upgrade should publish the upgrade name, target height, binary version, checksums or signatures, and operator deadline before validators replace binaries. ## Current upgrade status | Item | Mainnet (`c8ntinuum_8-1`) | |------|---------------------------| | Upgrade module | Present | | Release from block 1 | `0.2.3` | | Applied chain upgrades | `v0.2.3-to-v0.2.3-rc1` at height `714700`; release `0.2.4` from that height | | Current release | `0.2.4` (`.ctmd.latest_version`) | Testnet (`c8ntinuum_8888-1`) has no published upgrade map yet. To see the plan mainnet has scheduled, with its name and height (`null` means none): ```bash ctmd q upgrade plan --node https://public-comet-rpc.c8ntinuum.io:443 --home "$(mktemp -d)" -o json | jq .plan ``` ## Release-specific runbook | Phase | Operator action | |-------|-----------------| | Announcement | Record the upgrade name, target height, binary version, checksums or signatures, and deadline from the official release notice, published as a GitHub release in the node repository (to be announced). | | Preparation | Back up configs and keys, confirm disk headroom, check service health, and download the release binary. | | Verification | Verify binary checksums or signatures when provided, then confirm `ctmd version` and `ctmd version --long`. | | Execution | On a Linux `deploy.sh` host, arm the release before the height with `sudo ./deploy.sh upgrade VERSION` (see [Governance upgrades](#governance-upgrades)); on macOS, run `./deploy.sh upgrade VERSION` once the node has halted; on a manual install, switch at the halt (see [Governance upgrade on a manual install](#governance-upgrade-on-a-manual-install)). Follow any config migration the release notice gives. Set `halt-height` only for a switch agreed without a vote. On a node under cosmovisor, first take it over with the release it runs before the height, then arm (see [Nodes under cosmovisor](#nodes-under-cosmovisor)). | | Post-upgrade | Confirm height progression, peer count, logs, RPC health, and application version. | | Rollback | Roll back only when the release instructions say it is allowed for the observed failure mode. | ## Upgrading a node `deploy.sh upgrade` moves a node that `deploy.sh` installed to another published release, then waits until it is synced. Only the binary and its libraries change: the node home, `genesis.json`, and `ctmd.service` stay as they are. On Linux, a node installed by hand needs `sudo ./deploy.sh adopt` first; `adopt` does not run on macOS. On Linux, a node that cosmovisor runs through a drop-in is taken over, which also sets that drop-in aside (see [Nodes under cosmovisor](#nodes-under-cosmovisor)). ```bash sudo ./deploy.sh upgrade --dry-run # download and check the release, show the plan; changes nothing sudo ./deploy.sh upgrade # the release for a chain upgrade at hand, else metadata.json's latest_version sudo ./deploy.sh upgrade 0.2.4 # a named release (v0.2.4 works too) sudo ./deploy.sh upgrade --rollback # back to the previous release; run it again to return sudo ./deploy.sh upgrade --cancel # disarm a release armed for a chain upgrade ``` On macOS, run the same commands without `sudo`. Before anything changes, `upgrade` does the following: - downloads the release and checks its SHA-256, plus the `bin-checksums.sha256` and `lib-checksums.sha256` it carries; - runs the release, then runs `start`'s checks with it; - asks the chain whether an upgrade is scheduled. It refuses, with nothing changed, in these cases: - `app.toml` sets `halt-height` or `halt-time`; - a state sync is unfinished; - a full sync is in progress: every form of `upgrade` refuses, `--dry-run`, `--rollback` and `--cancel` included (see [Full Sync](/node-ops/full-sync)); - on Linux, a drop-in makes `ctmd.service` start a program other than `/usr/local/bin/ctmd` or cosmovisor. A wrapper such as `numactl` that runs `/usr/local/bin/ctmd` is fine; - an earlier upgrade did not finish (`status` shows an `Upgrade:` line): settle it with `sudo ./deploy.sh upgrade --rollback` first; - the node is running and has voting power above 0, unless you pass `--allow-validator`. This applies to `--dry-run` too. It then prints a plan and asks before it changes anything. `-y` skips the prompt. ### Binary upgrades When no chain upgrade is scheduled, `upgrade` stops the node, points `/opt/ctmd` at the new release, and starts it. A stopped node is started too. The switch passes when all of these hold within `--start-timeout` minutes (default `10`): - the node's RPC answers; - `/abci_info` reports the new version; - 3 more blocks follow. Otherwise `upgrade` goes back to the old release by itself (exit 2). After a switch that passes, it waits until the node is synced, without a time limit. Ctrl-C ends the wait, not the node. ### Governance upgrades A chain upgrade has to be switched at its height: - A release that knows the upgrade cannot run before its height. It stops with `BINARY UPDATED BEFORE TRIGGER`. - The old release cannot run past the height. It halts with `UPGRADE "" NEEDED at height: `. 1. Once the proposal has passed and the release is published, arm the release on Linux before the height: ```bash sudo ./deploy.sh upgrade VERSION --dry-run # --allow-validator on a validator sudo ./deploy.sh upgrade VERSION # --allow-validator on a validator ``` The dry run must show `Chain:` and `Switch: armed, ...`. A plan that shows `Restart:` would switch now, because there is no plan on chain yet or the release does not know the upgrade. Once the upgrade is in the upgrade map of [metadata.json](https://resources.c8ntinuum.io/metadata.json), a bare `sudo ./deploy.sh upgrade` takes the same release. Arming restarts nothing. It installs a watcher, `ctmd-chain-upgrade.path`, with `ctmd-chain-upgrade.timer` as a backstop that runs every 5 minutes. 2. Check that `sudo ./deploy.sh status` shows `Armed: ... (watcher on)`. Keep the node running: a stopped node never reaches the height. 3. At the height, the watcher stops the node, points `/opt/ctmd` at the armed release, and starts it. The chain resumes only once validators with more than 2/3 of the voting power run the new release. Until then the height stays at the upgrade's height. While the node is still armed at or past the height, or its RPC does not answer, `status --check` reports `DOWN` (exit 1). Once the switched node answers, it reports `BEHIND` (exit 2) until blocks resume. 4. Afterwards, run `sudo ./deploy.sh upgrade VERSION` again, naming the release. It reports the switch, removes the watcher, and waits until the node is synced. It may end with `At the network's latest block, ...` (exit 0) while the chain has not resumed yet. With no trusted RPC answering, it may also say `Synced:` at the upgrade's height. Whichever line it ends with, check with `sudo ./deploy.sh status` that the height moves past the upgrade. Always name the release here: a later bare `upgrade` takes `latest_version`, which may still list the release from before the upgrade. The watcher logs to `sudo journalctl -u ctmd-chain-upgrade -u ctmd-chain-upgrade-check`. - **The watcher did not switch.** If `status` still shows `Armed:` after the node halted, `sudo ./deploy.sh upgrade VERSION` (with `--allow-validator` on a validator) switches it at once. - **The node was never armed.** A node that halted without being armed is switched the same way. There is no way back from either switch. - **Disarming.** `sudo ./deploy.sh upgrade --cancel` disarms before the height. The node then halts at the height unless a release is armed again. - **macOS.** macOS has no watcher: run `./deploy.sh upgrade VERSION` once the node has halted. There is no going back past the height. `upgrade` takes no copy of `data/` before the switch, so make one before the height if you need it. ### Exit codes `deploy.sh upgrade` exits with these codes, which differ from those of `status --check`: | Exit | Meaning | |------|---------| | `0` | Done and synced, or at the latest block of a network that adds none. Also: armed or disarmed, nothing to do, cancelled at the prompt, or `--dry-run` | | `1` | Refused or failed before the switch; nothing was switched, and the links still lead to the release the node ran (under cosmovisor, to the release they led to before) | | `2` | The new release failed its check, and the node went back to the old one (after a takeover from cosmovisor, back under cosmovisor) | | `3` | Going back failed; or a node past a chain upgrade does not run the new release; or the active release did not pass its check after `upgrade` started a stopped node. The node needs a look | | `4` | Switched, but the node stopped syncing | | `130` | Ctrl-C. Before the stop, nothing is switched. Between the stop and the end of the check, on Linux the links go back and the node restarts on the old release (after a takeover from cosmovisor, the drop-in goes back first, and the node restarts under cosmovisor): if `status` then shows an `Upgrade:` line, run `sudo ./deploy.sh upgrade --rollback`. On macOS only the links go back, and a `ctmd` already started from the new release keeps running: run `./deploy.sh stop`, `./deploy.sh start`, then `./deploy.sh upgrade --rollback`. A switch at a chain upgrade's halt never goes back: run the same `upgrade VERSION` again. During the sync wait, the node keeps running the new release | ### Nodes under cosmovisor On Linux, a drop-in such as `/etc/systemd/system/ctmd.service.d/10-cosmovisor.conf` can make `ctmd.service` run `/usr/local/bin/cosmovisor` instead of `/usr/local/bin/ctmd`. cosmovisor then runs its own build from `/var/lib/ctmd/cosmovisor/`, whatever `/opt/ctmd` leads to. `deploy.sh` asks systemd what `ctmd.service` starts, drop-ins included, so it sees this whether the node runs or not. `status` shows it on a `Runs under:` line. `upgrade` takes such a node over. It picks the release as for any upgrade, and downloads nothing when `/opt/ctmd` already leads to it. A running validator needs `--allow-validator`, as usual. The plan names cosmovisor's build on its `From:` line, and adds a `Takeover:` line for the drop-in and a `Keeps:` line for cosmovisor's files. After the prompt, `upgrade`: 1. stops a running node; 2. points `/opt/ctmd` at the release and removes `/opt/ctmd.previous`, because the release `/opt/ctmd` led to never ran the node; 3. sets the drop-in aside as `10-cosmovisor.conf.off`, which systemd does not read, and runs `systemctl daemon-reload`; 4. starts the node and checks it as in a binary upgrade. If the check fails, `upgrade` stops the node, puts the drop-in back, points `/opt/ctmd` back, and removes a release it unpacked. A node that ran starts under cosmovisor again and is checked; a stopped one stays stopped. It exits `2`. It exits `3` when the node does not stop, the drop-in cannot be put back, or the unit does not run cosmovisor again (then settle it with `sudo ./deploy.sh upgrade --rollback`), or when the node does not pass its check under cosmovisor either. If the takeover is cut short, Ctrl-C or a lost session puts the drop-in and `/opt/ctmd` back and restarts a node that ran, under cosmovisor. After `kill -9` or a reboot, the drop-in may still be set aside, and `/opt/ctmd` then leads to the release being checked. Either way, `status` shows `Upgrade: cosmovisor -> ctmd- did not finish`, and `install`, `state-sync`, a new `full-sync`, `snapshot create`, `snapshot restore` and every `upgrade` other than `--rollback` and `--cancel` refuse until you settle it: ```bash sudo ./deploy.sh upgrade --rollback # --allow-validator on a running validator, which it restarts or stops ``` It puts the drop-in and `/opt/ctmd` back, and runs the node under cosmovisor again if it ran before the takeover. A takeover at a chain upgrade's halt keeps no record and never goes back: if it is cut short, run the same `upgrade VERSION` again. Once the check passes, `deploy.sh` runs the node, and later upgrades are plain `upgrade` runs. `upgrade --rollback` does not go back to cosmovisor. To go back, put the drop-in back by hand: ```bash sudo systemctl stop ctmd sudo mv /etc/systemd/system/ctmd.service.d/10-cosmovisor.conf.off /etc/systemd/system/ctmd.service.d/10-cosmovisor.conf sudo systemctl daemon-reload sudo systemctl start ctmd ``` For that way back, `upgrade` keeps cosmovisor's files: `/var/lib/ctmd/cosmovisor/` (its builds, some of which are not published) and the `/var/lib/ctmd/data-backup-*` copies of `data/`, which can be large. Once the node runs well under `deploy.sh`, remove them with `sudo sh -c 'rm -rf /var/lib/ctmd/cosmovisor /var/lib/ctmd/data-backup-*'`. The `sh -c` expands the `*` as root, because only `ctmd` can read the node home. The release must know the last chain upgrade the node went through under cosmovisor, which `data/upgrade-info.json` names; otherwise `upgrade` refuses. A name that the upgrade map does not list and the chain does not report applied only gets a warning. Around a chain upgrade: - **Scheduled, and the release knows it.** Refused: that release cannot run before the height. Take the node over after the height, or now with a release that runs before it, and arm the next release afterwards. - **Scheduled, and the release does not know it.** Taken over. cosmovisor no longer switches the node at that height, so arm a release that knows it before then (see [Governance upgrades](#governance-upgrades)). - **Halted at it.** If cosmovisor has that upgrade's build staged, `upgrade` refuses, and cosmovisor switches the node itself. If cosmovisor already runs that build (it switched there, and the node has not answered since), `upgrade` refuses a running node until its RPC answers, and takes a stopped node over as if there were no halt, once a trusted RPC in `peers.json` reports the network past that height. Otherwise `upgrade` takes the node over onto a release that knows the upgrade (it refuses one that does not), with no way back, as it switches a halted `deploy.sh` node: neither the old release nor cosmovisor's build runs past the height, so the drop-in stays set aside. `upgrade` also refuses, with nothing changed, a drop-in it cannot set aside without losing a setting: - no drop-in sets `ExecStart` (cosmovisor is set in `ctmd.service` itself), or more than one does, or the drop-in is not a plain file in `/etc/systemd/system/ctmd.service.d/` (a symbolic link, say); - the drop-in sets more than `ExecStart=`, `Environment=` and `UnsetEnvironment=`, or gives the node environment variables other than cosmovisor's own (`DAEMON_*`, `UNSAFE_SKIP_BACKUP`, `COSMOVISOR_*`). Move them to a drop-in of their own with `sudo systemctl edit ctmd`; - cosmovisor runs `ctmd` with arguments other than `start --home /var/lib/ctmd`. Move extra flags to `config.toml` or `app.toml`. A flag with no setting there, such as `--metrics`, comes out of the drop-in for the takeover, and goes back afterwards in a drop-in of its own (see [General Operations](/node-ops/general-operations)); - a `10-cosmovisor.conf.off` that is not a copy of the drop-in is already there. It refuses too while the unit files have changed since systemd loaded them: run `sudo systemctl daemon-reload`, restart the node and check it first. `state-sync`, `snapshot create` and `snapshot restore` refuse a node under cosmovisor, because they work with the release `/usr/local/bin/ctmd` leads to: take the node over first. A node that cannot run cannot pass the takeover's check; for it, and for `full-sync`, the error message gives the steps to set the drop-in aside by hand. `install` and `adopt` warn and keep the drop-in, so the node stays under cosmovisor. `start` warns that its checks were of the release `/opt/ctmd` leads to. The chain-upgrade watcher does not switch a node that cosmovisor runs, so `status --check` reports a release armed there as `MISCONFIGURED`: disarm it with `sudo ./deploy.sh upgrade --cancel`. ### A switch agreed without a vote A switch at an agreed height without a vote (`halt-height`) is not an x/upgrade plan, so `upgrade` does not handle it. Switch by hand: 1. Before that height, set `halt-height` and restart the node. 2. Once the node has halted, run `sudo ./deploy.sh stop`. 3. Install the new release with `sudo ./deploy.sh install -y`, once `latest_version` is that release. 4. Set `halt-height` back to `0`, then run `sudo ./deploy.sh start`. ## Rollback ### With deploy.sh ```bash sudo ./deploy.sh upgrade --rollback --dry-run sudo ./deploy.sh upgrade --rollback ``` `upgrade --rollback` switches to the release `/opt/ctmd.previous` leads to. It uses the same checks, health check, automatic return and sync wait as an upgrade, and it starts a stopped node too. Running it again returns to the release you left. It refuses in these cases: - there is no previous release, as after a switch at a chain upgrade, a full sync, or a takeover from cosmovisor: each removes `/opt/ctmd.previous`; - the node went through a chain upgrade the previous release does not know; - a release is armed; - a chain upgrade that the previous release knows is scheduled; - the node has halted at a chain upgrade; - a full sync is in progress; - `ctmd.service` runs cosmovisor, so no release of `deploy.sh`'s ran the node. An upgrade or takeover that did not finish there is still settled (see [Nodes under cosmovisor](#nodes-under-cosmovisor)). On a running validator it needs `--allow-validator`, as `upgrade` does. On macOS, run it without `sudo`, as described under macOS below. If `status` shows an `Upgrade:` line, an upgrade was cut short (for example by `kill -9` or a reboot), and `upgrade --rollback` settles it. `deploy.sh install` always installs `metadata.json`'s `latest_version`. To pin any other published release, newer or older, run `sudo ./deploy.sh upgrade VERSION`. #### macOS `./deploy.sh upgrade --rollback` switches back to the release that the `previous` link under the install prefix leads to (`$HOME/.ctmd/previous` by default; with `--prefix DIR`, `DIR/previous`), the same way an upgrade switches: checks, a prompt, stop, switch, start, a health check that returns to the release you left if it fails, and the sync wait. Run it again to return. ```bash ./deploy.sh upgrade --rollback --dry-run ./deploy.sh upgrade --rollback ``` The active symlink is `current`, and versioned installs live under `releases/`, in the same prefix (`$HOME/.ctmd/current` and `$HOME/.ctmd/releases/` by default). A build run in place with `install --binary --link` is not switched by `upgrade`: `./deploy.sh install` returns it to the published release. ### By hand The procedure below is for hosts without `deploy.sh` that use the layout of the validator [manual mainnet install](/node-ops/validator-installation#manual-mainnet-install). A host where `ctmd` and its libraries were copied straight into `/usr/local` can be moved under `deploy.sh` with `sudo ./deploy.sh adopt`, which keeps its version, node home and peers. #### Preconditions | Precondition | Check | |--------------|-------| | Host uses the `/opt` layout | `readlink /opt/ctmd` resolves to `/opt/ctmd-`, and `readlink /usr/local/bin/ctmd` resolves to `/opt/ctmd/bin/ctmd`. | | A previous versioned install is still on disk | `ls -d /opt/ctmd-*` lists the directory you intend to return to. | | Node has not passed the announced upgrade height | `curl -s http://127.0.0.1:26657/status` reports a local height below the upgrade height in the release notice. If the local RPC is down, take the network height from a peer. | #### Linux procedure List the installed versions and confirm which one is active: ```bash ls -d /opt/ctmd-* readlink /opt/ctmd ``` Stop the service, repoint the active symlink at the previous versioned directory, and start again: ```bash sudo systemctl stop ctmd.service sudo ln -sfn /opt/ctmd- /opt/ctmd sudo systemctl start ctmd.service ``` Verify: ```bash readlink /opt/ctmd curl -s http://127.0.0.1:26657/status | jq '.result.sync_info' sudo journalctl -u ctmd.service -f ``` #### Why only `/opt/ctmd` moves `/opt/ctmd` is the path the install resolves through: `/usr/local/bin/ctmd` is a symlink to `/opt/ctmd/bin/ctmd`. The release binary finds its bundled libraries in its own `lib/` through its RPATH (`$ORIGIN/../lib`), and the unit's `LD_LIBRARY_PATH=/opt/ctmd/lib` is only a fallback for a build without one. Repointing `/opt/ctmd` moves the binary and its libraries together. Do not repoint `/usr/local/bin/ctmd` instead. The unit would then run another release than the one `/opt/ctmd` names, and a build without an RPATH would load another install's libraries from `/opt/ctmd/lib`. The unit file carries no version, so it does not change and no `systemctl daemon-reload` is needed. ### Rollback is a pre-upgrade remedy only Moving the symlink works only while the node has not yet passed the announced upgrade height. Once the network passes that height and the migration runs, the node home is migrated and the previous binary cannot serve it. From that point, these are the ways back, not a symlink change: - restore a copy of the node home made before the height; - re-bootstrap with [State Sync](/node-ops/state-sync) once the network runs past the height; - on an archive, run `sudo ./deploy.sh snapshot restore` from a snapshot made after the height by the new release. `deploy.sh upgrade` takes no copy of `data/` before a switch, so make one before the height if you need it. `upgrade --rollback` refuses across a chain upgrade that the previous release does not know. Do not roll back validator infrastructure without confirming signing-key safety and double-signing risk. ## Governance upgrade on a manual install On a host set up with the [manual mainnet install](/node-ops/validator-installation#manual-mainnet-install), switch by hand once the node halts at the upgrade height. Do not start the new release earlier: while the plan is scheduled, it stops with `BINARY UPDATED BEFORE TRIGGER`. Before the height, download the release and check it. Every check must print `OK`: ```bash V= A=linux-amd64 # or linux-arm64 B=https://resources.c8ntinuum.io/download curl -fLO "$B/ctmd-$V-$A.tar.gz" -O "$B/ctmd-$V-$A.tar.gz.sha256" sha256sum -c "ctmd-$V-$A.tar.gz.sha256" tar -xzf "ctmd-$V-$A.tar.gz" (cd "ctmd-$V-$A/bin" && sha256sum -c ../bin-checksums.sha256) (cd "ctmd-$V-$A/lib" && sha256sum -c ../lib-checksums.sha256) ``` At the height, the old release writes `data/upgrade-info.json` and logs `UPGRADE "" NEEDED at height: `. Follow the log with `sudo journalctl -u ctmd.service -f`. Then go to the directory you downloaded into. In a new shell, set `V` and `A` again, and check that the release is there: ```bash V= A=linux-amd64 # the same values as before the height test -x "ctmd-$V-$A/bin/ctmd" && echo ready # must print ready ``` Then stop the node, put the release in place, and start it: ```bash sudo systemctl stop ctmd.service sudo mv "ctmd-$V-$A" "/opt/ctmd-$V" sudo chown -R root:root "/opt/ctmd-$V" sudo ln -sfn "/opt/ctmd-$V" /opt/ctmd sudo systemctl start ctmd.service ``` The old release cannot run past the height, so there is no going back from this switch. To let `deploy.sh` arm and switch such a host instead, run `sudo ./deploy.sh adopt` on it once, well before the height. ## Operator reminders - Take backups before replacing binaries or changing configs. - Verify binary checksums or signatures when provided. - Watch logs and peer health through the upgrade window. - Coordinate validator-specific steps separately from full-node steps. - Do not use `--unsafe-skip-upgrades` except under explicit emergency coordination. - Security reports go to `security@c8ntinuum.com`; do not open public issues for vulnerabilities. For the official c8ntinuum channels, see [Official Links](/official-links). --- # Recovering a Node URL: https://docs.c8ntinuum.com/node-ops/node-recovery Use recovery procedures when a node is stuck, corrupted, out of disk, badly lagged, or unable to reconnect to peers. ## Recovery paths | Situation | First response | |-----------|----------------| | Node is far behind | Check peers and consider [state sync](/node-ops/state-sync). | | State sync failed | Run `sudo ./deploy.sh state-sync` again: it fetches a fresh trust height and hash, and resets the chain data itself. If it printed `Disabling state sync and restarting normally`, the sync is done: run `sudo ./deploy.sh start` instead. | | Disk is full | Stop the service, increase disk capacity, and restart after confirming data integrity. | | Config is invalid | Restore the last known-good config and validate network-specific values. | | Node halted at a chain upgrade (its log shows `UPGRADE "" NEEDED at height: `) | Run `sudo ./deploy.sh upgrade`. On mainnet, it switches the node to the release that `metadata.json`'s upgrade map names for that upgrade. Testnet has no upgrade map, so there, or to pick the release yourself, run `sudo ./deploy.sh upgrade ` with a release that knows the upgrade. | | A new release misbehaves | Run `sudo ./deploy.sh upgrade --rollback` to go back to the previous release. It refuses across a chain upgrade the previous release does not know; see [Rollback](/node-ops/upgrade-instructions#rollback). | | `status` shows an `Upgrade:` line | An upgrade was cut short. Settle it with `sudo ./deploy.sh upgrade --rollback`, check the node with `sudo ./deploy.sh status --check`, then run the upgrade again. | | Node below a chain upgrade the network has passed | On Linux, start the node on its current release (`sudo ./deploy.sh start`), then run `sudo ./deploy.sh upgrade `. Once the node's own state has the upgrade's plan, `upgrade` arms the release, and the watcher switches the node when it halts at the upgrade height. A node still below the block where the proposal passed is switched at once and stops with `BINARY UPDATED BEFORE TRIGGER` (exit `4`): go back with `sudo ./deploy.sh upgrade --rollback`, let the node run until it halts at the upgrade, then run `sudo ./deploy.sh upgrade ` again. | | Validator risk | Stop and follow validator-specific key and slashing safety procedures. `upgrade` (on a running validator), `full-sync`, `snapshot create` and `snapshot restore` refuse a validator's node unless you pass `--allow-validator`. | ## Reset and retry For a non-validator node that can safely discard local block data, run state sync again. `state-sync` fetches a fresh trust height and hash, resets the local chain data itself, and keeps the managed install and node home: ```bash sudo ./deploy.sh state-sync # macOS: ./deploy.sh stop, then ./deploy.sh state-sync ``` Do not reset the chain data and then start the node to replay from block 1: on mainnet, the current release stops with `BINARY UPDATED BEFORE TRIGGER` below the chain upgrade it knows. A node that needs the full history restores a data snapshot with `sudo ./deploy.sh snapshot restore` (Linux), or, on a node home without chain data, replays from block 1 with `full-sync` (mainnet only so far; see [Full Sync](/node-ops/full-sync)). `full-sync` accepts a `data/` that holds only `priv_validator_state.json` and empty directories, which is what `unsafe-reset-all` leaves. On a host without `deploy.sh`, reset the chain data by hand, then [configure state sync by hand](/node-ops/validator-installation#configure-state-sync-optional) before you start the node. Use the node home for the machine you are repairing: ```bash ctmd comet unsafe-reset-all --home ~/.ctmd ``` Linux service installs usually use `/var/lib/ctmd` instead of `~/.ctmd`: ```bash sudo systemctl stop ctmd.service sudo -u ctmd ctmd comet unsafe-reset-all --home /var/lib/ctmd ``` Do not run reset commands on validator infrastructure without confirming key safety, double-signing risk, and whether state can be safely discarded. `deploy.sh reset` is more destructive than `unsafe-reset-all`. It is `uninstall --purge-data`: it removes the managed install, the whole node home (keys, config, chain data), the service and cache, and on Linux the chain-upgrade watcher and the `ctmd` system user and group. Before it deletes anything, it saves the node identity to `ctmd-identity--.tar.gz` in your home, unless you pass `--no-backup`, and `--dry-run` shows the plan. `uninstall`, without `--purge-data`, removes the install but keeps the node home. Use `reset` only when you intentionally want to discard the managed node home and local key material. ## After recovery After any reset or disk repair, confirm the node is advancing and connected: ```bash curl -s http://127.0.0.1:26657/status | jq '.result.sync_info' sudo ./deploy.sh status --check ``` On Linux, `status` needs `sudo` to read the node home; on macOS, run `./deploy.sh status --check` without `sudo`. `--check` adds a `Health` line and exits `0` (`OK`), `1` (`DOWN`), `2` (`BEHIND`) or `3` (`MISCONFIGURED`); see [Health checks](/node-ops/full-node-installation#health-checks). If the node remains far behind, use [State Sync](/node-ops/state-sync) for non-archive nodes. An archive node restores a data snapshot with `sudo ./deploy.sh snapshot restore` (Linux), or is rebuilt from block 1 on a node home without chain data with `deploy.sh full-sync --archive` (mainnet only so far). For peer connectivity and block propagation issues, check [Full Node Block Delivery](/node-ops/full-node-block-delivery). --- # Full Node Block Delivery URL: https://docs.c8ntinuum.com/node-ops/full-node-block-delivery Block delivery depends on healthy peers, correct network configuration, sufficient hardware, and a node that can keep up with consensus and execution. ## Operator checks | Area | What to monitor | |------|-----------------| | Peer connectivity | Peer count, peer churn, failed dials, and seed availability | | Block lag | Local height compared to trusted public RPC or explorer height. `sudo ./deploy.sh status --check` exits `2` (`BEHIND`) while the node catches up or its last block is more than 120 seconds old, `1` (`DOWN`) when the node is not running or its Comet RPC does not answer, and `3` (`MISCONFIGURED`) for a configuration problem. Alert on any non-zero exit. | | Execution health | Repeated execution, mempool, or application errors in logs | | Resource pressure | CPU, memory, disk I/O, and storage capacity | | Network exposure | P2P, RPC, and WebSocket ports exposed only as intended | At a chain upgrade's height, every node halts. The chain resumes once validators with more than 2/3 of the voting power run the new release. Until then no new blocks arrive and `status --check` exits non-zero: `DOWN` for a node that is not running or whose Comet RPC does not answer, and, on Linux, for an armed node at or past the height that its watcher has not switched yet; `BEHIND` once the switched node answers and its last block is more than 120 seconds old. See [Upgrade Instructions](/node-ops/upgrade-instructions). ## Peer sources `deploy.sh` reads seeds, persistent peers and trusted RPCs from `https://resources.c8ntinuum.io/peers.json`, selected by chain ID. - `install` writes the network's `seeds` and `persistent_peers` to a new node home, or to one that has neither. An existing home keeps its own unless you pass `--reset-peers`. - `state-sync` uses the network's `persistent_peers` as its snapshot peers during the sync, then puts back the node's own peers. - A node that syncs every block from block 1 with `full-sync` (mainnet only so far) needs peers that keep every block (archives). If it finds none, it adds no block, and `full-sync` exits 4 after 10 minutes. Add archive peers to `persistent_peers` in `config.toml`, restart the node (`sudo ./deploy.sh stop && sudo ./deploy.sh start`), and run `full-sync` again. For deployment scripts and peer-list details, see [Deployment Scripts](/reference/deployment-scripts). For workflows, see [Full Node Installation](/node-ops/full-node-installation), [State Sync](/node-ops/state-sync), [Full Sync](/node-ops/full-sync) and [Archive Data Setup](/node-ops/archive-data). P2P normally uses port `26656`. If the node is behind NAT or a load balancer, set `external_address = ":26656"` in the `[p2p]` section. --- # Events and WebSockets URL: https://docs.c8ntinuum.com/node-ops/events-and-websockets c8ntinuum publishes a public EVM WebSocket endpoint at: ```text wss://public-evm-rpc.c8ntinuum.com/websocket ``` The documented mainnet alternate is `wss://public-evm-rpc.c8ntinuum.io/websocket`, and the testnet endpoint is `wss://public-testnet-evm.c8ntinuum.link/websocket`. Applications can use WebSocket connections for subscription-style workflows, while operators running their own infrastructure should plan for connection limits, reconnection behavior, and monitoring. On a node installed with `deploy.sh`, the EVM WebSocket (`127.0.0.1:8546` by default) is off, like the HTTP JSON-RPC, until you turn both on with `deploy.sh rpc enable`. ## Application guidance | Need | Suggested approach | |------|--------------------| | New block notifications | Use WebSocket subscriptions where supported by your client library. | | Contract events | Subscribe for live events and backfill with bounded `eth_getLogs` queries. | | Long historical scans | Prefer an indexer over an unbounded RPC or WebSocket workload. | ## Operator checklist - Define public versus private WebSocket exposure. On a `deploy.sh` node, `sudo ./deploy.sh rpc enable` turns on the EVM JSON-RPC and its WebSocket on `127.0.0.1`. `rpc enable --public` puts them and the Comet RPC on `0.0.0.0`, and `rpc enable evm --public` only the EVM JSON-RPC, so put a firewall or reverse proxy in front. - Monitor active connections and reconnect storms. - Apply the documented connection limits: free WebSockets allow `1` connection per IP, while paid WebSockets allow `30` connections per API key. - Keep historical backfills on HTTP RPC or indexer infrastructure instead of long-lived subscription paths. For standard RPC methods, see [JSON-RPC API](/rpc-reference/json-rpc-api). --- # Archive Data Setup URL: https://docs.c8ntinuum.com/node-ops/archive-data Archive-capable nodes must retain historical application state and indexes. A node bootstrapped with [state sync](/node-ops/state-sync) has nothing before its trust height. An archive node gets its history in one of two ways: - **Restore a full-history data snapshot** (Linux): `sudo ./deploy.sh snapshot restore` swaps in an archive node's whole `data/` up to a height H, writes the archive settings, and syncs from H onward. Use this faster route when a snapshot exists. - **Replay from block 1** (mainnet only so far): `sudo ./deploy.sh full-sync --archive` on a newly installed node writes the archive settings, then replays every block. It runs each stretch of history with the release that ran it, switching releases at each chain upgrade. It takes weeks on mainnet and needs peers that keep every block. See [Full Sync](/node-ops/full-sync). No single `ctmd` release can replay the whole chain. A later release stops with `BINARY UPDATED BEFORE TRIGGER` below an upgrade it knows, and an earlier one halts at the next upgrade's height. ## Building an archive node Start from a new install. On Linux, `install` ends by naming `state-sync`, `snapshot restore` and `full-sync`; an archive uses one of the last two. Neither turns on the EVM JSON-RPC, so run `sudo ./deploy.sh rpc enable` afterwards. ### From a data snapshot (Linux) `sudo ./deploy.sh snapshot restore --dry-run` runs the checks and shows the plan, including the download size and the disk the restore needs, and changes nothing. Run the restore inside tmux, so a lost SSH session does not end it: ```bash sudo ./deploy.sh install --moniker archive-1 tmux new -s restore # reattach later: tmux attach -t restore sudo ./deploy.sh snapshot restore --dry-run sudo ./deploy.sh snapshot restore # mainnet: https://snapshots.c8ntinuum.com/mainnet/latest.json sudo ./deploy.sh rpc enable -y # the EVM JSON-RPC (and the Comet RPC) on 127.0.0.1 ``` On another chain, pass the manifest's URL or path, for example `sudo ./deploy.sh snapshot restore https:////latest.json`. Before the download, `restore` runs its checks and changes nothing. Among them: - the snapshot's chain ID and genesis are the node's; - block H's hash and the app hash after H match at the trusted RPCs in `peers.json`. When none of them can answer for H, `restore` warns and the plan shows `NOT confirmed`; - the node's `ctmd` is the snapshot's `ctmd_version`, unless `--force`. It saves `config.toml` and `app.toml` as `*.bak.`, writes the archive settings, and sets both database backends from the snapshot. It keeps the old data as `data.old-` until the restored node checks out; `--keep-old-data` keeps it after that too. `restore` does not check the history below H: it is taken on the publisher's word, and the manifest is not signed. The publisher's `snapshot create` audits that history before publishing, which catches an incomplete archive but not a dishonest publisher. ### From block 1 On Linux: ```bash sudo ./deploy.sh install --moniker archive-1 # --db-backend rocksdb to choose RocksDB tmux new -s sync # reattach later: tmux attach -t sync sudo ./deploy.sh full-sync --archive --dry-run # downloads and checks every release, shows the plan sudo ./deploy.sh full-sync --archive sudo ./deploy.sh rpc enable -y ``` On macOS, run the same commands without `sudo`, and start the sync as `caffeinate -i ./deploy.sh full-sync --archive`, so the Mac does not sleep. macOS does not include tmux: install it with `brew install tmux`, or use `screen`. `full-sync` runs only on a network whose upgrade map is published: mainnet, not testnet yet. - `--archive` applies only when a full sync begins: what a node prunes while it syncs cannot come back. - Choose the database backend at `install` (`--db-backend goleveldb|rocksdb`; a new node home gets `goleveldb`). Existing data is never converted. - On Linux, Ctrl-C or a lost session ends only the wait; the node keeps syncing and the watcher keeps switching it. Run `sudo ./deploy.sh full-sync` again to follow the sync and finish it. - On macOS, `full-sync` makes the switches itself, and only while it runs. Keep it running in tmux with the Mac awake, and run it again after any stop. See [Full Sync](/node-ops/full-sync). ## Archive configuration Archive settings live in two files in the node home: `app.toml` and `config.toml`. `deploy.sh snapshot restore` and `deploy.sh full-sync --archive` write the archive settings below themselves: `pruning`, `min-retain-blocks`, `discard_abci_responses` and the `kv` tx index. - They first save `config.toml` and `app.toml` as `*.bak.`. - They write only the settings that differ, and the plan lists each one. - `snapshot restore` also sets `[statesync] enable = false`, `halt-height = 0`, `halt-time = 0` and the snapshot's database backends. Set these by hand only on a node you build some other way, and before its first block. Setting `pruning = "nothing"` later does not bring back what the node has already pruned. Set the pruning strategy in `app.toml`: ```toml pruning = "nothing" ``` `"nothing"` keeps all historic state and is the archive strategy. Do not add `pruning-keep-recent` or `pruning-interval` beside it: they apply only when the strategy is `custom`, so here they are inert and imply a retention limit the node never applies. Block retention is a separate control, also in `app.toml`: ```toml min-retain-blocks = 0 ``` `0` prunes no blocks. It governs CometBFT block pruning only, not application state pruning. Retain historical ABCI responses and transaction indexes in `config.toml`: ```toml [storage] discard_abci_responses = false [tx_index] indexer = "kv" ``` Enable EVM historical indexing on archive RPC profiles in `app.toml` once the EVM index covers the history: ```toml [json-rpc] enable-indexer = true ``` With the indexer on, EVM lookups read only from it. An index with gaps answers `null` for transactions the tx index still finds. - `snapshot restore` turns it on only for a snapshot whose manifest records `evm_indexer` as `verified`. Otherwise it leaves the setting as it is. - `full-sync --archive` does not turn it on. - To build the index for the history, stop the node and run `ctmd index-eth-tx backward`. Keep CometBFT state sync disabled in `config.toml`: ```toml [statesync] enable = false ``` `[statesync]` in `config.toml` controls whether this node bootstraps *from* a snapshot; an archive node must never do that. `[state-sync]` in `app.toml` controls the snapshots this node *serves* to other nodes, and is safe to enable here. Do not run [`deploy.sh state-sync`](/node-ops/state-sync) on an archive node: it deletes `data/` and keeps only the blocks after its trust height. `state-sync` refuses a node whose `app.toml` has `pruning = "nothing"` and that serves every block from 1 (or is stopped, so this cannot be checked): `ERROR: this node looks like an archive: ...`. `--force` state-syncs it anyway and deletes the history. A node with any other pruning setting is not detected. To rebuild an archive's data, restore a full-history snapshot instead (Linux only): `sudo ./deploy.sh snapshot restore`. To move an archive to another database backend and keep its history, restore a snapshot made on an archive that already runs that backend, with `--force --keep-old-data`. `--force` passes the refusal of a node that already holds the full history, and also a `ctmd` version mismatch, so check the plan's `ctmd:` line. ## Refusals on an archive node | Command | Refuses | Way past it | |---------|---------|-------------| | `state-sync` | `pruning = "nothing"` on a node that serves every block from 1, or on a stopped node | `--force`, which deletes the history | | `snapshot restore` | A node that already holds the full history (earliest block 1) up to the snapshot's height or past it; a host that makes snapshots (`/var/lib/ctmd-snapshots` holds anything besides its lock files `.lock` and `lock`) | `--force` | | `snapshot restore` | A snapshot of another chain or genesis; a `data/` that is a symbolic link or a mount point; a `db_dir` other than `data` | None | | `full-sync` | A node home that holds chain data. `sudo ./deploy.sh reset`, then `install`, makes one without | None | | `full-sync --archive` | A full sync already in progress: archive settings apply only when it begins | None | | `start` | Chain data in another database format than `db_backend` and `app-db-backend` (after `install --db-backend`) | None: `install --db-backend ` sets the config back | `install`, `state-sync` and `snapshot restore` also refuse while a release is armed for a chain upgrade, while a full sync is in progress, and while an upgrade did not finish (on Linux, also while one runs). `state-sync` and `snapshot restore` also refuse a node that a drop-in puts under cosmovisor (see [Upgrading a node](/node-ops/upgrade-instructions#upgrading-a-node)). ## RPC and debug policy A new install has the EVM JSON-RPC off, and neither `snapshot restore` nor `full-sync --archive` turns it on. Turn it on with `deploy.sh rpc`: ```bash sudo ./deploy.sh rpc enable # EVM JSON-RPC on; EVM and Comet RPC on 127.0.0.1 sudo ./deploy.sh rpc enable --public # both on 0.0.0.0: put a firewall or reverse proxy in front ``` `rpc` leaves the `[json-rpc] api` list as it is. With `--public`, it warns when that list exposes `debug`, `personal`, `admin` or `txpool`. The default public EVM namespace allowlist in `app.toml` is: ```toml [json-rpc] api = "eth,net,web3" ``` A private archive or operations node can add `debug`, `txpool`, and `personal`: ```toml [json-rpc] api = "eth,net,web3,debug,txpool,personal" ``` `debug_traceTransaction` needs only `debug` in the `[json-rpc]` `api` list. The trace type comes from the tracer config in each request, so leave `[evm] tracer` at its default empty value. A non-empty value such as `"json"` attaches that tracer to every EVM transaction, `eth_call`, and gas estimate the node executes (`"json"` logs a per-opcode trace to stderr), and is meant only for local debugging. Check the node's `[json-rpc]` `api` list before relying on `txpool` or `debug` methods. ## Archive sizing and backups The current archive data footprint is roughly `1 TB` and grows about `10 GB/month`. Provision more disk than that: `4 TB` minimum and `8 TB` recommended for an archive node, as listed in [Hardware Requirements](/node-ops/hardware-requirements), so there is spare capacity for growth, compaction, upgrades, logs, and backup staging. Run archive backups monthly. On Linux, `sudo ./deploy.sh snapshot create` (inside tmux) makes a full-history data snapshot of the archive. It stops the node for a moment to copy `data/` as hard links, starts it again, then compresses the copy while the node serves. `deploy.sh upgrade` takes no copy of `data/` before a chain upgrade. If you need one, make it before the height; `snapshot create` is allowed while a release is armed. ## Application alternatives Most applications do not need an archive node. Use: - [RPC Providers](/tooling-and-infrastructure/rpc-providers) for recent chain data. - [Indexers](/tooling-and-infrastructure/indexers) for token, contract, and application-level history. - [Historical Data](/developer-essentials/historical-data) for choosing the right data source. --- # The Network Score URL: https://docs.c8ntinuum.com/networkscore The Network Score is the c8ntinuum ecosystem contribution program. It covers participation across the interoperability protocol, the c8ntinuum hub, cross-chain CTM liquidity, and the upcoming SuperApp. What you did in the past and everything you do from now on all contribute to one number, measured in p8ints. ## Start here One number, two halves, and what the program rewards. One action, from the moment you take it to the moment it lands on your score. What a qualified account needs, and what qualification determines. What your p8ints are for, and the rules that hold whatever the reward turns out to be. Every category that pays, what it measures, and how it behaves. ## Proof of Social The onboarding checklist: follow, join, connect, verify. Verified ownership in selected NFT communities, three tiers, once per collection. One referral system, two legs: the financial share and the p8ints leg. ## Proof of Legacy OG status, Waitlist status and WC26 entries, credited once ever. ## Proof of Presence One check-in per UTC day, and the thing that carries your ladder through week one. Scored per chain on the balance the day's single reading finds. Scored daily on the CTM side of eligible pool positions. One spin a day, drawn on yesterday's base p8ints, verifiable by design. ## Proof of Passage A fixed-action cross-chain game: every scored operation moves exactly 10 CTM. ## The multiplier and the ledger One ladder, driven by holding, applied at earn time and never to a total. Two stages, per category, per UTC day: the event is priced, then the day is settled. Everything runs on UTC days, and balances are read once a day. Pending, confirmed, reversed, rejected. Only confirmed p8ints count. ## Accounts P8ints belong to an account, not a wallet. Linking, unlinking and merging. How the program defends itself in Season 0, and what it costs an honest user. The Network Score measures participation. It carries no monetary value and is not a token or a promise of one. One person, one identity: duplicate accounts, Sybil behavior and abusive activity are ineligible and may be rejected or reversed. --- # Overview URL: https://docs.c8ntinuum.com/networkscore/overview The Network Score is the c8ntinuum ecosystem contribution program. It covers participation across the interoperability protocol, the c8ntinuum hub, cross-chain CTM liquidity, and the upcoming SuperApp. What you did in the past and everything you do from now on all contribute to one number, measured in p8ints. It opens before the app and continues inside it. Season 0 is the pre-app chapter, and when the app arrives the same score carries in: nothing converts, nothing resets, no second number. Season 0 introduces three active participation pillars. Social covers the checklist and community tasks. Presence covers the daily check-in, the wheel, CTM holding and liquidity. Passage covers cross-chain activity through the interoperability product. Previous participation is carried into the score through Legacy. As the SuperApp launches, the same score expands further into trading, staking, token launches and other product activity. ## One number, two halves Your score has two halves and one deduction. | Part | What it holds | | --- | --- | | Legacy Score | The past only: OG status, Waitlist status, WC26 entries. Credited once, ever. | | Contribution Score | Everything earned from activity: social tasks, daily presence, CTM holding, liquidity, cross-chain operations, Partner NFT community drops, referrals, the daily wheel. | **The Network Score** = Legacy Score + Contribution Score, minus p8ints used for rewards. This is the number you see and the number you draw on. **Total Earned** = Legacy Score + Contribution Score, before any reward use. It is never reduced by rewards, and it is what the leaderboard ranks. Putting p8ints toward a reward never costs you a place. ## What it rewards The program follows a progression: identity, social participation, recurring presence, capital commitment, product usage, ecosystem contribution. On-chain and economic actions carry substantially more weight than social ones. Social tasks are how you enter the system. They are not a route to out-earning people who hold, provide liquidity, or run cross-chain operations. ## It never resets Seasons are chapters, not scoreboards. A season unlocks new ways to earn and frames the campaign around them. It never resets your p8ints and never pauses earning. There is no gap in earning between seasons. Holding pays, cross-chain operations pay, and streak days keep counting whether a season is running or not. ## Where to go next - [How it works](/networkscore/how-it-works) walks one action from the moment you take it to the moment it lands on your score. - [Qualification](/networkscore/qualification) covers the three things a qualified account needs, and what qualification does and does not gate. - [Ways to earn](/networkscore/ways-to-earn) lists every category that pays. The Network Score measures participation. It carries no monetary value and is not a token or a promise of one. One person, one identity: duplicate accounts, Sybil behavior and abusive activity are ineligible and may be rejected or reversed. --- # How it works URL: https://docs.c8ntinuum.com/networkscore/how-it-works Every p8int on your score arrives the same way, through the same five steps, whatever you did to earn it. ## 1. You act You follow an account, check in, hold CTM, add liquidity, or run a cross-chain operation. Some actions are one-time. Some are recurring, measured every day you keep them going. Actions are attributed to the UTC day they happened on, never the day we processed them. ## 2. The action is measured One-time actions have a fixed value. Recurring ones are measured: a balance is read once a day, an operation is confirmed on chain. What gets measured is described on each category's page. ## 3. The category prices it Each category turns what you did into base p8ints through its own scoring logic, then applies its current weight, the tuning value that category carries. Percentage bonuses add on top of the base. Flat one-time bonuses are separate line items and never ride the multiplier. ## 4. Your multiplier applies, at earn time Your [commitment multiplier](/networkscore/commitment-multiplier) applies to recurring earnings only, using the multiplier value active on that day. This matters more than it looks. The multiplier is applied to each event as it is earned, and it is never applied to a running total. Your history is priced at the multiplier you had when you earned it, and it is never repriced afterwards, in either direction. One-time p8ints always credit at x1.0: social tasks, legacy, Partner NFT community drops, destination-chain bonuses, referral fixed bonuses, and every wheel payout. ## 5. Caps, rounding, and the ledger Daily category limits apply after the multiplier. Rounding happens once, at the end, half up. The result is written to the ledger as one event that stores everything it was built from: the source value, the weight, the multiplier, the bonuses, the cap rule if one applied, and the final p8ints. Balances only ever change through events, so any line on your score can be replayed and explained. An event starts as pending and becomes confirmed. Only confirmed events count. --- # Qualification URL: https://docs.c8ntinuum.com/networkscore/qualification Qualification determines what you can do with your p8ints, not whether you can earn them. Your first connection, by email, wallet, or social account, creates your c8ntinuum account. **p8ints accrue to the account, not to an individual wallet.** An account becomes **qualified** when it meets all of the following conditions: - Two linked social accounts, including a verified X follow. - At least one completed capital or cross-chain action. - No unresolved fraud flag. **Email does not count as one of the two required social accounts.** One of the two linked socials must always be the verified X account. Accounts that are not yet qualified can still earn and view p8ints. Qualification is required only for specific utilities, rewards, leaderboard eligibility, and other participation mechanics. ## What it changes **Earning is never gated.** An unqualified account earns normally, sees its score, and has its p8ints credited. Nothing is held back and nothing is lost. Qualification is what lets those p8ints do something: use them for a reward, enter a reward event, appear on the public leaderboard, and receive a distribution. If an account later drops a requirement, those four pause until it is restored. Earning continues throughout, and p8ints already earned stay. ## Why it exists One person, one identity. The requirements are what make a fake account expensive: no account reaches a reward without a real social presence and a real position behind it. --- # Rewards URL: https://docs.c8ntinuum.com/networkscore/rewards P8ints are earned to be used. Rewards are what you use them on. ## Multi-directional by design Rewards are not a single destination. The program is built to hold many reward directions, each one announced and priced separately when it ships, each one with its own rules and its own window. More reward directions follow. The first one is announced before it opens. ## The rules that hold, whatever the reward is These apply to every reward direction, present and future. - **Using p8ints is one way.** P8ints are consumed when you commit them. There is no locking, no pledging, no freezing and no release. - **Qualification is required.** The requirements on the [Qualification](/networkscore/qualification) page determine whether p8ints can be used for rewards. Any additional eligibility checks are defined in the rules of each reward. - **Contribution outweighs onboarding.** Reward mechanics are designed so that social and legacy p8ints alone cannot capture meaningful rewards. On-chain contribution has to carry it. - **If we cannot deliver, you get the p8ints back.** If c8ntinuum cancels a reward or fails to deliver it, the p8ints return through a compensating credit event. Otherwise a commitment is permanent. - **Reversed fraud is taken from the balance first.** If a reversal leaves an account negative, further reward use is blocked until it is cleared. ## Where rewards live The Rewards page ships with the SuperApp at the start of Season 1. It holds every live direction and its price at the time. The Network Score measures participation. It carries no monetary value and is not a token or a promise of one. --- # Ways to earn URL: https://docs.c8ntinuum.com/networkscore/ways-to-earn Nine categories pay into The Network Score. Three of them are one-time. The rest repeat on the schedule in the table below. | Category | What it measures | Repeats | Multiplier applies | | --- | --- | --- | --- | | Social tasks | Following, joining, connecting, verifying | Once ever, per task | No | | Legacy | OG status, Waitlist status, WC26 entries | Once ever | No | | Daily check-in | Showing up, week one only | Daily, days 1 to 7 | No | | CTM holding | CTM balance at the daily reading, scored per chain | Daily | Yes | | Liquidity | The CTM side of eligible pool positions | Daily | Yes | | Tunnel Defense | Confirmed cross-chain operations | Daily | Yes | | Partner NFT drops | Verified ownership in selected collections | Once per collection | No | | Referrals | Referred users who qualify and stay active | Ongoing | No | | The daily wheel | A draw on yesterday's base p8ints | Daily, one spin | No | ## Recurring and one-time The distinction runs through the whole system. **Recurring earning** is what a live position or a repeated action generates: holding, liquidity, Tunnel Defense, and later trading, staking and fees. It is the only earning your [commitment multiplier](/networkscore/commitment-multiplier) touches. **One-time p8ints** credit at x1.0, always. Social tasks, legacy, Partner NFT community drops, destination-chain bonuses, referral fixed bonuses and wheel payouts are never multiplied and never weighted beyond their own rules. --- # Social tasks URL: https://docs.c8ntinuum.com/networkscore/social-tasks The checklist is how you enter the system. Each task pays once, ever, and its value is fixed forever: no weight, no multiplier, no season changes it. ## The checklist | Task | How it is verified | | --- | --- | | Follow @c8ntinuum on X | Social connection | | Follow @c8ntinuum_ on X | Social connection | | Follow @c8ntinuumARENA on X | Social connection | | Join Telegram | Social connection | | Join Discord | Social connection | | Connect your email | Account | | Set up wallets | Wallet confirmation | | Complete Matrica verification | Matrica | ## One X connection covers all three quests Connecting X is a single act, not three. Once it is done, the connect step disappears from the @c8ntinuum, @c8ntinuum_ and @c8ntinuumARENA rows at the same time, and only the follow itself is left outstanding on each one. Each follow is still claimed separately and still pays on its own. ## Set up wallets You are sent to app.c8ntinuum.com/wallets, where you confirm the addresses we already hold for you or connect another wallet. The task completes when **both** addresses are confirmed. ## Email If you signed up with email, it is already connected, so the task cannot be performed a second time. Those p8ints are credited automatically when the account is created. Email does not count toward the two linked socials that [qualification](/networkscore/qualification) requires. One of those two must be the X follow. ## What social tasks do not do - They carry no weight and no multiplier, so they always credit at face value. - They do not keep a streak alive and they do not advance the commitment ladder. - They do not feed the daily wheel. - They do not count toward the five real actions that lift the multiplier cap. --- # Partner NFT community drops URL: https://docs.c8ntinuum.com/networkscore/partner-nft-drops Partner NFT community drops recognize membership in selected external NFT communities. They are a cross-community welcome, not a reward for economic participation, and they are priced as one. Claims open later in the season, with Phase 2, and close with Season 0. ## Three tiers Collections sit in one of three tiers, primarily based on market profile and floor price, with selected manual overrides: | Tier | Profile | | --- | --- | | Tier 1 | Blue chip | | Tier 2 | Established mid-market | | Tier 3 | Entry level and newer chains | The per-collection allowlist is versioned and frozen before claims open. It carries a small number of manual tier overrides, which are decisions rather than outputs of the floor rule. ## Claim rules - You claim once per collection. - A claim needs **24 hours of continuous custody** of the token. - Each token pays **once globally**. A token that has already paid cannot pay again, on any account. --- # Referrals URL: https://docs.c8ntinuum.com/networkscore/referrals ## The financial leg, already live The financial referral leg is already live and continues unchanged, providing a 15% referral share under the live referral program. ## The p8ints leg Referral p8ints open later in the season, with Phase 2. Nothing referral-related pays p8ints before then. Direct referrals only, with no second-level share. Three things pay: your referral becoming qualified, your referral staying active across six distinct days inside a rolling 30, and an ongoing share of the base p8ints they confirm. The ongoing share is the only recurring referral reward, and it is computed on your referral's **base p8ints**, before weight, bonuses, the multiplier and the wheel. It covers what they earn from holding, liquidity and Tunnel Defense, and later from trading, staking and fees. Nothing else generates a share: legacy, social tasks, the check-in, Partner NFT drops, wheel payouts and referral p8ints themselves are all excluded. ## Limits and controls A daily ceiling applies to the ongoing share, so a large network cannot out-earn capital and daily play. You cannot refer yourself, and the same wallet cluster cannot either. Only confirmed p8ints generate a share, and if the originating event is reversed, the referral credit is reversed with it. --- # Legacy URL: https://docs.c8ntinuum.com/networkscore/legacy ## The three sources | Source | What it recognizes | How it is verified | | --- | --- | --- | | OG status | The OG role | Connecting Discord. There is no other way to claim it. | | Waitlist status | Being on the Waitlist | The frozen Waitlist snapshot | | WC26 entries | Valid World Cup 2026 prediction entries | The frozen entries snapshot, per valid entry, up to a ceiling | The three stack, up to a maximum legacy allocation per account. ## How it behaves - **Once ever.** Legacy never repeats and never multiplies. It always credits at x1.0, with no weight. - **It is a head start, not a leaderboard.** Maximum legacy for a single account is smaller than one day of maximum Season 0 earning, so it cannot decide a ranking on its own. - **Qualification is not required to claim.** Legacy credits to your balance whether or not your account is qualified. Qualification is still required before those p8ints can be used for a reward, ranked on the leaderboard, or entered into a reward event. - **A claim over the ceiling is trimmed, not rejected.** If a claim would exceed what is left of your allowance, it credits what fits. The cap limits an allocation. It never voids one. ## The claim window Legacy is claimable from the first day of Season 0 until the season ends, at 23:59:59 UTC on the last day. After that the claim function shuts. Only **unclaimed** entitlements expire. Legacy p8ints already confirmed on your ledger are permanent, and are only ever removed by a fraud reversal. --- # Daily check-in URL: https://docs.c8ntinuum.com/networkscore/daily-check-in The daily check-in runs for the first seven days of Season 0 and then stops. One check-in per UTC day, worth the same fixed amount every time: no weight, no multiplier, no streak bonus on the p8ints themselves. ## Its real job The check-in is not there for its p8ints. It is there to carry your [commitment multiplier](/networkscore/commitment-multiplier) through week one. The ladder runs on capital: any UTC day you hold a position that scores is a qualifying day. CTM holding is live from day 1, so it can carry your ladder from the open. The check-in also stands in during days 1 to 7, so an account that has not bought yet keeps its ladder intact. Miss a day in week one and the ladder resets, exactly as a missed holding day would later. ## The window closes After day 7 the button disappears and does not come back. The design is sequential, not overlapping: presence carries the ladder, then capital does. ## The last check-in feeds the first spin The [daily wheel](/networkscore/daily-wheel) opens later in the season and draws on the previous day's base p8ints. The check-in reaches the wheel once only, as part of the basis for the first spin. Earlier check-in days produce a basis that nothing spins on, because the wheel is not open yet. ## What the check-in does not do - It does not count toward the five real actions that lift the multiplier cap. - It is not multiplied, ever, at any streak length. --- # CTM holding URL: https://docs.c8ntinuum.com/networkscore/holding Holding pays every day you hold. It is the quietest way to earn: once the position exists, it needs nothing from you. ## Scored per chain, not on one balance This is the rule that surprises people. Holding is **not** scored on your combined balance across everything you own. Wallets are summed **within a chain**. The curve then runs on each chain separately, and the results are added. Holding on Ethereum earns its own p8ints, holding on Solana earns its own, and they stack. ## The minimum A chain needs at least **5 CTM** to score. Below that it earns nothing on that chain, and it does not keep your streak alive either. The same floor gates scoring and the [commitment ladder](/networkscore/commitment-multiplier). ## One read a day Holding and liquidity are read once a day. A single job runs every 24 hours and reads every registered wallet, and the balance it finds is the balance your day is scored on. The same reading decides your [streak](/networkscore/commitment-multiplier): a position in place at or above its minimum keeps the day alive. One read, one balance, one accrual per category per day. A position opened after the day's read scores from the next day, not the current one. ## Token quantity, not dollars Season 0 scores holding in CTM token quantity. No price feed is involved. A price move during the season does not change anyone's p8ints, in either direction. ## One token, one category In the day's reading, each CTM token is scored in exactly one category: held in a wallet it scores as holding, pooled it scores as [liquidity](/networkscore/liquidity), staked it scores as staking. This includes LP tokens and liquid staking derivatives. Nothing is counted twice. --- # Liquidity URL: https://docs.c8ntinuum.com/networkscore/liquidity Liquidity opens later in the season, with Phase 2. --- # The daily wheel URL: https://docs.c8ntinuum.com/networkscore/daily-wheel The wheel is the one random layer in the program. It pays a bonus calculated on what you earned the day before. The wheel opens later in the season, with Phase 2. ## How a spin is earned One spin per qualified day. A day qualifies if the **previous** day carried at least one qualifying on-chain action. The first spin runs on the day before it: your holding base p8ints plus that day's check-in. That is the only time a check-in ever reaches the wheel. ## Same day only A spin is offered on the day it is earned and it is gone at the end of it. - The window is **24 hours from reveal**, not from midnight, so a late reveal moves the window forward rather than voiding your spin. - At most one spin is live on an account at any moment. - Nothing banks. There is no backlog, no claim order, and no queue of expired spins to work through. If you do not take the spin inside its window, it lapses. That is the whole rule. ## The basis A spin pays a multiple of your **basis**: the sum of base p8ints from the previous UTC day's confirmed events, in the categories that feed the wheel. That is check-in, holding, liquidity and Tunnel Defense. The basis is taken straight from the ledger, before bonuses and before your multiplier. Excluded in full: legacy, social p8ints, Partner NFT community drops, weight effects, percentage bonuses, the commitment multiplier, boosters, destination-chain bonuses, referral p8ints, every fixed and milestone bonus, manual adjustments, and previous wheel rewards. One consequence worth knowing: the basis reads your **uncapped** base, so a day where your category cap bound still spins on the full amount you generated. ## The outcomes Outcomes range from nothing at all to several times your basis, with a ceiling on what a single spin can pay. - A result that pays nothing means exactly that: **no bonus**. Base p8ints are never removed, ever. The wheel cannot cost you anything. - A payout credits at x1.0. It is excluded from multipliers and boosters, and it never touches your commitment ladder. - The wheel does not count toward the five real actions. ## Verifiable randomness The wheel is designed around a commit-reveal mechanism: a seed commitment is published before play and the corresponding seed is revealed after the relevant spins close. This structure is designed to make the draw independently verifiable by allowing the revealed seed to be checked against the commitment published beforehand. ## After the season The wheel does not stop when a season ends. The program is always on, so activity on the last day of a season earns a spin on the next day. --- # Tunnel Defense URL: https://docs.c8ntinuum.com/networkscore/tunnel-defense Tunnel Defense is the cross-chain mini-app, CTM routes only. It is a fixed-action game, not a volume game: every scored operation is the same size and earns the same base p8ints, whatever the route and whatever you hold. Tunnel Defense opens later in the season, with Phase 2. ## What counts An eligible operation moves **exactly 10 CTM** between **two different supported networks**, and leaves the value on the destination chain for at least **24 hours**. Only the first 12 operations a day score. Same-chain transfers never score. Moving your own funds across chains is eligible. That is exactly what the product is for. Reaching a supported destination chain for the first time pays a one-time bonus, once per destination, per account. ## What one operation unlocks Beyond its p8ints, a single confirmed operation satisfies the capital or cross-chain action that [qualification](/networkscore/qualification) requires, and counts as one of the five **real actions** that lift your [multiplier](/networkscore/commitment-multiplier) cap. --- # Commitment multiplier URL: https://docs.c8ntinuum.com/networkscore/commitment-multiplier The commitment multiplier is the streak mechanic. It rewards staying, not doing. ## One ladder It starts at x1.0 and rises by **+0.1x for every completed block of 6 unbroken qualifying days**, to a ceiling of x2.0. | Day | Multiplier | | --- | --- | | 1 to 5 | x1.0 | | 6 to 11 | x1.1 | | 12 to 17 | x1.2 | | 18 to 23 | x1.3 | | 24 to 29 | x1.4 | | 30 to 35 | x1.5 | | 36 to 41 | x1.6 | | 42 to 47 | x1.7 | | 48 to 53 | x1.8 | | 54 to 59 | x1.9 | | 60 and after | x2.0 | Days count continuously across seasons and across any gap between them. There is no pause and no reset at a season boundary. This is the full ladder. The highest multiplier any account can reach arrives inside Season 1. ## What a qualifying day is Any UTC day your account holds an eligible capital position that actually **scores**: CTM holding from 5 CTM, liquidity, or staking once it is scored. It is passive. Leaving a position alone keeps the ladder alive. You do not need a daily transaction, and there is nothing to click. The streak is worked out when the day is settled. A position below the minimum does not qualify. The 5 CTM floor gates the streak exactly as it gates scoring. CTM holding is live from day 1, so a scoring position can carry the ladder from the open. During days 1 to 7 of Season 0 the daily check-in also stands in for a qualifying day, which keeps the ladder reachable for an account that has not bought yet. Streak qualification uses CTM token **quantity**, fixed when the position starts. A price move alone can never break your streak. ## There is no grace day One missed qualifying UTC day resets the ladder to x1.0, and counting restarts from your next qualifying day. The single exception is our own failure. An action that happened on the correct UTC day is not treated as missed because c8ntinuum settled it late or had an incident. ## What the multiplier applies to **Recurring earning only**: holding, liquidity, Tunnel Defense, and later trading, staking and fees. One-time p8ints always credit at x1.0 and are never multiplied: social tasks, legacy, Partner NFT community drops, destination-chain bonuses, referral fixed bonuses, every "first X" milestone, and every wheel payout. ## Applied at earn time, never to a total Each event is priced with the multiplier active on the day it was earned, and it stays priced that way forever. The multiplier is never applied to a running total. If it were, every movement in your multiplier would reprice your entire history, in both directions. Instead the multiplier lives inside the p8ints as they are credited. --- # How p8ints are calculated URL: https://docs.c8ntinuum.com/networkscore/how-points-are-calculated Scoring runs in two stages. The first prices a single event. The second settles a whole day for one category. ## Stage 1: the event For each event: **measured activity → category scoring logic → category weight → percentage bonuses** - The base comes from the category's scoring logic, computed on what was measured: the balance at the day's reading, a confirmed operation, or a fixed task value. - The **weight** is the category's current tuning value. Weights are bounded, and every change to one is announced and versioned, never silent. A change applies forward and never reprices p8ints already credited. - **Percentage bonuses add on the base.** They never multiply each other. Where two duration bonuses could apply, the highest qualifying one applies and they do not stack. **Flat bonuses are separate.** A destination-chain bonus, a first-trade bonus, a completion bonus: each is its own line item, credited at x1.0, and sitting **outside** its category's daily cap. ## Stage 2: the day Once a UTC day is closed, each category settles: - The multiplier applies to the multiplier-eligible portion of the day, using the multiplier value as of that day's end. - Multiplier-ineligible recurring p8ints are added at face value. - The category's daily cap applies **after** the multiplier, to the final figure. - Rounding happens once, half up, at the end. Internal math carries more precision than the number you see, and it is only resolved once. Flat and one-time bonuses are added separately, at x1.0, outside that cap. ## When a cap binds Later events in the day truncate first, in chronological order. A capped credit records that the cap applied and credits whatever capacity was left. It never reverts. An honest action can never cost you p8ints that were already earned. ## Everything is stored Each event stores the values it was built from: the source value and its unit, the chain, the transaction reference, the base p8ints, the weight, the bonuses, the multiplier, the cap rule if one applied, and the final p8ints. Two consequences: - Any row can be replayed and explained, so a support question has a factual answer rather than an opinion. - Nothing is recalculated later. A reversal uses the exact figure that was originally credited. ## Where the chain and the database each stand Chain-confirmed balances and events are authoritative for The Network Score and Total Earned. The database holds pending calculations, ownership and custody evidence, and the supporting daily readings. When the two disagree, because of a dropped signature, a reverted transaction or a reorg, the chain wins and the database is reconciled to it. --- # Days and readings URL: https://docs.c8ntinuum.com/networkscore/days-and-readings ## Everything is UTC A day runs 00:00:00 to 23:59:59 UTC, and an action belongs to the UTC day it happened on, never the day it was processed. Worth internalizing once if you are in a distant timezone: your streak, your check-in and your wheel window all run on UTC, not on your local midnight. ## One read a day Holding and liquidity are read once a day. A single job runs every 24 hours and reads every registered wallet, and the balance it finds is the balance your day is scored on. The same reading decides your [streak](/networkscore/commitment-multiplier): a position in place at or above its minimum keeps the day alive. One read, one balance, one accrual per category per day. A position opened after the day's read scores from the next day, not the current one. ## One token, one category In any reading, each CTM token is scored in exactly one place: held in a wallet it is holding, pooled it is liquidity, staked it is staking once staking is scored. LP tokens and liquid staking derivatives included. Nothing is counted twice. ## Tokens, not price Season 0 is denominated in CTM token quantity, with no price feed, so a price move during the season changes nobody's p8ints. Season 1 activities that involve other assets, meaning trading, shared fees and staking, are denominated in USD, because they have to be. Each day is settled once it has closed, using your multiplier as it stood at the end of that day. --- # Event states URL: https://docs.c8ntinuum.com/networkscore/event-states Every p8int movement is one immutable event. Balances change only through events, and an event is never edited after it is written. ## The states | State | What it means | | --- | --- | | Pending | The event exists and is visible, but it does not count yet | | Confirmed | The event counts, everywhere | | Reversed | The event was confirmed and has been undone | | Rejected | The event never became confirmed | ## The confirmed-only rule Only **confirmed** events count toward The Network Score, Total Earned, the leaderboard and reward eligibility. Pending p8ints are visible in your account but unusable. That visibility is deliberate: you can see what is being processed rather than wondering whether it registered. On-chain p8ints with a suspicious pattern stay pending until review completes. Most things confirm without anyone looking at them. ## Reversals A reversal is the only thing that reduces Total Earned. Caught fraud loses its p8ints **and** its rank. Three rules govern how a reversal propagates: - It uses the exact figure originally credited. Nothing is recalculated at reversal time. - It breaks the [streak](/networkscore/commitment-multiplier) forward from that day only. Other days are never repriced. - Downstream effects are corrected with compensating events, never by editing history. The ledger is append-only. A reversal takes the current balance first. If the balance does not cover it, the account goes negative and further reward use is blocked until it clears. ## Why it is built this way An append-only ledger with a stored calculation on every row means any figure on your score can be replayed from what it was built from. Support answers become factual: this is the balance the day's read found, this was the weight, this was the multiplier that day, this is why the number is what it is. --- # Accounts and wallets URL: https://docs.c8ntinuum.com/networkscore/accounts-and-wallets ## The account Any first connection creates an account: email, wallet or social. All p8ints accrue **per account**. Everything else in the system, qualification, the streak, caps, the leaderboard, is computed on the account, not on any individual wallet. ## Wallets - One wallet address belongs to **exactly one account**, first come first served. - Linking happens through a real wallet connection that you control. - Value-based formulas compute on the **summed** value across all wallets linked to your account. [Holding](/networkscore/holding) is the one exception, and an important one: it is scored **per chain**. Wallets are still summed, but only within the same chain, and each chain's result is calculated separately and then added. ## Unlinking A wallet can be unlinked. Accrual from it stops going forward, and the history it generated stays exactly as it was. Nothing is retroactively removed. ## Merging duplicate accounts If you accidentally end up with two accounts, they are merged rather than edited: - P8ints from both are combined. - The better streak survives. - Once-ever tasks and lifetime caps are re-checked at merge, so nothing is paid twice. History is never rewritten to do it. The merge is itself an event on the ledger. The same tooling resolves duplicates found by anti-abuse review. See [one person, one identity](/networkscore/one-person-one-identity). --- # One person, one identity URL: https://docs.c8ntinuum.com/networkscore/one-person-one-identity One person, one identity. Sybil, duplicate-account and abusive activity is ineligible and may be rejected or reversed. ## Season 0 anti-abuse approach Every [qualified](/networkscore/qualification) account carries two linked social accounts including a verified X follow, at least one completed capital or cross-chain action, and no unresolved fraud flag. Season 0 combines qualification requirements, wallet analysis, activity-specific controls and manual review of flagged patterns. Additional anti-abuse capabilities may be introduced as the program evolves. Qualification helps ensure that reward participation is backed by both social identity and real ecosystem activity. ## Per-category controls Each category has the specific defense its own shape needs. | Pattern | What defeats it | | --- | --- | | Flash liquidity, in for the snapshot and out | The daily balance reading | | Circular transfers and bounced funds | The 24-hour destination hold | | Same-chain loops dressed as cross-chain | Only transfers between two different networks score | | Wash and self-trading, related-wallet loops | Effective volume rules, Season 1 | | Self-referrals and referral farms | Cluster checks, and the share pays only on confirmed base p8ints | | Claiming an NFT you just borrowed | 24 hours of continuous custody, and each token pays once globally | | Duplicate accounts | Wallet clustering feeding scoring directly, plus merge tooling | ## Review, and what it costs an honest user Suspicious on-chain p8ints stay [pending](/networkscore/event-states) until a review completes. Pending p8ints are visible but unusable, and they confirm when the review clears them. Most activity never goes near a review. Where one happens, the outcome is an event on the ledger like anything else, with a reason recorded. ## If fraud is confirmed P8ints are reversed. A reversal removes them from The Network Score **and** from Total Earned, so a caught account loses the rank as well as the balance, and the streak breaks forward from the reversed day.