Skip to content

Latest commit

 

History

History
47 lines (31 loc) · 1.08 KB

README.md

File metadata and controls

47 lines (31 loc) · 1.08 KB

Lesson 2: Fork

This lesson shows how to fork a live RPC and read from a contract.

FORK

To fork an RPC node

boa.env.fork(RPC_URL)

LOAD CONTRACT FROM BLOCK EXPLORER

Read a contract from a block explorer

boa.from_etherscan(
    address: Any,
    name=None,
    uri='https://api.etherscan.io/api',
    api_key=None,
)

INSTALL PYENV (optional)

To install pyenv for managing environment variables

pip install python-dotenv

HELPFUL LINKS

Llama Lend One Way Lending Factory

Misc