Local chain
Single-validator in-memory Neo3 network with auto-mining on every submitted transaction.
Nanvil is a Neo3 dev node inspired by Foundry Anvil. Spin up chains, prefund accounts, fork mainnet, cheat time — with a built-in block explorer.
Latest release
Loading…
Pre-built nanvil, ncast, and nsmith for Linux, macOS, and Windows.
curl -sSL … | tar xz
./nanvil start
Prefer to build yourself? Build from source · Changelog
Local chain, dev RPC cheats, mainnet forks, and a built-in explorer — powered by nanvil.
Single-validator in-memory Neo3 network with auto-mining on every submitted transaction.
Configurable dev mnemonic and GAS balances — keys printed on startup and queryable via RPC.
Web UI on port 8546 with live WebSocket feed, contract deploys, and embedded documentation.
Lazy StateService fork at any block height — deploy and test against real remote state locally.
nanvil_mine, time travel, snapshots, mempool control, and evm_* aliases.
Included in every release
Three CLIs modeled after Foundry — run a node, talk to RPC, compile contracts.
Send GAS, invoke contracts, deploy NEF files, and inspect chain state against
any Neo JSON-RPC endpoint — usually your local nanvil node.
watch$ export NCAST_RPC=http://127.0.0.1:8545
$ ncast balance NRBs4Wc8vuFJY5sN7WvJNRzVduAeXQ8TQg
10000 GAS
$ ncast send --wif <wif> <to> 1
$ ncast call gas decimals
8
$ ncast deploy --wif <wif> \
--nef contract.nef \
--manifest contract.manifest.json
Compile smart contracts in Go, Python, C#, or Java to
.nef + .manifest.json — then deploy with
ncast.
$ nsmith compile --lang go ./main.go --out contract
language: go
nef: contract.nef
$ nsmith install --lang python
$ nsmith compile --lang python ./contract.py
$ nsmith init MyToken --lang go
$ nsmith doctor --all
After ./nanvil start, these endpoints are available locally.
| Service | URL |
|---|---|
| JSON-RPC | http://127.0.0.1:8545 |
| Block explorer | http://127.0.0.1:8546 |
| Documentation (in explorer) | http://127.0.0.1:8546/docs/ |