Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TRUFFLE SUIT SETUP FOR POLYGON

This repository contains all the necessary setup for polygon chain to deploy the smart contract using truffle.

GETTING STARTED

  • 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

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages