This repository contains all the necessary setup for polygon chain to deploy the smart contract using truffle.
- Clone this repository
git clone https://github.com/integrations-Polygon/truffle_suit.git
- Navigate to
truffle_suit
folder
cd truffle_suit
- Install dependencies
npm install
- Create
.env
file
cp .example.env .env
- Configure environment variables in
.env
MNEMONICS = "your mnemonics"
TESTNET_RPC= "testnet rpc url"
MAINNET_RPC= "mainnet rpc url"
POLYGON_API= "polygonscan api key"
- Compile the smart contract
truffle migrate
- Deploy the smart contract
truffle deploy --network testnet
- To Verify the smart contract
truffle run verify 'contractname' --network testnet
- To Verify specific contract address
truffle run verify 'contractname' contract-address --network testnet
you can customize gas fee on migrations files