Additional Setup Instructions for Connecting Brownie with Polygon
- Polygon ($MATIC) previously known as the Matic Network, is a platform for Ethereum scaling and infrastructure development.
Show all currently configured Brownie networks
> brownie networks list
> brownie networks add <environment> <id> host=<host> chainid=<chainid> explorer=<explorer> name=<name>
> brownie networks delete <id>
Show full properties of all configured networks
> brownie networks list true
Configuration stored by default in your home directory at .brownie/network-config.yaml
> brownie console --network <id>
Set environment variables so your environment works smoothly. Register free API keys at Alchemy and Polygonscan
> export WEB3_ALCHEMY_PROJECT_ID=<api_key>
> export POLYGONSCAN_TOKEN=<token>
The network object contains some basic commands
> network.is_connected()
> network.show_active()
On all chains, the Curve registry and other useful contracts can be loaded from the permanent Address Provider
> address_provider = Contract('0x0000000022d53366457f9d5e68ec105046fc4383')