Skip to main content

ContractEncoder class

Encodes and decodes Contract functions

Signature:

export declare class ContractEncoder<TContract extends BaseContract>

Constructors

ConstructorModifiersDescription
(constructor)(contractWrapper)Constructs a new instance of the ContractEncoder class

Methods

MethodModifiersDescription
decode(fn, encodedArgs)Decode encoded call data for a given function
encode(fn, args)Encodes the given contract function with argument