Brownie can easily be configured to work with many blockchains. This lesson explores setting up Fantom and Polygon.
- Fantom ($FTM) is a directed acyclic graph smart contract platform
- 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>
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>
The network object contains some basic commands
> network.is_connected()
> network.show_active()