Skip to content

integrations-Polygon/truffle_suit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Watchers

Forks

Releases

No releases published

Packages

No packages published