Skip to content

@liquality.terra.TerraChainProvider

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

Class: TerraChainProvider

@liquality/terra.TerraChainProvider

Hierarchy

  • Chain<LCDClient>

    TerraChainProvider

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new TerraChainProvider(network)

Parameters

Name Type
network TerraNetwork

Overrides

Chain.constructor

Defined in

terra/lib/chain/TerraChainProvider.ts:10

Properties

feeProvider

Protected feeProvider: Fee

Inherited from

Chain.feeProvider

Defined in

client/dist/lib/Chain.d.ts:11


network

Protected network: Network

Inherited from

Chain.network

Defined in

client/dist/lib/Chain.d.ts:12


provider

Protected provider: LCDClient

Inherited from

Chain.provider

Defined in

client/dist/lib/Chain.d.ts:13

Methods

getBalance

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

Parameters

Name Type
addresses AddressType[]
assets Asset[]

Returns

Promise<BigNumber[]>

Overrides

Chain.getBalance

Defined in

terra/lib/chain/TerraChainProvider.ts:44


getBlockByHash

getBlockByHash(_blockHash, _includeTx?): Promise<Block<BlockInfo, TerraTxInfo>>

Parameters

Name Type
_blockHash string
_includeTx? boolean

Returns

Promise<Block<BlockInfo, TerraTxInfo>>

Overrides

Chain.getBlockByHash

Defined in

terra/lib/chain/TerraChainProvider.ts:83


getBlockByNumber

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

Parameters

Name Type
blockNumber? number
includeTx? boolean

Returns

Promise<Block<BlockInfo, TerraTxInfo>>

Overrides

Chain.getBlockByNumber

Defined in

terra/lib/chain/TerraChainProvider.ts:15


getBlockHeight

getBlockHeight(): Promise<number>

Returns

Promise<number>

Overrides

Chain.getBlockHeight

Defined in

terra/lib/chain/TerraChainProvider.ts:28


getFeeProvider

getFeeProvider(): Promise<Fee>

Gets the fee provider

Returns

Promise<Fee>

Inherited from

Chain.getFeeProvider

Defined in

client/dist/lib/Chain.d.ts:38


getFees

getFees(): Promise<FeeDetails>

Returns

Promise<FeeDetails>

The fee details - FeeDetails

Overrides

Chain.getFees

Defined in

terra/lib/chain/TerraChainProvider.ts:74


getNetwork

getNetwork(): Network

Gets the connected network

Returns

Network

Inherited from

Chain.getNetwork

Defined in

client/dist/lib/Chain.d.ts:22


getProvider

getProvider(): LCDClient

Gets the chain specific provider

Returns

LCDClient

Inherited from

Chain.getProvider

Defined in

client/dist/lib/Chain.d.ts:26


getTransactionByHash

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

Parameters

Name Type
txHash string

Returns

Promise<Transaction<TerraTxInfo>>

Overrides

Chain.getTransactionByHash

Defined in

terra/lib/chain/TerraChainProvider.ts:33


sendRawTransaction

sendRawTransaction(_rawTransaction): Promise<string>

Parameters

Name Type
_rawTransaction string

Returns

Promise<string>

the transaction hash

Overrides

Chain.sendRawTransaction

Defined in

terra/lib/chain/TerraChainProvider.ts:87


sendRpcRequest

sendRpcRequest(method, params): Promise<any>

Parameters

Name Type
method keyof APIRequester
params any[]

Returns

Promise<any>

Overrides

Chain.sendRpcRequest

Defined in

terra/lib/chain/TerraChainProvider.ts:78


setFeeProvider

setFeeProvider(feeProvider): Promise<void>

Sets the fee provider

Parameters

Name Type
feeProvider Fee

Returns

Promise<void>

Inherited from

Chain.setFeeProvider

Defined in

client/dist/lib/Chain.d.ts:34


setNetwork

setNetwork(network): void

Sets the network

Parameters

Name Type
network Network

Returns

void

Inherited from

Chain.setNetwork

Defined in

client/dist/lib/Chain.d.ts:18


setProvider

setProvider(provider): Promise<void>

Sets the chain specific provider

Parameters

Name Type
provider LCDClient

Returns

Promise<void>

Inherited from

Chain.setProvider

Defined in

client/dist/lib/Chain.d.ts:30

Clone this wiki locally