KyberSwap Docs
Search
K

Multicall

Abstract class that enables the chaining of multiple calls into a single encoded message.
GitHub File: multicall.ts

Properties

Public

Property
Type
Modifier
Description
INTERFACE
Interface
static
The Application Binary Interface for the related Elastic contracts.

Constructor

Private constructor that cannot be constructed.

Methods

encodeMulticall() - public static

Returns a single encoded string representing all the calldata that was passed in. This enables multiple calls to be executed in a single transaction.

Parameters

Params
Type
Description
calldatas
calldatas: string | string[]
The calldata to be packaged into a single encoded string.

Returns

Type
Description
string
The encoded string that chains all the provided calldata.