Interface Klay

  • All Known Implementing Classes:
    JsonRpc2_0Klay

    @Deprecated
    public interface Klay
    Deprecated.
    Please use Klay instead.
    See Also:
    RPC
    • Method Summary

      All Methods Instance Methods Abstract 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 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.
       
    • Method Detail

      • isAccountCreated

        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. It returns false otherwise.
        Parameters:
        address - address
        defaultBlockParameter - Integer block number, or the string "latest", "earliest" or "pending"
        Returns:
        Boolean - The existence of an input address
      • getAccounts

        org.web3j.protocol.core.Request<?,​Addresses> getAccounts()
        Deprecated.
        Returns a list of addresses owned by client.
        Returns:
        Addresses - Addresses owned by the client.
      • getAccount

        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. There are three different account types in Klaytn: Legacy Account, Externally Owned Account (EOA), and Smart Contract Account. See Klaytn IAccountType.
        Parameters:
        address - Address
        defaultBlockParameter - Integer block number, or the string "latest", "earliest" or "pending"
        Returns:
        KlayAccount - Each account type has different attributes.
      • getAccountKey

        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. 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.
        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

        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.
        Parameters:
        address - address
        defaultBlockParameter - Integer block number, or the string "latest", "earliest" or "pending"
        Returns:
        Quantity - Integer of the current balance in peb.
      • getCode

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

        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.
        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

        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. It returns false if the account is an EOA or a smart contract account which doesn't have codeHash.
        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

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

        org.web3j.protocol.core.Request<?,​Quantity> getBlockNumber()
        Deprecated.
        Returns the number of most recent block.
        Returns:
        Quantity - Integer of the current block number the client is on.
      • getBlockByNumber

        org.web3j.protocol.core.Request<?,​KlayBlock> getBlockByNumber​(org.web3j.protocol.core.DefaultBlockParameter defaultBlockParameter,
                                                                            boolean isFullTransaction)
        Deprecated.
        Returns information about a block by block number.
        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

        org.web3j.protocol.core.Request<?,​KlayBlock> getBlockByHash​(java.lang.String blockHash,
                                                                          boolean isFullTransaction)
        Deprecated.
        Returns information about a block by hash.
        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

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

        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.
        Parameters:
        defaultBlockParameter - Integer block number, or the string "latest", "earliest" or "pending"
        Returns:
        Quantity - Integer of the number of transactions in this block.
      • getTransactionCountByHash

        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.
        Parameters:
        blockHash - Hash of a block
        Returns:
        Quantity - Integer of the number of transactions in this block.
      • getBlockWithConsensusInfoByHash

        org.web3j.protocol.core.Request<?,​KlayBlockWithConsensusInfo> getBlockWithConsensusInfoByHash​(java.lang.String blockHash)
        Deprecated.
        Returns a block with consensus information matched by the given hash.
        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

        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.
        Parameters:
        blockParameter - 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

        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. If the parameter is not set, returns a list of all validators in the committee at the latest block.
        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

        org.web3j.protocol.core.Request<?,​Quantity> getCommitteeSize​(org.web3j.protocol.core.DefaultBlockParameter defaultBlockParameter)
        Deprecated.
        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.
        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

        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. If the parameter is not set, returns a list of all validators of the council at the latest block.
        Parameters:
        defaultBlockParameter - (optional) Integer of a block number, or the string "earliest" or "latest".
        Returns:
        Addresses - Addresses of all validators of the council.
      • getCouncilSize

        org.web3j.protocol.core.Request<?,​Quantity> getCouncilSize​(org.web3j.protocol.core.DefaultBlockParameter defaultBlockParameter)
        Deprecated.
        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.
        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

        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.
        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

        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").
        Returns:
        Work - Array with three 32-bytes DATA
      • isMining

        org.web3j.protocol.core.Request<?,​Boolean> isMining()
        Deprecated.
        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.
        Returns:
        Boolean - true if the client is mining, otherwise false.
      • isSyncing

        org.web3j.protocol.core.Request<?,​KlaySyncing> isSyncing()
        Deprecated.
        Returns an object with data about the sync status or false.
        Returns:
        KlaySyncing - an object with sync status data or false when not syncing
      • call

        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. It returns data or an error object of JSON RPC if error occurs.
        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

        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. 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.
        Parameters:
        callObject - The transaction call object. See the the CallObject's properties.
        Returns:
        Quantity - The amount of gas used.
      • estimateComputationCost

        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. 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.
        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

        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.
        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

        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.
        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

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

        org.web3j.protocol.core.Request<?,​KlayTransaction> getTransactionBySenderTxHash​(java.lang.String txHash)
        Deprecated.
        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 isSenderTxHashIndexingEnabled().
        Parameters:
        txHash - Hash of a transaction before signing of feePayer(senderTransactionHash)
        Returns:
        KlayTransaction - A transaction object, or null when no transaction was found
      • getTransactionReceipt

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

        org.web3j.protocol.core.Request<?,​KlayTransactionReceipt> getTransactionReceiptBySenderTxHash​(java.lang.String transactionHash)
        Deprecated.
        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 isSenderTxHashIndexingEnabled().
        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

        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.
        Parameters:
        signedTransactionData - The signed transaction data.
        Returns:
        Bytes32 - The transaction hash or the zero hash if the transaction is not yet available.
      • sendTransaction

        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.
        Parameters:
        transaction - KlayTransaction object
        Returns:
        Bytes32 - The transaction hash or the zero hash if the transaction is not yet available.
      • signTransaction

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

        org.web3j.protocol.core.Request<?,​Quantity> getChainID()
        Deprecated.
        Returns the chain ID of the chain.
        Returns:
        Integer of the chain ID of the chain.
      • getClientVersion

        org.web3j.protocol.core.Request<?,​Bytes> getClientVersion()
        Deprecated.
        Returns the current client version of a Klaytn node.
        Returns:
        Bytes The current client version of a Klaytn node.
      • getGasPrice

        org.web3j.protocol.core.Request<?,​Quantity> getGasPrice()
        Deprecated.
        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.
        Returns:
        Quantity - Integer of the current gas price in peb.
      • getGasPriceAt

        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.
        Parameters:
        defaultBlockParameter - Integer block number, or the string "latest", "earliest" or "pending"
        Returns:
        Quantity - Integer of the current gas price in peb.
      • isParallelDBWrite

        org.web3j.protocol.core.Request<?,​Boolean> isParallelDBWrite()
        Deprecated.
        Returns true if the node is writing blockchain data in parallel manner. It is enabled by default.
        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

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

        org.web3j.protocol.core.Request<?,​Bytes> getProtocolVersion()
        Deprecated.
        Returns the Klaytn protocol version of the node.
        Returns:
        Bytes - The Klaytn protocol version of the node.
      • getRewardbase

        org.web3j.protocol.core.Request<?,​Bytes20> getRewardbase()
        Deprecated.
        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.
        Returns:
        Bytes20 - Address
      • getFilterChanges

        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.
        Parameters:
        filterId - A filter id
        Returns:
        KlayLogs - Array of log objects, or an empty array if nothing has changed since last poll.
      • getFilterLogs

        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). Note that filter ids returned by other filter creation functions, such as newBlockFilter() or newPendingTransactionFilter(), cannot be used with this function.
        Parameters:
        filterId - A filter id
        Returns:
        KlayLogs - Array of log objects, or an empty array if nothing has changed since last poll.
      • getLogs

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

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

        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). To check if the state has changed, call klay_getFilterChanges(BigInteger). To obtain all logs matching the filter created by klay_newFilter, call getFilterLogs(BigInteger).
        Parameters:
        filter - KlayLogFilter
        Returns:
        Quantity - A filter id
      • newPendingTransactionFilter

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

        org.web3j.protocol.core.Request<?,​Boolean> uninstallFilter​(java.math.BigInteger filterId)
        Deprecated.
        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 getFilterChanges(BigInteger) for a period of time.
        Parameters:
        filterId - A filter id
        Returns:
        Boolean - true if the filter was successfully uninstalled, otherwise false.
      • getSha3

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

        org.web3j.protocol.core.Request<?,​org.web3j.protocol.admin.methods.response.NewAccountIdentifier> newAccount​(java.lang.String passphrase)
        Deprecated.
      • unlockAccount

        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.
      • lockAccount

        org.web3j.protocol.core.Request<?,​Boolean> lockAccount​(java.lang.String address)
        Deprecated.
      • importRawKey

        org.web3j.protocol.core.Request<?,​Bytes20> importRawKey()
        Deprecated.