Truffle
Truffle is a world class development environment, testing framework and asset pipeline for blockchains using the Ethereum Virtual Machine (EVM), aiming to make life as a developer easier.
This guide describes how to configure Truffle when you want to deploy your smart contracts on the IoTeX Network.
Let's assume that you already created a Truffle project and you want now use the truffle migrate
command to deploy it on IoTeX.
We will use https://babel-api.testnet.iotex.io
for IoTeX Testnet.
Check out the RPC Endpoint section for more info.
1. Install the hdwallet-provider package
2. Configure Truffle
You can configure Truffle accounts by using a mnemonic phrase or private keys.
2.1. Using Mnemonic phrase
Modify truffle-config.js
as below:
and deploy with:
2.2. Using private keys
Modify truffle-config.js
as below:
Deploy
Finally, deploy your contracts with:
Last updated