Skip to main content
The recommended starting point is the nexus-contract-template — a pre-configured Cargo workspace with the NEXUS SDK vendored locally, a cargo xtask build pipeline, and a full test harness already set up.

Step 1: Clone the Template

The template includes:
  • Pre-vendored nexus-sdk (contract + testing modes)
  • cargo xtask build pipeline that patches WASM memory exports
  • Example contracts: counter, NEP-20 token, AMM
  • TestEnv test harness for unit testing without a live node

Step 2: Write Your Contract

Edit src/lib.rs:

Step 3: Build

Step 4: Test Locally

Step 5: Deploy to NEXUS

Step 6: Call It

Next Steps