This method is asynchronous.
The log to be decoded.
This method is asynchronous.
Decodes the return value of a call. Return values can be ambiguous, so this function returns an array of ReturndataDecodings.
Note that return values are decoded in strict mode, so none of the decodings should contain errors; if a decoding would contain an error, instead it is simply excluded from the list of possible decodings.
If there are multiple possible decodings, they will always be listed in the following order:
You can check the kind and field to distinguish between these.
If no possible decodings are found, the returned array of decodings will be empty.
Note that different decodings may use different decoding modes.
Decoding creation calls with this method is not supported. If you simply
want to decode a revert message from an arbitrary call that you know
failed, you may also want to see the decodeRevert function in
@truffle/codec
.
The abi entry for the function call whose return value is being decoded.
The data to be decoded, as a hex string (beginning with "0x").
Additional options, such as the block the call occurred in. See ReturnOptions for more information.
This method is asynchronous.
The transaction to be decoded.
This method is asynchronous.
Used to determine what events to fetch and how to decode them; see the documentation on the EventOptions type for more.
This method is asynchronous.
Constructs a contract instance decoder for a given instance of this contract.
The address of the contract instance decode. If left out, it will be autodetected. If an invalid address is provided, this method will throw an exception.
Generated using TypeDoc
The ContractDecoder class. Decodes return values, and spawns the ContractInstanceDecoder class. Also, decodes transactions logs. See below for a method listing.