Klay
instead.@Deprecated
public interface Klay
RPC
Modifier and Type | Method and Description |
---|---|
org.web3j.protocol.core.Request<?,Bytes> |
call(CallObject callObject,
org.web3j.protocol.core.DefaultBlockParameter defaultBlockParameter)
Deprecated.
Executes a new message call immediately without creating a transaction on the block chain.
|
org.web3j.protocol.core.Request<?,Quantity> |
estimateComputationCost(CallObject callObject,
org.web3j.protocol.core.DefaultBlockParameter defaultBlockParameter)
Deprecated.
Generates and returns an estimate of how much computation cost spent to execute the transaction.
|
org.web3j.protocol.core.Request<?,Quantity> |
estimateGas(CallObject callObject)
Deprecated.
Generates and returns an estimate of how much gas is necessary to allow the transaction to complete.
|
org.web3j.protocol.core.Request<?,KlayAccount> |
getAccount(java.lang.String address,
org.web3j.protocol.core.DefaultBlockParameter defaultBlockParameter)
Deprecated.
Returns the account information of a given address.
|
org.web3j.protocol.core.Request<?,KlayAccountKey> |
getAccountKey(java.lang.String address,
org.web3j.protocol.core.DefaultBlockParameter defaultBlockParameter)
Deprecated.
Returns the account key of the Externally Owned Account (EOA) at a given address.
|
org.web3j.protocol.core.Request<?,Addresses> |
getAccounts()
Deprecated.
Returns a list of addresses owned by client.
|
org.web3j.protocol.core.Request<?,Quantity> |
getBalance(java.lang.String address,
org.web3j.protocol.core.DefaultBlockParameter defaultBlockParameter)
Deprecated.
Returns the balance of the account of given address.
|
org.web3j.protocol.core.Request<?,KlayBlock> |
getBlockByHash(java.lang.String blockHash,
boolean isFullTransaction)
Deprecated.
Returns information about a block by hash.
|
org.web3j.protocol.core.Request<?,KlayBlock> |
getBlockByNumber(org.web3j.protocol.core.DefaultBlockParameter defaultBlockParameter,
boolean isFullTransaction)
Deprecated.
Returns information about a block by block number.
|
org.web3j.protocol.core.Request<?,Quantity> |
getBlockNumber()
Deprecated.
Returns the number of most recent block.
|
org.web3j.protocol.core.Request<?,BlockReceipts> |
getBlockReceipts(java.lang.String blockHash)
Deprecated.
Returns receipts included in a block identified by block hash.
|
org.web3j.protocol.core.Request<?,KlayBlockWithConsensusInfo> |
getBlockWithConsensusInfoByHash(java.lang.String blockHash)
Deprecated.
Returns a block with consensus information matched by the given hash.
|
org.web3j.protocol.core.Request<?,KlayBlockWithConsensusInfo> |
getBlockWithConsensusInfoByNumber(org.web3j.protocol.core.DefaultBlockParameter blockParameter)
Deprecated.
Returns a block with consensus information matched by the given block number.
|
org.web3j.protocol.core.Request<?,Quantity> |
getChainID()
Deprecated.
Returns the chain ID of the chain.
|
org.web3j.protocol.core.Request<?,Bytes> |
getClientVersion()
Deprecated.
Returns the current client version of a Klaytn node.
|
org.web3j.protocol.core.Request<?,Bytes> |
getCode(java.lang.String address,
org.web3j.protocol.core.DefaultBlockParameter defaultBlockParameter)
Deprecated.
Returns code at a given address.
|
org.web3j.protocol.core.Request<?,Addresses> |
getCommittee(org.web3j.protocol.core.DefaultBlockParameter defaultBlockParameter)
Deprecated.
Returns a list of all validators in the committee at the specified block.
|
org.web3j.protocol.core.Request<?,Quantity> |
getCommitteeSize(org.web3j.protocol.core.DefaultBlockParameter defaultBlockParameter)
Deprecated.
Returns the size of the committee at the specified block.
|
org.web3j.protocol.core.Request<?,Addresses> |
getCouncil(org.web3j.protocol.core.DefaultBlockParameter defaultBlockParameter)
Deprecated.
Returns a list of all validators of the council at the specified block.
|
org.web3j.protocol.core.Request<?,Quantity> |
getCouncilSize(org.web3j.protocol.core.DefaultBlockParameter defaultBlockParameter)
Deprecated.
Returns the size of the council at the specified block.
|
org.web3j.protocol.core.Request<?,KlayLogs> |
getFilterChanges(java.math.BigInteger filterId)
Deprecated.
Polling method for a filter, which returns an array of logs which occurred since last poll.
|
org.web3j.protocol.core.Request<?,KlayLogs> |
getFilterLogs(java.math.BigInteger filterId)
Deprecated.
Returns an array of all logs matching filter with given id, which has been obtained using
newFilter(KlayFilter) . |
org.web3j.protocol.core.Request<?,Quantity> |
getGasPrice()
Deprecated.
Returns the current price per gas in peb.
|
org.web3j.protocol.core.Request<?,Quantity> |
getGasPriceAt(org.web3j.protocol.core.DefaultBlockParameter defaultBlockParameter)
Deprecated.
Returns the unit price of the given block in peb.
NOTE: This API has different behavior from Ethereum's and returns a gas price of Klaytn instead of suggesting a gas price as in Ethereum. |
org.web3j.protocol.core.Request<?,KlayLogs> |
getLogs(KlayLogFilter filter)
Deprecated.
Returns an array of all logs matching a given filter object.
|
org.web3j.protocol.core.Request<?,Bytes> |
getProtocolVersion()
Deprecated.
Returns the Klaytn protocol version of the node.
|
org.web3j.protocol.core.Request<?,Bytes20> |
getRewardbase()
Deprecated.
Returns the rewardbase of the current node.
|
org.web3j.protocol.core.Request<?,Bytes> |
getSha3(java.lang.String data)
Deprecated.
Returns Keccak-256 (not the standardized SHA3-256) of the given data.
|
org.web3j.protocol.core.Request<?,Bytes> |
getStorageAt(java.lang.String address,
org.web3j.protocol.core.DefaultBlockParameterNumber position,
org.web3j.protocol.core.DefaultBlockParameter defaultBlockParameter)
Deprecated.
Returns the value from a storage position at a given address.
|
org.web3j.protocol.core.Request<?,KlayTransaction> |
getTransactionByBlockHashAndIndex(java.lang.String blockHash,
org.web3j.protocol.core.DefaultBlockParameterNumber index)
Deprecated.
Returns information about a transaction by block hash and transaction index position.
|
org.web3j.protocol.core.Request<?,KlayTransaction> |
getTransactionByBlockNumberAndIndex(org.web3j.protocol.core.DefaultBlockParameter blockNumber,
org.web3j.protocol.core.DefaultBlockParameterNumber index)
Deprecated.
Returns information about a transaction by block number and transaction index position.
|
org.web3j.protocol.core.Request<?,KlayTransaction> |
getTransactionByHash(java.lang.String txHash)
Deprecated.
Returns the information about a transaction requested by transaction hash.
|
org.web3j.protocol.core.Request<?,KlayTransaction> |
getTransactionBySenderTxHash(java.lang.String txHash)
Deprecated.
Returns the information about a transaction requested by sender transaction hash.
|
org.web3j.protocol.core.Request<?,Quantity> |
getTransactionCount(java.lang.String address,
org.web3j.protocol.core.DefaultBlockParameter defaultBlockParameter)
Deprecated.
Returns the number of transactions sent from an address.
|
org.web3j.protocol.core.Request<?,Quantity> |
getTransactionCountByHash(java.lang.String blockHash)
Deprecated.
Returns the number of transactions in a block from a block matching the given block hash.
|
org.web3j.protocol.core.Request<?,Quantity> |
getTransactionCountByNumber(org.web3j.protocol.core.DefaultBlockParameter defaultBlockParameter)
Deprecated.
Returns the number of transactions in a block matching the given block number.
|
org.web3j.protocol.core.Request<?,KlayTransactionReceipt> |
getTransactionReceipt(java.lang.String transactionHash)
Deprecated.
Returns the receipt of a transaction by transaction hash.
|
org.web3j.protocol.core.Request<?,KlayTransactionReceipt> |
getTransactionReceiptBySenderTxHash(java.lang.String transactionHash)
Deprecated.
Returns the receipt of a transaction by sender transaction hash.
|
org.web3j.protocol.core.Request<?,Work> |
getWork()
Deprecated.
Returns the hash of the current block, the seedHash, and the boundary condition to be met ("target").
|
org.web3j.protocol.core.Request<?,Bytes20> |
importRawKey()
Deprecated.
|
org.web3j.protocol.core.Request<?,Boolean> |
isAccountCreated(java.lang.String address,
org.web3j.protocol.core.DefaultBlockParameter defaultBlockParameter)
Deprecated.
Returns true if the account associated with the address is created.
|
org.web3j.protocol.core.Request<?,Boolean> |
isContractAccount(java.lang.String address,
org.web3j.protocol.core.DefaultBlockParameter defaultBlockParameter)
Deprecated.
Returns true if an input account has a non-empty codeHash at the time of a specific block number.
|
org.web3j.protocol.core.Request<?,Boolean> |
isMining()
Deprecated.
Returns true if client is actively mining new blocks.
|
org.web3j.protocol.core.Request<?,Boolean> |
isParallelDBWrite()
Deprecated.
Returns true if the node is writing blockchain data in parallel manner.
|
org.web3j.protocol.core.Request<?,Boolean> |
isSenderTxHashIndexingEnabled()
Deprecated.
Returns true if the node is indexing sender transaction hash to transaction hash mapping information.
|
org.web3j.protocol.core.Request<?,KlaySyncing> |
isSyncing()
Deprecated.
Returns an object with data about the sync status or false.
|
org.web3j.protocol.core.Request<?,Boolean> |
lockAccount(java.lang.String address)
Deprecated.
|
org.web3j.protocol.core.Request<?,org.web3j.protocol.admin.methods.response.NewAccountIdentifier> |
newAccount(java.lang.String passphrase)
Deprecated.
|
org.web3j.protocol.core.Request<?,Quantity> |
newBlockFilter()
Deprecated.
Creates a filter in the node, to notify when a new block arrives.
|
org.web3j.protocol.core.Request<?,Quantity> |
newFilter(KlayFilter filter)
Deprecated.
Creates a filter object, based on filter options, to notify when the state changes (logs).
|
org.web3j.protocol.core.Request<?,Quantity> |
newPendingTransactionFilter()
Deprecated.
Creates a filter in the node, to notify when new pending transactions arrive.
|
org.web3j.protocol.core.Request<?,Bytes32> |
sendSignedTransaction(java.lang.String signedTransactionData)
Deprecated.
Creates a new message call transaction or a contract creation for signed transactions.
|
org.web3j.protocol.core.Request<?,Bytes32> |
sendTransaction(KlayTransaction transaction)
Deprecated.
Creates a new message call transaction or a contract creation if the data field contains code.
|
org.web3j.protocol.core.Request<?,Bytes> |
sign(java.lang.String address,
java.lang.String message)
Deprecated.
The sign method calculates a Klaytn-specific signature.
|
org.web3j.protocol.core.Request<?,KlaySignTransaction> |
signTransaction(KlayTransaction transaction)
Deprecated.
Creates a rawTransaction based on the give transaction information.
|
org.web3j.protocol.core.Request<?,Boolean> |
uninstallFilter(java.math.BigInteger filterId)
Deprecated.
Uninstalls a filter with given id.
|
org.web3j.protocol.core.Request<?,org.web3j.protocol.admin.methods.response.PersonalUnlockAccount> |
unlockAccount(java.lang.String address,
java.lang.String passphrase,
java.math.BigInteger duration)
Deprecated.
|
org.web3j.protocol.core.Request<?,Boolean> isAccountCreated(java.lang.String address, org.web3j.protocol.core.DefaultBlockParameter defaultBlockParameter)
address
- addressdefaultBlockParameter
- Integer block number, or the string "latest", "earliest" or "pending"org.web3j.protocol.core.Request<?,Addresses> getAccounts()
org.web3j.protocol.core.Request<?,KlayAccount> getAccount(java.lang.String address, org.web3j.protocol.core.DefaultBlockParameter defaultBlockParameter)
IAccountType
.address
- AddressdefaultBlockParameter
- Integer block number, or the string "latest", "earliest" or "pending"org.web3j.protocol.core.Request<?,KlayAccountKey> getAccountKey(java.lang.String address, org.web3j.protocol.core.DefaultBlockParameter defaultBlockParameter)
AccountKey
.address
- AddressdefaultBlockParameter
- Integer block number, or the string "latest", "earliest" or "pending"org.web3j.protocol.core.Request<?,Quantity> getBalance(java.lang.String address, org.web3j.protocol.core.DefaultBlockParameter defaultBlockParameter)
address
- addressdefaultBlockParameter
- Integer block number, or the string "latest", "earliest" or "pending"org.web3j.protocol.core.Request<?,Bytes> getCode(java.lang.String address, org.web3j.protocol.core.DefaultBlockParameter defaultBlockParameter)
address
- addressdefaultBlockParameter
- Integer block number, or the string "latest", "earliest" or "pending"org.web3j.protocol.core.Request<?,Quantity> getTransactionCount(java.lang.String address, org.web3j.protocol.core.DefaultBlockParameter defaultBlockParameter)
address
- addressdefaultBlockParameter
- Integer block number, or the string "latest", "earliest" or "pending"org.web3j.protocol.core.Request<?,Boolean> isContractAccount(java.lang.String address, org.web3j.protocol.core.DefaultBlockParameter defaultBlockParameter)
address
- addressdefaultBlockParameter
- Integer block number, or the string "latest", "earliest" or "pending"org.web3j.protocol.core.Request<?,Bytes> sign(java.lang.String address, java.lang.String message)
address
- addressmessage
- Message to signorg.web3j.protocol.core.Request<?,Quantity> getBlockNumber()
org.web3j.protocol.core.Request<?,KlayBlock> getBlockByNumber(org.web3j.protocol.core.DefaultBlockParameter defaultBlockParameter, boolean isFullTransaction)
defaultBlockParameter
- Integer block number, or the string "latest", "earliest" or "pending"isFullTransaction
- If true it returns the full transaction objects, if false only the hashes
of the transactions.org.web3j.protocol.core.Request<?,KlayBlock> getBlockByHash(java.lang.String blockHash, boolean isFullTransaction)
blockHash
- Hash of a block.isFullTransaction
- If true it returns the full transaction objects, if false only the hashes of
the transactions.org.web3j.protocol.core.Request<?,BlockReceipts> getBlockReceipts(java.lang.String blockHash)
blockHash
- Block hashorg.web3j.protocol.core.Request<?,Quantity> getTransactionCountByNumber(org.web3j.protocol.core.DefaultBlockParameter defaultBlockParameter)
defaultBlockParameter
- Integer block number, or the string "latest", "earliest" or "pending"org.web3j.protocol.core.Request<?,Quantity> getTransactionCountByHash(java.lang.String blockHash)
blockHash
- Hash of a blockorg.web3j.protocol.core.Request<?,KlayBlockWithConsensusInfo> getBlockWithConsensusInfoByHash(java.lang.String blockHash)
blockHash
- Hash of a blockorg.web3j.protocol.core.Request<?,KlayBlockWithConsensusInfo> getBlockWithConsensusInfoByNumber(org.web3j.protocol.core.DefaultBlockParameter blockParameter)
blockParameter
- Integer block number, or the string "latest", "earliest" or "pending"org.web3j.protocol.core.Request<?,Addresses> getCommittee(org.web3j.protocol.core.DefaultBlockParameter defaultBlockParameter)
defaultBlockParameter
- (optional) Integer of a block number, or the string "earliest" or "latest".org.web3j.protocol.core.Request<?,Quantity> getCommitteeSize(org.web3j.protocol.core.DefaultBlockParameter defaultBlockParameter)
defaultBlockParameter
- (optional) Integer of a block number, or the string "earliest" or "latest".org.web3j.protocol.core.Request<?,Addresses> getCouncil(org.web3j.protocol.core.DefaultBlockParameter defaultBlockParameter)
defaultBlockParameter
- (optional) Integer of a block number, or the string "earliest" or "latest".org.web3j.protocol.core.Request<?,Quantity> getCouncilSize(org.web3j.protocol.core.DefaultBlockParameter defaultBlockParameter)
defaultBlockParameter
- (optional) Integer of a block number, or the string "earliest" or "latest".org.web3j.protocol.core.Request<?,Bytes> getStorageAt(java.lang.String address, org.web3j.protocol.core.DefaultBlockParameterNumber position, org.web3j.protocol.core.DefaultBlockParameter defaultBlockParameter)
address
- addressposition
- Integer of the position in the storage.defaultBlockParameter
- Integer block number, or the string "latest", "earliest" or "pending"org.web3j.protocol.core.Request<?,Work> getWork()
org.web3j.protocol.core.Request<?,Boolean> isMining()
org.web3j.protocol.core.Request<?,KlaySyncing> isSyncing()
org.web3j.protocol.core.Request<?,Bytes> call(CallObject callObject, org.web3j.protocol.core.DefaultBlockParameter defaultBlockParameter)
callObject
- The transaction call object. See the the CallObject
's properties.defaultBlockParameter
- Integer block number, or the string "latest", "earliest" or "pending"org.web3j.protocol.core.Request<?,Quantity> estimateGas(CallObject callObject)
callObject
- The transaction call object. See the the CallObject
's properties.org.web3j.protocol.core.Request<?,Quantity> estimateComputationCost(CallObject callObject, org.web3j.protocol.core.DefaultBlockParameter defaultBlockParameter)
callObject
- The transaction call object. See the the CallObject
's properties. If no gas limit
is specified, the Klaytn node uses the default gas limit (uint64 / 2) as an upper bound.defaultBlockParameter
- Integer block number, or the string "latest", "earliest" or "pending"org.web3j.protocol.core.Request<?,KlayTransaction> getTransactionByBlockHashAndIndex(java.lang.String blockHash, org.web3j.protocol.core.DefaultBlockParameterNumber index)
blockHash
- Hash of a blockindex
- Integer of the transaction index position.org.web3j.protocol.core.Request<?,KlayTransaction> getTransactionByBlockNumberAndIndex(org.web3j.protocol.core.DefaultBlockParameter blockNumber, org.web3j.protocol.core.DefaultBlockParameterNumber index)
blockNumber
- Integer block number, or the string "latest", "earliest" or "pending"index
- The transaction index position.org.web3j.protocol.core.Request<?,KlayTransaction> getTransactionByHash(java.lang.String txHash)
txHash
- Hash of a transaction.org.web3j.protocol.core.Request<?,KlayTransaction> getTransactionBySenderTxHash(java.lang.String txHash)
isSenderTxHashIndexingEnabled()
.txHash
- Hash of a transaction before signing of feePayer(senderTransactionHash)org.web3j.protocol.core.Request<?,KlayTransactionReceipt> getTransactionReceipt(java.lang.String transactionHash)
transactionHash
- Hash of a transactionorg.web3j.protocol.core.Request<?,KlayTransactionReceipt> getTransactionReceiptBySenderTxHash(java.lang.String transactionHash)
isSenderTxHashIndexingEnabled()
.transactionHash
- Hash of a transaction before signing of feePayer(senderTransactionHash).org.web3j.protocol.core.Request<?,Bytes32> sendSignedTransaction(java.lang.String signedTransactionData)
signedTransactionData
- The signed transaction data.org.web3j.protocol.core.Request<?,Bytes32> sendTransaction(KlayTransaction transaction)
transaction
- KlayTransaction objectorg.web3j.protocol.core.Request<?,KlaySignTransaction> signTransaction(KlayTransaction transaction)
transaction
- KlayTransaction objectorg.web3j.protocol.core.Request<?,Quantity> getChainID()
org.web3j.protocol.core.Request<?,Bytes> getClientVersion()
org.web3j.protocol.core.Request<?,Quantity> getGasPrice()
org.web3j.protocol.core.Request<?,Quantity> getGasPriceAt(org.web3j.protocol.core.DefaultBlockParameter defaultBlockParameter)
defaultBlockParameter
- Integer block number, or the string "latest", "earliest" or "pending"org.web3j.protocol.core.Request<?,Boolean> isParallelDBWrite()
org.web3j.protocol.core.Request<?,Boolean> isSenderTxHashIndexingEnabled()
org.web3j.protocol.core.Request<?,Bytes> getProtocolVersion()
org.web3j.protocol.core.Request<?,Bytes20> getRewardbase()
org.web3j.protocol.core.Request<?,KlayLogs> getFilterChanges(java.math.BigInteger filterId)
filterId
- A filter idorg.web3j.protocol.core.Request<?,KlayLogs> getFilterLogs(java.math.BigInteger filterId)
newFilter(KlayFilter)
. Note that filter ids returned by other filter creation functions,
such as newBlockFilter()
or newPendingTransactionFilter()
, cannot be used with this function.filterId
- A filter idorg.web3j.protocol.core.Request<?,KlayLogs> getLogs(KlayLogFilter filter)
filter
- KlayLogFilter
org.web3j.protocol.core.Request<?,Quantity> newBlockFilter()
getFilterChanges(BigInteger)
org.web3j.protocol.core.Request<?,Quantity> newFilter(KlayFilter filter)
getFilterChanges(BigInteger)
.
To obtain all logs matching the filter created by klay_newFilter, call getFilterLogs(BigInteger)
.filter
- KlayLogFilter
org.web3j.protocol.core.Request<?,Quantity> newPendingTransactionFilter()
getFilterChanges(BigInteger)
org.web3j.protocol.core.Request<?,Boolean> uninstallFilter(java.math.BigInteger filterId)
getFilterChanges(BigInteger)
for a period of time.filterId
- A filter idorg.web3j.protocol.core.Request<?,Bytes> getSha3(java.lang.String data)
data
- The data to convert into a SHA3 hash.org.web3j.protocol.core.Request<?,org.web3j.protocol.admin.methods.response.NewAccountIdentifier> newAccount(java.lang.String passphrase)
org.web3j.protocol.core.Request<?,org.web3j.protocol.admin.methods.response.PersonalUnlockAccount> unlockAccount(java.lang.String address, java.lang.String passphrase, java.math.BigInteger duration)
org.web3j.protocol.core.Request<?,Boolean> lockAccount(java.lang.String address)
org.web3j.protocol.core.Request<?,Bytes20> importRawKey()