This page uses machine translation from English, which may contain errors or unclear language. For the most accurate information, please see the original English version. Some content may be in the original English due to frequent updates. Help us improve this page's translation by joining our effort on Crowdin. (Crowdin translation page, Contributing guide)
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