aea.contracts.ethereum

The base ethereum contract.

Contract Objects

class Contract(BaseContract)

Definition of an ethereum contract.

get_instance

 | @classmethod
 | get_instance(cls, ledger_api: LedgerApi, contract_address: Optional[str] = None) -> Any

Get the instance.

Arguments:

  • ledger_api: the ledger api we are using.
  • contract_address: the contract address.

Returns:

the contract instance