Skip to main content

ContractEncoder.decode() method

Decode encoded call data for a given function

Signature:

decode(fn: keyof TContract["functions"], encodedArgs: string): utils.Result;

Parameters

ParameterTypeDescription
fnkeyof TContract["functions"]the function to decode
encodedArgsstringthe encoded arguments

Returns:

utils.Result