Skip to content

@liquality.evm.EvmMulticallProvider

Krasimir Raykov edited this page Mar 30, 2022 · 3 revisions

Class: EvmMulticallProvider

@liquality/evm.EvmMulticallProvider

Table of contents

Constructors

Methods

Constructors

constructor

new EvmMulticallProvider(chainProvider, chainId?)

Parameters

Name Type Default value
chainProvider BaseProvider undefined
chainId number 1

Defined in

evm/lib/chain/EvmMulticallProvider.ts:37

Methods

getEthBalance

getEthBalance(address): Promise<BigNumber>

Parameters

Name Type
address string

Returns

Promise<BigNumber>

Defined in

evm/lib/chain/EvmMulticallProvider.ts:46


getMultipleBalances

getMultipleBalances(address, assets): Promise<BigNumber[]>

Parameters

Name Type
address AddressType
assets Asset[]

Returns

Promise<BigNumber[]>

Defined in

evm/lib/chain/EvmMulticallProvider.ts:50


multicall

multicall<T>(calls): Promise<T>

Type parameters

Name Type
T extends any[] = any[]

Parameters

Name Type
calls readonly Call[]

Returns

Promise<T>

Defined in

evm/lib/chain/EvmMulticallProvider.ts:74

Clone this wiki locally