-
Notifications
You must be signed in to change notification settings - Fork 69
@liquality.near.NearChainProvider
@liquality/near.NearChainProvider
-
Chain
<providers.JsonRpcProvider
>↳
NearChainProvider
- _getBlockById
- getBalance
- getBlockByHash
- getBlockByNumber
- getBlockHeight
- getFeeProvider
- getFees
- getNetwork
- getProvider
- getTransactionByHash
- sendRawTransaction
- sendRpcRequest
- setFeeProvider
- setNetwork
- setProvider
• new NearChainProvider(network
, provider?
)
Name | Type |
---|---|
network |
NearNetwork |
provider? |
JsonRpcProvider |
near/lib/chain/NearChainProvider.ts:8
• Protected
feeProvider: Fee
client/dist/lib/Chain.d.ts:11
• Protected
network: Network
client/dist/lib/Chain.d.ts:12
• Protected
provider: JsonRpcProvider
client/dist/lib/Chain.d.ts:13
▸ _getBlockById(blockId
, includeTx
): Promise
<Block
<BlockResult
, any
>>
Name | Type |
---|---|
blockId |
string | number
|
includeTx |
boolean |
Promise
<Block
<BlockResult
, any
>>
near/lib/chain/NearChainProvider.ts:73
▸ getBalance(addresses
, _assets
): Promise
<BigNumber
[]>
Name | Type |
---|---|
addresses |
AddressType [] |
_assets |
Asset [] |
Promise
<BigNumber
[]>
near/lib/chain/NearChainProvider.ts:41
▸ getBlockByHash(blockHash
, includeTx?
): Promise
<Block
<BlockResult
, Transaction
<any
>>>
Name | Type |
---|---|
blockHash |
string |
includeTx? |
boolean |
Promise
<Block
<BlockResult
, Transaction
<any
>>>
near/lib/chain/NearChainProvider.ts:16
▸ getBlockByNumber(blockNumber?
, includeTx?
): Promise
<Block
<BlockResult
, Transaction
<any
>>>
Name | Type |
---|---|
blockNumber? |
number |
includeTx? |
boolean |
Promise
<Block
<BlockResult
, Transaction
<any
>>>
near/lib/chain/NearChainProvider.ts:20
▸ getBlockHeight(): Promise
<number
>
Promise
<number
>
near/lib/chain/NearChainProvider.ts:27
▸ 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
near/lib/chain/NearChainProvider.ts:59
▸ getNetwork(): Network
Gets the connected network
client/dist/lib/Chain.d.ts:22
▸ getProvider(): JsonRpcProvider
Gets the chain specific provider
JsonRpcProvider
client/dist/lib/Chain.d.ts:26
▸ getTransactionByHash(txHash
): Promise
<Transaction
<NearTxLog
>>
Name | Type |
---|---|
txHash |
string |
Promise
<Transaction
<NearTxLog
>>
near/lib/chain/NearChainProvider.ts:32
▸ sendRawTransaction(rawTransaction
): Promise
<string
>
Name | Type |
---|---|
rawTransaction |
string |
Promise
<string
>
the transaction hash
near/lib/chain/NearChainProvider.ts:65
▸ sendRpcRequest(method
, params
): Promise
<any
>
Name | Type |
---|---|
method |
string |
params |
any [] |
Promise
<any
>
near/lib/chain/NearChainProvider.ts:69
▸ 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 |
JsonRpcProvider |
Promise
<void
>
client/dist/lib/Chain.d.ts:30