Private
#privateReadonly
deployReadonly
fallbackThe Fallback method, if any.
Readonly
fragmentsAll the Contract ABI members (i.e. methods, events, errors, etc).
Readonly
receiveIf receiving ether is supported.
Decodes the result %%data%% (e.g. from an eth_call
) for the
specified error (see [[getError]] for valid values for
%%key%%).
Most developers should prefer the [[parseCallResult]] method instead,
which will automatically detect a CALL_EXCEPTION
and throw the
corresponding error.
Decodes the %%data%% from a transaction tx.data
for
the function specified (see [[getFunction]] for valid values
for %%fragment%%).
Most developers should prefer the [[parseTransaction]] method instead, which will automatically detect the fragment.
Encodes the transaction revert data for a call result that reverted from the the Contract with the sepcified %%error%% (see [[getError]] for valid values for %%fragment%%) with the %%values%%.
This is generally not used by most developers, unless trying to mock a result from a Contract.
Optional
values: readonly any[]Optional
values: undefinedOptional
values: undefinedOptional
values: undefinedOptional
values: undefinedOptional
values: undefinedOptional
values: undefinedOptional
values: undefinedOptional
values: undefinedOptional
values: undefinedOptional
values: undefinedOptional
values: undefinedOptional
values: undefinedOptional
values: undefinedOptional
values: undefinedOptional
values: undefinedOptional
values: undefinedEncodes the result data (e.g. from an eth_call
) for the
specified function (see [[getFunction]] for valid values
for %%fragment%%) with %%values%%.
This is generally not used by most developers, unless trying to mock a result from a Contract.
Optional
values: readonly any[]Get the [[ErrorFragment]] for %%key%%, which may be an error selector, error name or error signature that belongs to the ABI.
If %%values%% is provided, it will use the Typed API to handle ambiguous cases where multiple errors match by name.
If the %%key%% and %%values%% do not refine to a single error in the ABI, this will throw.
Optional
values: any[]Parses a receipt log, finding the matching event and extracts the parameter values along with other useful event details.
If the matching event cannot be found, returns null.
Parses a transaction, finding the matching function and extracts the parameter values along with other useful function details.
If the matching function cannot be found, return null.
Optional
value?: BigNumberish
The Contract constructor.