Class JsonRpc2_0Klay

  • All Implemented Interfaces:
    Klay

    @Deprecated
    public class JsonRpc2_0Klay
    extends java.lang.Object
    implements Klay
    Deprecated.
    Please use Klay instead.
    See Also:
    RPC
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int DEFAULT_BLOCK_TIME
      Deprecated.
       
      protected org.web3j.protocol.Web3jService web3jService
      Deprecated.
       
    • Constructor Summary

      Constructors 
      Constructor Description
      JsonRpc2_0Klay​(org.web3j.protocol.Web3jService web3jService, long pollingInterval, java.util.concurrent.ScheduledExecutorService scheduledExecutorService, org.web3j.protocol.admin.Admin web3j)
      Deprecated.
       
      JsonRpc2_0Klay​(org.web3j.protocol.Web3jService web3jService, org.web3j.protocol.admin.Admin web3j)
      Deprecated.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method 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 defaultBlockParameter)
      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 Klay.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.
       
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • DEFAULT_BLOCK_TIME

        public static final int DEFAULT_BLOCK_TIME
        Deprecated.
        See Also:
        Constant Field Values
      • web3jService

        protected final org.web3j.protocol.Web3jService web3jService
        Deprecated.
    • Constructor Detail

      • JsonRpc2_0Klay

        public JsonRpc2_0Klay​(org.web3j.protocol.Web3jService web3jService,
                              org.web3j.protocol.admin.Admin web3j)
        Deprecated.
      • JsonRpc2_0Klay

        public JsonRpc2_0Klay​(org.web3j.protocol.Web3jService web3jService,
                              long pollingInterval,
                              java.util.concurrent.ScheduledExecutorService scheduledExecutorService,
                              org.web3j.protocol.admin.Admin web3j)
        Deprecated.
    • Method Detail

      • isAccountCreated

        public org.web3j.protocol.core.Request<?,​Boolean> isAccountCreated​(java.lang.String address,
                                                                                 org.web3j.protocol.core.DefaultBlockParameter defaultBlockParameter)
        Deprecated.
        Description copied from interface: Klay
        Returns true if the account associated with the address is created. It returns false otherwise.
        Specified by:
        isAccountCreated in interface Klay
        Parameters:
        address - address
        defaultBlockParameter - Integer block number, or the string "latest", "earliest" or "pending"
        Returns:
        Boolean - The existence of an input address
      • getAccounts

        public org.web3j.protocol.core.Request<?,​Addresses> getAccounts()
        Deprecated.
        Description copied from interface: Klay
        Returns a list of addresses owned by client.
        Specified by:
        getAccounts in interface Klay
        Returns:
        Addresses - Addresses owned by the client.
      • getAccount

        public org.web3j.protocol.core.Request<?,​KlayAccount> getAccount​(java.lang.String address,
                                                                               org.web3j.protocol.core.DefaultBlockParameter defaultBlockParameter)
        Deprecated.
        Description copied from interface: Klay
        Returns the account information of a given address. There are three different account types in Klaytn: Legacy Account, Externally Owned Account (EOA), and Smart Contract Account. See Klaytn IAccountType.
        Specified by:
        getAccount in interface Klay
        Parameters:
        address - Address
        defaultBlockParameter - Integer block number, or the string "latest", "earliest" or "pending"
        Returns:
        KlayAccount - Each account type has different attributes.
      • getAccountKey

        public org.web3j.protocol.core.Request<?,​KlayAccountKey> getAccountKey​(java.lang.String address,
                                                                                     org.web3j.protocol.core.DefaultBlockParameter defaultBlockParameter)
        Deprecated.
        Description copied from interface: Klay
        Returns the account key of the Externally Owned Account (EOA) at a given address. If the account of the given address is a Legacy Account or a Smart Contract Account, it will return an empty key value. See AccountKey.
        Specified by:
        getAccountKey in interface Klay
        Parameters:
        address - Address
        defaultBlockParameter - Integer block number, or the string "latest", "earliest" or "pending"
        Returns:
        KlayAccountKey - The account key consist of public key(s) and a key type.
      • getBalance

        public org.web3j.protocol.core.Request<?,​Quantity> getBalance​(java.lang.String address,
                                                                            org.web3j.protocol.core.DefaultBlockParameter defaultBlockParameter)
        Deprecated.
        Description copied from interface: Klay
        Returns the balance of the account of given address.
        Specified by:
        getBalance in interface Klay
        Parameters:
        address - address
        defaultBlockParameter - Integer block number, or the string "latest", "earliest" or "pending"
        Returns:
        Quantity - Integer of the current balance in peb.
      • getCode

        public org.web3j.protocol.core.Request<?,​Bytes> getCode​(java.lang.String address,
                                                                      org.web3j.protocol.core.DefaultBlockParameter defaultBlockParameter)
        Deprecated.
        Description copied from interface: Klay
        Returns code at a given address.
        Specified by:
        getCode in interface Klay
        Parameters:
        address - address
        defaultBlockParameter - Integer block number, or the string "latest", "earliest" or "pending"
        Returns:
        Bytes - The code from the given address.
      • getTransactionCount

        public org.web3j.protocol.core.Request<?,​Quantity> getTransactionCount​(java.lang.String address,
                                                                                     org.web3j.protocol.core.DefaultBlockParameter defaultBlockParameter)
        Deprecated.
        Description copied from interface: Klay
        Returns the number of transactions sent from an address.
        Specified by:
        getTransactionCount in interface Klay
        Parameters:
        address - address
        defaultBlockParameter - Integer block number, or the string "latest", "earliest" or "pending"
        Returns:
        Quantity - Integer of the number of transactions send from this address.
      • isContractAccount

        public org.web3j.protocol.core.Request<?,​Boolean> isContractAccount​(java.lang.String address,
                                                                                  org.web3j.protocol.core.DefaultBlockParameter defaultBlockParameter)
        Deprecated.
        Description copied from interface: Klay
        Returns true if an input account has a non-empty codeHash at the time of a specific block number. It returns false if the account is an EOA or a smart contract account which doesn't have codeHash.
        Specified by:
        isContractAccount in interface Klay
        Parameters:
        address - address
        defaultBlockParameter - Integer block number, or the string "latest", "earliest" or "pending"
        Returns:
        Boolean - true means the input parameter is an existing smart contract address.
      • sign

        public org.web3j.protocol.core.Request<?,​Bytes> sign​(java.lang.String address,
                                                                   java.lang.String message)
        Deprecated.
        Description copied from interface: Klay
        The sign method calculates a Klaytn-specific signature. NOTE: The address to sign with must be unlocked.
        Specified by:
        sign in interface Klay
        Parameters:
        address - address
        message - Message to sign
        Returns:
        Bytes - Signature
      • getBlockNumber

        public org.web3j.protocol.core.Request<?,​Quantity> getBlockNumber()
        Deprecated.
        Description copied from interface: Klay
        Returns the number of most recent block.
        Specified by:
        getBlockNumber in interface Klay
        Returns:
        Quantity - Integer of the current block number the client is on.
      • getBlockByNumber

        public org.web3j.protocol.core.Request<?,​KlayBlock> getBlockByNumber​(org.web3j.protocol.core.DefaultBlockParameter defaultBlockParameter,
                                                                                   boolean isFullTransaction)
        Deprecated.
        Description copied from interface: Klay
        Returns information about a block by block number.
        Specified by:
        getBlockByNumber in interface Klay
        Parameters:
        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.
        Returns:
        KlayBlock - A block object or null when no block was found
      • getBlockByHash

        public org.web3j.protocol.core.Request<?,​KlayBlock> getBlockByHash​(java.lang.String blockHash,
                                                                                 boolean isFullTransaction)
        Deprecated.
        Description copied from interface: Klay
        Returns information about a block by hash.
        Specified by:
        getBlockByHash in interface Klay
        Parameters:
        blockHash - Hash of a block.
        isFullTransaction - If true it returns the full transaction objects, if false only the hashes of the transactions.
        Returns:
        KlayBlock - A block object or null when no block was found
      • getBlockReceipts

        public org.web3j.protocol.core.Request<?,​BlockReceipts> getBlockReceipts​(java.lang.String blockHash)
        Deprecated.
        Description copied from interface: Klay
        Returns receipts included in a block identified by block hash.
        Specified by:
        getBlockReceipts in interface Klay
        Parameters:
        blockHash - Block hash
        Returns:
        BlockReceipts - Receipts included in a block. If the target block contains no transaction, an empty array [] is returned.
      • getTransactionCountByNumber

        public org.web3j.protocol.core.Request<?,​Quantity> getTransactionCountByNumber​(org.web3j.protocol.core.DefaultBlockParameter defaultBlockParameter)
        Deprecated.
        Description copied from interface: Klay
        Returns the number of transactions in a block matching the given block number.
        Specified by:
        getTransactionCountByNumber in interface Klay
        Parameters:
        defaultBlockParameter - Integer block number, or the string "latest", "earliest" or "pending"
        Returns:
        Quantity - Integer of the number of transactions in this block.
      • getTransactionCountByHash

        public org.web3j.protocol.core.Request<?,​Quantity> getTransactionCountByHash​(java.lang.String blockHash)
        Deprecated.
        Description copied from interface: Klay
        Returns the number of transactions in a block from a block matching the given block hash.
        Specified by:
        getTransactionCountByHash in interface Klay
        Parameters:
        blockHash - Hash of a block
        Returns:
        Quantity - Integer of the number of transactions in this block.
      • getBlockWithConsensusInfoByHash

        public org.web3j.protocol.core.Request<?,​KlayBlockWithConsensusInfo> getBlockWithConsensusInfoByHash​(java.lang.String blockHash)
        Deprecated.
        Description copied from interface: Klay
        Returns a block with consensus information matched by the given hash.
        Specified by:
        getBlockWithConsensusInfoByHash in interface Klay
        Parameters:
        blockHash - Hash of a block
        Returns:
        KlayBlockWithConsensusInfo - A block object with consensus information (a proposer and a list of committee members), or null when no block was found:
      • getBlockWithConsensusInfoByNumber

        public org.web3j.protocol.core.Request<?,​KlayBlockWithConsensusInfo> getBlockWithConsensusInfoByNumber​(org.web3j.protocol.core.DefaultBlockParameter defaultBlockParameter)
        Deprecated.
        Description copied from interface: Klay
        Returns a block with consensus information matched by the given block number.
        Specified by:
        getBlockWithConsensusInfoByNumber in interface Klay
        Parameters:
        defaultBlockParameter - Integer block number, or the string "latest", "earliest" or "pending"
        Returns:
        KlayBlockWithConsensusInfo - A block object with consensus information (a proposer and a list of committee members), or null when no block was found:
      • getCommittee

        public org.web3j.protocol.core.Request<?,​Addresses> getCommittee​(org.web3j.protocol.core.DefaultBlockParameter defaultBlockParameter)
        Deprecated.
        Description copied from interface: Klay
        Returns a list of all validators in the committee at the specified block. If the parameter is not set, returns a list of all validators in the committee at the latest block.
        Specified by:
        getCommittee in interface Klay
        Parameters:
        defaultBlockParameter - (optional) Integer of a block number, or the string "earliest" or "latest".
        Returns:
        Addresses - Array of addresses of all validators in the committee, or null when no committee was found
      • getCommitteeSize

        public org.web3j.protocol.core.Request<?,​Quantity> getCommitteeSize​(org.web3j.protocol.core.DefaultBlockParameter defaultBlockParameter)
        Deprecated.
        Description copied from interface: Klay
        Returns the size of the committee at the specified block. If the parameter is not set, returns the size of the committee at the latest block.
        Specified by:
        getCommitteeSize in interface Klay
        Parameters:
        defaultBlockParameter - (optional) Integer of a block number, or the string "earliest" or "latest".
        Returns:
        Quantity - The size of the committee, or -1 when no committee was found
      • getCouncil

        public org.web3j.protocol.core.Request<?,​Addresses> getCouncil​(org.web3j.protocol.core.DefaultBlockParameter defaultBlockParameter)
        Deprecated.
        Description copied from interface: Klay
        Returns a list of all validators of the council at the specified block. If the parameter is not set, returns a list of all validators of the council at the latest block.
        Specified by:
        getCouncil in interface Klay
        Parameters:
        defaultBlockParameter - (optional) Integer of a block number, or the string "earliest" or "latest".
        Returns:
        Addresses - Addresses of all validators of the council.
      • getCouncilSize

        public org.web3j.protocol.core.Request<?,​Quantity> getCouncilSize​(org.web3j.protocol.core.DefaultBlockParameter defaultBlockParameter)
        Deprecated.
        Description copied from interface: Klay
        Returns the size of the council at the specified block. If the parameter is not set, returns the size of the council at the latest block.
        Specified by:
        getCouncilSize in interface Klay
        Parameters:
        defaultBlockParameter - (optional) Integer of a block number, or the string "earliest" or "latest".
        Returns:
        Quantity - The size of the council, or -1 when no council was found
      • getStorageAt

        public org.web3j.protocol.core.Request<?,​Bytes> getStorageAt​(java.lang.String address,
                                                                           org.web3j.protocol.core.DefaultBlockParameterNumber position,
                                                                           org.web3j.protocol.core.DefaultBlockParameter defaultBlockParameter)
        Deprecated.
        Description copied from interface: Klay
        Returns the value from a storage position at a given address.
        Specified by:
        getStorageAt in interface Klay
        Parameters:
        address - address
        position - Integer of the position in the storage.
        defaultBlockParameter - Integer block number, or the string "latest", "earliest" or "pending"
        Returns:
        Bytes - The value at this storage position.
      • getWork

        public org.web3j.protocol.core.Request<?,​Work> getWork()
        Deprecated.
        Description copied from interface: Klay
        Returns the hash of the current block, the seedHash, and the boundary condition to be met ("target").
        Specified by:
        getWork in interface Klay
        Returns:
        Work - Array with three 32-bytes DATA
      • isMining

        public org.web3j.protocol.core.Request<?,​Boolean> isMining()
        Deprecated.
        Description copied from interface: Klay
        Returns true if client is actively mining new blocks. NOTE: Currently, every node is on mining mode by default to resend transactions. Please note that actual "mining" process is only done by CN nodes.
        Specified by:
        isMining in interface Klay
        Returns:
        Boolean - true if the client is mining, otherwise false.
      • isSyncing

        public org.web3j.protocol.core.Request<?,​KlaySyncing> isSyncing()
        Deprecated.
        Description copied from interface: Klay
        Returns an object with data about the sync status or false.
        Specified by:
        isSyncing in interface Klay
        Returns:
        KlaySyncing - an object with sync status data or false when not syncing
      • call

        public org.web3j.protocol.core.Request<?,​Bytes> call​(CallObject callObject,
                                                                   org.web3j.protocol.core.DefaultBlockParameter defaultBlockParameter)
        Deprecated.
        Description copied from interface: Klay
        Executes a new message call immediately without creating a transaction on the block chain. It returns data or an error object of JSON RPC if error occurs.
        Specified by:
        call in interface Klay
        Parameters:
        callObject - The transaction call object. See the the CallObject's properties.
        defaultBlockParameter - Integer block number, or the string "latest", "earliest" or "pending"
        Returns:
        Bytes - The return value of executed contract.
      • estimateGas

        public org.web3j.protocol.core.Request<?,​Quantity> estimateGas​(CallObject callObject)
        Deprecated.
        Description copied from interface: Klay
        Generates and returns an estimate of how much gas is necessary to allow the transaction to complete. The transaction will not be added to the blockchain. Note that the estimate may be significantly more than the amount of gas actually used by the transaction, for a variety of reasons including Klaytn Virtual Machine mechanics and node performance.
        Specified by:
        estimateGas in interface Klay
        Parameters:
        callObject - The transaction call object. See the the CallObject's properties.
        Returns:
        Quantity - The amount of gas used.
      • estimateComputationCost

        public org.web3j.protocol.core.Request<?,​Quantity> estimateComputationCost​(CallObject callObject,
                                                                                         org.web3j.protocol.core.DefaultBlockParameter defaultBlockParameter)
        Deprecated.
        Description copied from interface: Klay
        Generates and returns an estimate of how much computation cost spent to execute the transaction. Klaytn limits the computation cost of a transaction to 100000000 currently not to take too much time by a single transaction. The transaction will not be added to the blockchain like klay_estimateGas.
        Specified by:
        estimateComputationCost in interface Klay
        Parameters:
        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"
        Returns:
        Quantity - The amount of computation cost used.
      • getTransactionByBlockHashAndIndex

        public org.web3j.protocol.core.Request<?,​KlayTransaction> getTransactionByBlockHashAndIndex​(java.lang.String blockHash,
                                                                                                          org.web3j.protocol.core.DefaultBlockParameterNumber index)
        Deprecated.
        Description copied from interface: Klay
        Returns information about a transaction by block hash and transaction index position.
        Specified by:
        getTransactionByBlockHashAndIndex in interface Klay
        Parameters:
        blockHash - Hash of a block
        index - Integer of the transaction index position.
        Returns:
        KlayTransaction - A transaction object, or null when no transaction was found
      • getTransactionByBlockNumberAndIndex

        public org.web3j.protocol.core.Request<?,​KlayTransaction> getTransactionByBlockNumberAndIndex​(org.web3j.protocol.core.DefaultBlockParameter blockNumber,
                                                                                                            org.web3j.protocol.core.DefaultBlockParameterNumber index)
        Deprecated.
        Description copied from interface: Klay
        Returns information about a transaction by block number and transaction index position.
        Specified by:
        getTransactionByBlockNumberAndIndex in interface Klay
        Parameters:
        blockNumber - Integer block number, or the string "latest", "earliest" or "pending"
        index - The transaction index position.
        Returns:
        KlayTransaction - A transaction object, or null when no transaction was found
      • getTransactionByHash

        public org.web3j.protocol.core.Request<?,​KlayTransaction> getTransactionByHash​(java.lang.String txHash)
        Deprecated.
        Description copied from interface: Klay
        Returns the information about a transaction requested by transaction hash.
        Specified by:
        getTransactionByHash in interface Klay
        Parameters:
        txHash - Hash of a transaction.
        Returns:
        KlayTransaction - A transaction object, or null when no transaction was found
      • getTransactionBySenderTxHash

        public org.web3j.protocol.core.Request<?,​KlayTransaction> getTransactionBySenderTxHash​(java.lang.String txHash)
        Deprecated.
        Description copied from interface: Klay
        Returns the information about a transaction requested by sender transaction hash. Please note that this API returns correct result only if indexing feature is enabled. This can be checked by call Klay.isSenderTxHashIndexingEnabled().
        Specified by:
        getTransactionBySenderTxHash in interface Klay
        Parameters:
        txHash - Hash of a transaction before signing of feePayer(senderTransactionHash)
        Returns:
        KlayTransaction - A transaction object, or null when no transaction was found
      • getTransactionReceipt

        public org.web3j.protocol.core.Request<?,​KlayTransactionReceipt> getTransactionReceipt​(java.lang.String transactionHash)
        Deprecated.
        Description copied from interface: Klay
        Returns the receipt of a transaction by transaction hash. NOTE: The receipt is not available for pending transactions.
        Specified by:
        getTransactionReceipt in interface Klay
        Parameters:
        transactionHash - Hash of a transaction
        Returns:
        KlayTransactionReceipt - A transaction receipt object, or null when no receipt was found
      • getTransactionReceiptBySenderTxHash

        public org.web3j.protocol.core.Request<?,​KlayTransactionReceipt> getTransactionReceiptBySenderTxHash​(java.lang.String transactionHash)
        Deprecated.
        Description copied from interface: Klay
        Returns the receipt of a transaction by sender transaction hash. NOTE: The receipt is not available for pending transactions. Please note that this API returns correct result only if indexing feature is enabled. This can be checked by call Klay.isSenderTxHashIndexingEnabled().
        Specified by:
        getTransactionReceiptBySenderTxHash in interface Klay
        Parameters:
        transactionHash - Hash of a transaction before signing of feePayer(senderTransactionHash).
        Returns:
        KlayTransactionReceipt - A transaction receipt object, or null when no receipt was found
      • sendSignedTransaction

        public org.web3j.protocol.core.Request<?,​Bytes32> sendSignedTransaction​(java.lang.String signedTransactionData)
        Deprecated.
        Description copied from interface: Klay
        Creates a new message call transaction or a contract creation for signed transactions.
        Specified by:
        sendSignedTransaction in interface Klay
        Parameters:
        signedTransactionData - The signed transaction data.
        Returns:
        Bytes32 - The transaction hash or the zero hash if the transaction is not yet available.
      • sendTransaction

        public org.web3j.protocol.core.Request<?,​Bytes32> sendTransaction​(KlayTransaction transaction)
        Deprecated.
        Description copied from interface: Klay
        Creates a new message call transaction or a contract creation if the data field contains code.
        Specified by:
        sendTransaction in interface Klay
        Parameters:
        transaction - KlayTransaction object
        Returns:
        Bytes32 - The transaction hash or the zero hash if the transaction is not yet available.
      • signTransaction

        public org.web3j.protocol.core.Request<?,​KlaySignTransaction> signTransaction​(KlayTransaction transaction)
        Deprecated.
        Description copied from interface: Klay
        Creates a rawTransaction based on the give transaction information. NOTE: The address to sign with must be unlocked.
        Specified by:
        signTransaction in interface Klay
        Parameters:
        transaction - KlayTransaction object
        Returns:
        KlaySignTransaction - Signed raw transaction and Transaction information including hash
      • getChainID

        public org.web3j.protocol.core.Request<?,​Quantity> getChainID()
        Deprecated.
        Description copied from interface: Klay
        Returns the chain ID of the chain.
        Specified by:
        getChainID in interface Klay
        Returns:
        Integer of the chain ID of the chain.
      • getClientVersion

        public org.web3j.protocol.core.Request<?,​Bytes> getClientVersion()
        Deprecated.
        Description copied from interface: Klay
        Returns the current client version of a Klaytn node.
        Specified by:
        getClientVersion in interface Klay
        Returns:
        Bytes The current client version of a Klaytn node.
      • getGasPrice

        public org.web3j.protocol.core.Request<?,​Quantity> getGasPrice()
        Deprecated.
        Description copied from interface: Klay
        Returns the current price per gas 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.
        Specified by:
        getGasPrice in interface Klay
        Returns:
        Quantity - Integer of the current gas price in peb.
      • getGasPriceAt

        public org.web3j.protocol.core.Request<?,​Quantity> getGasPriceAt​(org.web3j.protocol.core.DefaultBlockParameter defaultBlockParameter)
        Deprecated.
        Description copied from interface: Klay
        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.
        Specified by:
        getGasPriceAt in interface Klay
        Parameters:
        defaultBlockParameter - Integer block number, or the string "latest", "earliest" or "pending"
        Returns:
        Quantity - Integer of the current gas price in peb.
      • isParallelDBWrite

        public org.web3j.protocol.core.Request<?,​Boolean> isParallelDBWrite()
        Deprecated.
        Description copied from interface: Klay
        Returns true if the node is writing blockchain data in parallel manner. It is enabled by default.
        Specified by:
        isParallelDBWrite in interface Klay
        Returns:
        Boolean - true means the node is writing blockchain data in parallel manner. It is false if the node is writing the data in serial manner.
      • isSenderTxHashIndexingEnabled

        public org.web3j.protocol.core.Request<?,​Boolean> isSenderTxHashIndexingEnabled()
        Deprecated.
        Description copied from interface: Klay
        Returns true if the node is indexing sender transaction hash to transaction hash mapping information. It is disabled by default.
        Specified by:
        isSenderTxHashIndexingEnabled in interface Klay
        Returns:
        true means the node is indexing sender transaction hash to transaction hash mapping information.
      • getProtocolVersion

        public org.web3j.protocol.core.Request<?,​Bytes> getProtocolVersion()
        Deprecated.
        Description copied from interface: Klay
        Returns the Klaytn protocol version of the node.
        Specified by:
        getProtocolVersion in interface Klay
        Returns:
        Bytes - The Klaytn protocol version of the node.
      • getRewardbase

        public org.web3j.protocol.core.Request<?,​Bytes20> getRewardbase()
        Deprecated.
        Description copied from interface: Klay
        Returns the rewardbase of the current node. Rewardbase is the address of the account where the block rewards goes to. It is only required for CNs.
        Specified by:
        getRewardbase in interface Klay
        Returns:
        Bytes20 - Address
      • getFilterChanges

        public org.web3j.protocol.core.Request<?,​KlayLogs> getFilterChanges​(java.math.BigInteger filterId)
        Deprecated.
        Description copied from interface: Klay
        Polling method for a filter, which returns an array of logs which occurred since last poll.
        Specified by:
        getFilterChanges in interface Klay
        Parameters:
        filterId - A filter id
        Returns:
        KlayLogs - Array of log objects, or an empty array if nothing has changed since last poll.
      • getFilterLogs

        public org.web3j.protocol.core.Request<?,​KlayLogs> getFilterLogs​(java.math.BigInteger filterId)
        Deprecated.
        Description copied from interface: Klay
        Returns an array of all logs matching filter with given id, which has been obtained using Klay.newFilter(KlayFilter). Note that filter ids returned by other filter creation functions, such as Klay.newBlockFilter() or Klay.newPendingTransactionFilter(), cannot be used with this function.
        Specified by:
        getFilterLogs in interface Klay
        Parameters:
        filterId - A filter id
        Returns:
        KlayLogs - Array of log objects, or an empty array if nothing has changed since last poll.
      • getLogs

        public org.web3j.protocol.core.Request<?,​KlayLogs> getLogs​(KlayLogFilter filter)
        Deprecated.
        Description copied from interface: Klay
        Returns an array of all logs matching a given filter object.
        Specified by:
        getLogs in interface Klay
        Parameters:
        filter - KlayLogFilter
        Returns:
        KlayLogs - Array of log objects, or an empty array if nothing has changed since last poll.
      • newBlockFilter

        public org.web3j.protocol.core.Request<?,​Quantity> newBlockFilter()
        Deprecated.
        Description copied from interface: Klay
        Creates a filter in the node, to notify when a new block arrives. To check if the state has changed, call Klay.getFilterChanges(BigInteger)
        Specified by:
        newBlockFilter in interface Klay
        Returns:
        Quantity - A filter id
      • newPendingTransactionFilter

        public org.web3j.protocol.core.Request<?,​Quantity> newPendingTransactionFilter()
        Deprecated.
        Description copied from interface: Klay
        Creates a filter in the node, to notify when new pending transactions arrive. To check if the state has changed, call Klay.getFilterChanges(BigInteger)
        Specified by:
        newPendingTransactionFilter in interface Klay
        Returns:
        Quantity - A filter id
      • uninstallFilter

        public org.web3j.protocol.core.Request<?,​Boolean> uninstallFilter​(java.math.BigInteger filterId)
        Deprecated.
        Description copied from interface: Klay
        Uninstalls a filter with given id. Should always be called when watch is no longer needed. Additionally, filters timeout when they are not requested with Klay.getFilterChanges(BigInteger) for a period of time.
        Specified by:
        uninstallFilter in interface Klay
        Parameters:
        filterId - A filter id
        Returns:
        Boolean - true if the filter was successfully uninstalled, otherwise false.
      • getSha3

        public org.web3j.protocol.core.Request<?,​Bytes> getSha3​(java.lang.String data)
        Deprecated.
        Description copied from interface: Klay
        Returns Keccak-256 (not the standardized SHA3-256) of the given data.
        Specified by:
        getSha3 in interface Klay
        Parameters:
        data - The data to convert into a SHA3 hash.
        Returns:
        Bytes The SHA3 result of the given data.
      • newAccount

        public org.web3j.protocol.core.Request<?,​org.web3j.protocol.admin.methods.response.NewAccountIdentifier> newAccount​(java.lang.String passphrase)
        Deprecated.
        Specified by:
        newAccount in interface Klay
      • unlockAccount

        public 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.
        Specified by:
        unlockAccount in interface Klay
      • lockAccount

        public org.web3j.protocol.core.Request<?,​Boolean> lockAccount​(java.lang.String address)
        Deprecated.
        Specified by:
        lockAccount in interface Klay
      • importRawKey

        public org.web3j.protocol.core.Request<?,​Bytes20> importRawKey()
        Deprecated.
        Specified by:
        importRawKey in interface Klay