Skip to content

@liquality.types.ChainProvider

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

Interface: ChainProvider

@liquality/types.ChainProvider

Table of contents

Methods

Methods

getBalance

getBalance(addresses, assets): Promise<BigNumber[]>

Parameters

Name Type
addresses AddressType[]
assets Asset[]

Returns

Promise<BigNumber[]>

Defined in

types/lib/Chain.ts:15


getBlockByHash

getBlockByHash(blockHash, includeTx?): Promise<Block<any, any>>

Parameters

Name Type
blockHash string
includeTx? boolean

Returns

Promise<Block<any, any>>

Defined in

types/lib/Chain.ts:7


getBlockByNumber

getBlockByNumber(blockNumber, includeTx?): Promise<Block<any, any>>

Parameters

Name Type
blockNumber number
includeTx? boolean

Returns

Promise<Block<any, any>>

Defined in

types/lib/Chain.ts:9


getBlockHeight

getBlockHeight(): Promise<number>

Returns

Promise<number>

Defined in

types/lib/Chain.ts:11


getTransactionByHash

getTransactionByHash(txHash): Promise<Transaction<any>>

Parameters

Name Type
txHash string

Returns

Promise<Transaction<any>>

Defined in

types/lib/Chain.ts:13

Clone this wiki locally