auradefi 0.1.2
PyPI GitHub

Call

auradefi.sources.evm.multicall · source

One member of an aggregate3 batch.

allow_failure defaults to True, which is the reason this module exists: a reverting call comes back as a declared CallResult failure instead of voiding its four neighbours. Set it False only when a revert should void the whole batch, which the node reports as a JSON-RPC error for the entire eth_call.

Fields

targetstr
databytes
allow_failurebooldefault True

__init__

__init__(self, target: str, data: bytes, allow_failure: bool = True) -> None

Parameters

targetrequired, str

none

datarequired, bytes

none

allow_failureoptional, bool, default True

none