Build and Run Custom Genesis EVM
Learn how to build and run your blockchain with custom genesis file.
Build Your Precompile-EVM
There's a simple build script in the Precompile-EVM we can utilize to build. First, make sure you are in the root folder of you Precompile-EVM:
cd $GOPATH/src/github.com/ava-labs/precompile-evmThen run the command to initiate the build script:
./scripts/build.shCreate your blockchain configuration
You can run your Precompile-EVM by using the Avalanche CLI.
First, create the configuration for your blockchain:
avalanche blockchain create myblockchain \
--custom \
--vm $VM_PATH \
--genesis "./.devcontainer/genesis-example.json" \
--force \
--sovereign=false \
--evm-token "TOK" \
--warp \
--icmLaunch L1 with you customized EVM
avalanche blockchain deploy myblockchain --localAfter around 1 minute, the blockchain should have been created, and additional output will appear in the terminal. You'll also see the RPC URL of your blockchain in the terminal.
Loading...
Is this guide helpful?

