Getting Started
Prerequisites
Wallet — MetaMask or any EVM-compatible wallet, configured for Nexus (See Developer Environment Setup)
Testnet tokens — NEX on testnet for gas (faucet)
Toolchain — Hardhat or Foundry
Quickstart: Deploy a contract on NexusEVM
Step 1 — Create a Foundry project
mkdir nexus-token && cd nexus-token
forge initStep 2 — Write the contract
Replace src/Counter.sol with src/NexusToken.sol:
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.24;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
contract NexusToken is ERC20 {
constructor(uint256 initialSupply) ERC20("NexusToken", "NTK") {
_mint(msg.sender, initialSupply);
}
}Install OpenZeppelin:
Step 3 — Deploy to Nexus Testnet
This deploys 1,000,000 NTK to your address.
Step 4 — Read on-chain state
Check your balance:
Transfer tokens:
Step 5 — Deploy to mainnet
When ready, switch to mainnet:
Finality is single-slot — the deployment is confirmed as soon as the block is committed.
Quickstart: Interact with the chain using cast
No project setup needed. These commands work immediately with Foundry installed.
Get the latest block number:
Read any contract's state:
Check an address balance:
Send a transaction:
All transactions confirm with single-slot finality. No need to wait for additional block confirmations.
Last updated

