caver.rpc
caver.rpc là một gói cung cấp chức năng liên quan đến việc thực hiện gọi rpc đến nút Klaytn.
Lớp
RPC
caver.rpc
RPC là lớp chứa Klay, Net và [Quản trị][] bên trong.
Thuộc tính
| Tên | type | Mô tả |
|---|---|---|
| klay | Klay | Klay cung cấp lệnh gọi JSON-RPC với không gian tên klay. |
| net | Net | Net cung cấp lệnh gọi JSON-RPC với không gian tên net. |
| quản trị | [Quản trị][] | [Quản trị][] cung cấp lệnh gọi JSON-RPC với không gian tên governance. |
JSON-RPC calls
caver.rpc.klay cho phép bạn tương tác với các nút Klaytn. Danh sách dưới đây liệt kê các hàm API hiện được hỗ trợ trong caver-js.
Tài khoản
- tài khoảnCreated
- getAccount
- getAccountKey
- encodeAccountKey
- decodeAccountKey
- getBalance
- getCode
- getTransactionCount
- isContractAccount
- ký
- getAccounts
Khối
- getBlockNumber
- getBlockByNumber
- getBlockByHash
- getBlockReceipts
- getBlockTransactionCountByNumber
- getBlockTransactionCountByHash
- getBlockWithConsensusInfoByNumber
- getBlockWithConsensusInfoByHash
- getCommittee
- getCommitteeSize
- getCouncil
- getCouncilSize
- getStorageAt
- isSyncing
Giao dịch
- lệnh gọi
- estimateGas
- estimateComputationCost
- getTransactionByBlockHashAndIndex
- getTransactionByBlockNumberAndIndex
- getTransactionByHash
- getTransactionBySenderTxHash
- getTransactionReceipt
- getTransactionReceiptBySenderTxHash
- sendRawTransaction
- sendTransaction
- sendTransactionAsFeePayer
- signTransaction
- signTransactionAsFeePayer
- getDecodedAnchoringTransactionByHash
Cấu hình
- getChainId
- getClientVersion
- getGasPrice
- getGasPriceAt
- isParallelDBWrite
- isSenderTxHashIndexingEnabled
- getProtocolVersion
- getRewardbase
Bộ lọc
- getFilterChanges
- getFilterLogs
- getLogs
- newBlockFilter
- newFilter
- newPendingTransactionFilter
- uninstallFilter