Skip to content

chainwhisper/verify-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Verify your contract on Binance Smart Chain

  1. Install the plugin with npm
npm install -D truffle-plugin-verify

Make sure the version is >=v 0.5.4

  1. Add the plugin to your truffle-config.js file
module.exports = {
  /* ... rest of truffle-config */

  plugins: [
    'truffle-plugin-verify'
  ]
}
  1. Generate an API Key on your BSCscan account

If you don't have one yet, just go to this page to sign up.

Add your BSCscan API key to your truffle config

module.exports = {
  /* ... rest of truffle-config */

  api_keys: {
    bscscan: 'MY_API_KEY'
  }
}
  1. Deploy your contract
truffle compile
truffle migrate --network testnet
  1. Verify your contract
truffle run verify BEP20Token@{deployed-address} --network testnet

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published