get_deployed_contract

Documentation for eth_defi.abi.get_deployed_contract function.

get_deployed_contract(web3, fname, address, register_for_tracing=True)[source]

Get a Contract proxy objec for a contract deployed at a specific address.

See Web3.py documentation on Contract instances.

Parameters
  • web3 (web3.main.Web3) – Web3 instance

  • fname (str) – JSON filename from supported contract lists.

  • address (Union[eth_typing.evm.HexAddress, str]) – Ethereum address of the deployed contract

  • register_for_tracing – Add the contract to the deployment registry if not already there.

Returns

web3.contract.Contract proxy

Return type

web3.contract.contract.Contract