caver.rpc
caver.rpc
is a package that provides functionality related to rpc call with kaia Node.
Class β
RPC β
caver.rpc
RPC
is a class that contains Klay, Net and Governance inside.
Properties
Name | Type | Description |
---|---|---|
klay | Klay | The Klay providing JSON-RPC call with the klay name space. |
net | Net | The Net providing JSON-RPC call with the net name space. |
governance | Governance | The Governance providing JSON-RPC call with the governance name space. |
JSON-RPC calls β
The caver.rpc.klay
allows you to interact with the kaia nodes. The list below enumerates the API functions that are currently supported in caver-js
.
Account β
- accountCreated
- getAccount
- getAccountKey
- encodeAccountKey
- decodeAccountKey
- getBalance
- getCode
- getTransactionCount
- isContractAccount
- sign
- getAccounts
Block β
- getBlockNumber
- getBlockByNumber
- getBlockByHash
- getBlockReceipts
- getBlockTransactionCountByNumber
- getBlockTransactionCountByHash
- getBlockWithConsensusInfoByNumber
- getBlockWithConsensusInfoByHash
- getCommittee
- getCommitteeSize
- getCouncil
- getCouncilSize
- getStorageAt
- isSyncing
Transaction β
- call
- estimateGas
- estimateComputationCost
- getTransactionByBlockHashAndIndex
- getTransactionByBlockNumberAndIndex
- getTransactionByHash
- getTransactionBySenderTxHash
- getTransactionReceipt
- getTransactionReceiptBySenderTxHash
- sendRawTransaction
- sendTransaction
- sendTransactionAsFeePayer
- signTransaction
- signTransactionAsFeePayer
- getDecodedAnchoringTransactionByHash
Configuration β
- getChainId
- getClientVersion
- getGasPrice
- getGasPriceAt
- isParallelDBWrite
- isSenderTxHashIndexingEnabled
- getProtocolVersion
- getRewardbase
Filter β
- getFilterChanges
- getFilterLogs
- getLogs
- newBlockFilter
- newFilter
- newPendingTransactionFilter
- uninstallFilter