Skip to content

Latest commit

 

History

History

lesson-02-fork

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

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