-
Notifications
You must be signed in to change notification settings - Fork 69
@liquality.terra.TerraChainProvider
@liquality/terra.TerraChainProvider
-
Chain
<LCDClient
>↳
TerraChainProvider
- getBalance
- getBlockByHash
- getBlockByNumber
- getBlockHeight
- getFeeProvider
- getFees
- getNetwork
- getProvider
- getTransactionByHash
- sendRawTransaction
- sendRpcRequest
- setFeeProvider
- setNetwork
- setProvider
• new TerraChainProvider(network
)
Name | Type |
---|---|
network |
TerraNetwork |
terra/lib/chain/TerraChainProvider.ts:10
• Protected
feeProvider: Fee
client/dist/lib/Chain.d.ts:11
• Protected
network: Network
client/dist/lib/Chain.d.ts:12
• Protected
provider: LCDClient
client/dist/lib/Chain.d.ts:13
▸ getBalance(addresses
, assets
): Promise
<BigNumber
[]>
Name | Type |
---|---|
addresses |
AddressType [] |
assets |
Asset [] |
Promise
<BigNumber
[]>
terra/lib/chain/TerraChainProvider.ts:44
▸ getBlockByHash(_blockHash
, _includeTx?
): Promise
<Block
<BlockInfo
, TerraTxInfo
>>
Name | Type |
---|---|
_blockHash |
string |
_includeTx? |
boolean |
Promise
<Block
<BlockInfo
, TerraTxInfo
>>
terra/lib/chain/TerraChainProvider.ts:83
▸ getBlockByNumber(blockNumber?
, includeTx?
): Promise
<Block
<BlockInfo
, TerraTxInfo
>>
Name | Type |
---|---|
blockNumber? |
number |
includeTx? |
boolean |
Promise
<Block
<BlockInfo
, TerraTxInfo
>>
terra/lib/chain/TerraChainProvider.ts:15
▸ getBlockHeight(): Promise
<number
>
Promise
<number
>
terra/lib/chain/TerraChainProvider.ts:28
▸ getFeeProvider(): Promise
<Fee
>
Gets the fee provider
Promise
<Fee
>
client/dist/lib/Chain.d.ts:38
▸ getFees(): Promise
<FeeDetails
>
Promise
<FeeDetails
>
The fee details - FeeDetails
terra/lib/chain/TerraChainProvider.ts:74
▸ getNetwork(): Network
Gets the connected network
client/dist/lib/Chain.d.ts:22
▸ getProvider(): LCDClient
Gets the chain specific provider
LCDClient
client/dist/lib/Chain.d.ts:26
▸ getTransactionByHash(txHash
): Promise
<Transaction
<TerraTxInfo
>>
Name | Type |
---|---|
txHash |
string |
Promise
<Transaction
<TerraTxInfo
>>
terra/lib/chain/TerraChainProvider.ts:33
▸ sendRawTransaction(_rawTransaction
): Promise
<string
>
Name | Type |
---|---|
_rawTransaction |
string |
Promise
<string
>
the transaction hash
terra/lib/chain/TerraChainProvider.ts:87
▸ sendRpcRequest(method
, params
): Promise
<any
>
Name | Type |
---|---|
method |
keyof APIRequester
|
params |
any [] |
Promise
<any
>
terra/lib/chain/TerraChainProvider.ts:78
▸ setFeeProvider(feeProvider
): Promise
<void
>
Sets the fee provider
Name | Type |
---|---|
feeProvider |
Fee |
Promise
<void
>
client/dist/lib/Chain.d.ts:34
▸ setNetwork(network
): void
Sets the network
Name | Type |
---|---|
network |
Network |
void
client/dist/lib/Chain.d.ts:18
▸ setProvider(provider
): Promise
<void
>
Sets the chain specific provider
Name | Type |
---|---|
provider |
LCDClient |
Promise
<void
>
client/dist/lib/Chain.d.ts:30