Build Your Precompile
Learn how to build and run your precompile as a custom EVM blockchain.
Build Your Custom VM
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:
Then run the command to initiate the build script:
If you do not see any error, the build was successful.
Run a Local Network with Your Custom VM
You can run you customized Precompile-EVM by using the Avalanche CLI.
First, create the configuration for your blockchain with custom VM.
Make sure you replace the binary name with the actual binary name of your Precompile-EVM, and genesis file with the actual path to your genesis file.
Next, launch the Subnet with your custom VM:
After around 1 minute the blockchain should have been created and some more output should appear in the terminal. You'll also see the RPC URL of your blockchain in the terminal.