Multicall

Abstract class that enables the chaining of multiple calls into a single encoded message.

GitHub File: multicall.ts

Properties

Public

PropertyTypeModifierDescription

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

ParamsTypeDescription

calldatas

calldatas: string | string[]

The calldata to be packaged into a single encoded string.

Returns

TypeDescription

string

The encoded string that chains all the provided calldata.

Last updated