Skip to content
This repository was archived by the owner on Aug 30, 2022. It is now read-only.

Latest commit

 

History

History
27 lines (16 loc) · 719 Bytes

File metadata and controls

27 lines (16 loc) · 719 Bytes

Home > @thirdweb-dev/sdk > ContractEncoder > encode

ContractEncoder.encode() method

Encodes the given contract function with argument

Signature:

encode(fn: keyof TContract["functions"], args: Parameters<TContract["functions"][typeof fn]>): string;

Parameters

Parameter Type Description
fn keyof TContract["functions"]
args Parameters<TContract["functions"][typeof fn]>

Returns:

string

the encoded data