Contracts

Examples

Note

These examples are crafted as a Jupyter notebook. You can download the original notebook file here.

Also note that inside Jupyter notebooks, await can be used freely outside of asyncio.run().

addresses

Reference

async ctc.evm.async_get_contract_creation_block(contract_address, *, provider=None, use_db=True, **search_kwargs)

get block number of when contract was created

  • behavior is undefined for functions that have undergone SELF-DESTRUCT(S)

  • caches result in local database