Deploying on NexusEVM
NexusEVM is fully EVM-compatible.
Deployment with Hardhat
npx hardhat run scripts/deploy.ts --network nexusMainnetVerify deployment:
cast code 0xYOUR_CONTRACT_ADDRESS --rpc-url https://mainnet.rpc.nexus.xyzDeployment with Foundry
See Developer Environment Setup for configuration.
forge create src/MyContract.sol:MyContract \
--rpc-url nexus_mainnet \
--chain-id 3946 \
--private-key $PRIVATE_KEYWith constructor arguments:
forge create src/MyContract.sol:MyContract \
--rpc-url nexus_mainnet \
--chain-id 3946 \
--private-key $PRIVATE_KEY \
--constructor-args "arg1" 42Gas
Gas metering follows Ethereum's model. All opcodes cost the same gas as on Ethereum. Gas limits are enforced — out-of-gas transactions revert normally. Gas is paid in NEX.
Differences from Ethereum
Block time
1 second (vs. Ethereum's 12s). block.timestamp increments faster — time-based logic works, but blocks-as-time proxies behave differently.
Finality
Single-slot. No reorgs, no uncle blocks. One confirmation is sufficient. block.number is always authoritative.
Transaction ordering
CometBFT default mempool (FIFO). No gas auction, no MEV competition.
Native currency
NEX. msg.value transfers NEX.
ENS
Not available on NexusEVM.
Composability with the Exchange
When the Exchange launches, NexusEVM contracts will be able to call into NexusCore — placing orders, reading market data, and managing margin atomically within a single EVM transaction.
Last updated

