Solidity & Vyper – Brownie


Brownie is a Python-based development and testing framework for EVM compiled smart contracts.


Basic Usage

Supported Chains

Brownie handles all of its network management via the CLI, meaning that you’ll have to specify networks individually as commands.

For example, this is how you would add Goerli.

brownie networks add Ethereum goerli host=<PORTAL-ID> chainId=5

Note, the chainId is not related to the Pocket Relay Chain ID, but rather, the value returned by eth_chainId.

From here, you’d be able to connect your brownie console to this network by running:

brownie --network goerli