Create and Deploy a Token
(CRC Standards · Web3.js · Chain ID 2255)
This guide explains how to set up Web3.js, create wallets, query balances, and transfer CMX and CRC-20 tokens on the ClubMOS Blockchain.
ClubMOS is EVM-compatible, so standard Ethereum Web3 workflows apply with minimal changes.
Step 1: Set Up Web3.js
Install Web3.js
npm install web3Initialize Web3 Connection
const Web3 = require("web3");
// Connect to ClubMOS RPC
const web3 = new Web3("https://mainnet3.mosscan.com");✅ Ensure your application is connected to Chain ID 2255 when signing transactions.
Step 2: Create a New Wallet Address
const account = web3.eth.accounts.create();
console.log("Address:", account.address);
console.log("Private Key:", account.privateKey);Important Security Notes
Use this method for backend wallet generation only
Never expose private keys in frontend code
Store keys securely (HSM, vaults, encrypted storage)
Step 3: Get Transaction History (by Address)
Web3.js does not provide native transaction history queries. You must either:
Scan blocks manually, or
Use MOS Scan API (recommended for production)
Basic Block Scanning Example
⚠️ For real applications, always use MOS Scan indexing APIs instead of block scanning.
Step 4: Get Native Coin Balance (MOS)
Returns the MOS native coin balance of the address.
Step 5: Get CRC-20 Token Balance
Minimal CRC-20 ABI
Fetch Token Balance
Step 6: Transfer Native Coin (CMX)
Step 7: Transfer CRC-20 Tokens
CRC-20 Transfer ABI
Send Tokens
Best Practices for ClubMOS Developers
Always confirm Chain ID = 2255
Use MOS Scan APIs for indexing & analytics
Never expose private keys client-side
Test on internal environments before production
Verify contracts on mosscan.com
Summary
Using Web3.js, developers can easily:
Generate wallets
Query balances
Transfer CMX and CRC tokens
Build DeFi, NFT, and enterprise applications
ClubMOS combines EVM familiarity, low fees, and developer-first tooling for real-world blockchain adoption.
Last updated