8000 GitHub - nbc111/nbcnode
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

nbc111/nbcnode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NBCoin (NBC)

NBCoin is a Substrate-based, EVM-compatible blockchain that enables smart contract functionality and cross-chain interoperability.

Key Features

  • EVM Compatibility: Full Ethereum smart contract support
  • Chain ID: 20250714
  • Token Symbol: NBC
  • Total Supply: 210 billion NBC
  • Decimal Places: 18
  • Cross-chain Capability: Built on Substrate framework

Building and Running

Prerequisites

  • Rust and Cargo (Latest stable version)
  • Protocol Buffers Compiler
    # macOS
    brew install protobuf
    
    # Ubuntu/Debian
    sudo apt install protobuf-compiler

Building from Source

  1. Clone the repository:

    git clone <your-repo-url>
    cd nbcoin
  2. Build the node:

    # Build release version
    cargo build --release

Running a Node

Development Node

# Run a development node
./target/release/moonbeam --dev --sealing 6000

# Run with detailed logging
./target/release/moonbeam --dev --sealing 6000 -lruntime=debug

Local Testnet

# Run a local testnet node
./target/release/moonbeam --chain local

Connecting to the Node

Using MetaMask

  1. Open MetaMask
  2. Add a new network with these parameters:
    • Network Name: NBCoin
    • RPC URL: http://127.0.0.1:9944
    • Chain ID: 20250714
    • Currency Symbol: NBC
    • Block Explorer URL: (leave blank for local node)

Using Web3.js

const Web3 = require('web3');
const web3 = new Web3('http://127.0.0.1:9944');

// Example: Check connection
web3.eth.net.getId()
  .then(console.log);

Smart Contract Development

NBCoin supports all standard Ethereum smart contracts. You can use:

  • Solidity (All versions supported by Ethereum)
  • Hardhat
  • Truffle
  • Remix IDE

Example deployment using Hardhat:

npx hardhat run scripts/deploy.js --network nbcoin

Network Parameters

  • Block Time: 6 seconds
  • Gas Limit: 15,000,000
  • Minimum Gas Price: 1 Gwei
  • Token Decimals: 18

Features

  • EVM Compatibility
  • Precompiled Contracts Support
  • Cross-chain Messaging
  • On-chain Governance
  • Staking and Validation
  • Asset Management

License

[License details here]

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0