Getting Started
Set up your development environment, run a local chain, and deploy your first ink! contract. The node build is the slow part — expect a full `cargo build --release` to take a while on a laptop.
Prerequisites
Latest stableRuntime and contract developmentLatestink! smart contract toolchain24.x LTSSDK and toolingLatestLocal development blockchainQuick Start
1. Clone and build the node
Clone the BelizeChain repository and build the node binary. This compiles the Substrate runtime with all 20 custom pallets.
git clone https://github.com/BelizeChain/belizechain.git cd belizechain && cargo build --release
2. Start local development chain
Launch a single-node development chain with temporary storage. The node will produce blocks on demand when transactions are submitted.
./target/release/belizechain-node --dev --tmp
3. Install contract tooling
Install cargo-contract to compile, deploy, and interact with ink! smart contracts on BelizeChain.
cargo install cargo-contract --force
4. Create your first contract
Scaffold a new ink! contract, build it, and deploy to your local node. The hello-belizechain example shows the basic pattern.
cargo contract new hello_belize cd hello_belize && cargo contract build --release
5. Install the SDK
The GEM SDK is not published to npm — install it from the GEM repository, alongside its Polkadot.js peer dependencies.
git clone https://github.com/BelizeChain/gem.git npm install ./gem/sdk @polkadot/api @polkadot/api-contract
Development Endpoints
Default ports for local development.
ws://localhost:9944http://localhost:9944