Smart Contract Deployment Permissioning
Last updated
Last updated
This guide goes into detail on how to whitelist addresses that can deploy smart contracts. Sometimes network operators wish to prevent users from deploying smart contracts that are unrelated to the network's purpose. Network operators can:
Whitelist addresses for Smart Contract deployment
Remove addresses from the whitelist for Smart Contract deployment
You can find all cli commands related to the deployment whitelist in the CLI Commands page.
whitelist show
: Displays whitelist information
whitelist deployment --add
: Adds a new address to the contract deployment whitelist
whitelist deployment --remove
: Removes a new address from the contract deployment whitelist
Show all addresses in the deployment whitelist
There are 2 ways to find addresses from the deployment whitelist.
Looking at the genesis.json
where whitelists are saved
Executing whitelist show
, which prints information for all whitelists supported by Polygon Edge
Add an address to the deployment whitelist
To add a new address to the deployment whitelist execute whitelist deployment --add [ADDRESS]
CLI command. There is no limit to the number of addresses present in the whitelist. Only addresses that exist in the contract deployment whitelist can deploy contracts. If the whitelist is empty, any address can do the deployment
Remove an address from the deployment whitelist
To remove an address from the deployment whitelist execute whitelist deployment --remove [ADDRESS]
CLI command. Only addresses that exist in the contract deployment whitelist can deploy contracts. If the whitelist is empty, any address can do the deployment