Interface Transaction.Builder

    • Method Detail

      • network

        Transaction.Builder network​(String network)

        The blockchain network where the transaction occurred.

        Parameters:
        network - The blockchain network where the transaction occurred.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        QueryNetwork, QueryNetwork
      • network

        Transaction.Builder network​(QueryNetwork network)

        The blockchain network where the transaction occurred.

        Parameters:
        network - The blockchain network where the transaction occurred.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        QueryNetwork, QueryNetwork
      • blockHash

        Transaction.Builder blockHash​(String blockHash)

        The block hash is a unique identifier for a block. It is a fixed-size string that is calculated by using the information in the block. The block hash is used to verify the integrity of the data in the block.

        Parameters:
        blockHash - The block hash is a unique identifier for a block. It is a fixed-size string that is calculated by using the information in the block. The block hash is used to verify the integrity of the data in the block.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • transactionHash

        Transaction.Builder transactionHash​(String transactionHash)

        The hash of the transaction. It is generated whenever a transaction is verified and added to the blockchain.

        Parameters:
        transactionHash - The hash of the transaction. It is generated whenever a transaction is verified and added to the blockchain.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • blockNumber

        Transaction.Builder blockNumber​(String blockNumber)

        The block number in which the transaction is recorded.

        Parameters:
        blockNumber - The block number in which the transaction is recorded.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • transactionTimestamp

        Transaction.Builder transactionTimestamp​(Instant transactionTimestamp)

        The Timestamp of the transaction.

        Parameters:
        transactionTimestamp - The Timestamp of the transaction.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • transactionIndex

        Transaction.Builder transactionIndex​(Long transactionIndex)

        The index of the transaction within a blockchain.

        Parameters:
        transactionIndex - The index of the transaction within a blockchain.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • numberOfTransactions

        Transaction.Builder numberOfTransactions​(Long numberOfTransactions)

        The number of transactions in the block.

        Parameters:
        numberOfTransactions - The number of transactions in the block.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • status

        @Deprecated
        Transaction.Builder status​(String status)
        Deprecated.
        The status field in the GetTransaction response is deprecated and is replaced with the confirmationStatus and executionStatus fields.

        The status of the transaction.

        This property is deprecated. You must use the confirmationStatus and the executionStatus properties to determine if the status of the transaction is FINAL or FAILED.

        • Transactions with a status of FINAL will now have the confirmationStatus set to FINAL and the executionStatus set to SUCCEEDED.

        • Transactions with a status of FAILED will now have the confirmationStatus set to FINAL and the executionStatus set to FAILED.

        Parameters:
        status - The status of the transaction.

        This property is deprecated. You must use the confirmationStatus and the executionStatus properties to determine if the status of the transaction is FINAL or FAILED.

        • Transactions with a status of FINAL will now have the confirmationStatus set to FINAL and the executionStatus set to SUCCEEDED.

        • Transactions with a status of FAILED will now have the confirmationStatus set to FINAL and the executionStatus set to FAILED.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        QueryTransactionStatus, QueryTransactionStatus
      • status

        @Deprecated
        Transaction.Builder status​(QueryTransactionStatus status)
        Deprecated.
        The status field in the GetTransaction response is deprecated and is replaced with the confirmationStatus and executionStatus fields.

        The status of the transaction.

        This property is deprecated. You must use the confirmationStatus and the executionStatus properties to determine if the status of the transaction is FINAL or FAILED.

        • Transactions with a status of FINAL will now have the confirmationStatus set to FINAL and the executionStatus set to SUCCEEDED.

        • Transactions with a status of FAILED will now have the confirmationStatus set to FINAL and the executionStatus set to FAILED.

        Parameters:
        status - The status of the transaction.

        This property is deprecated. You must use the confirmationStatus and the executionStatus properties to determine if the status of the transaction is FINAL or FAILED.

        • Transactions with a status of FINAL will now have the confirmationStatus set to FINAL and the executionStatus set to SUCCEEDED.

        • Transactions with a status of FAILED will now have the confirmationStatus set to FINAL and the executionStatus set to FAILED.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        QueryTransactionStatus, QueryTransactionStatus
      • to

        Transaction.Builder to​(String to)

        The identifier of the transaction. It is generated whenever a transaction is verified and added to the blockchain.

        Parameters:
        to - The identifier of the transaction. It is generated whenever a transaction is verified and added to the blockchain.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • from

        Transaction.Builder from​(String from)

        The initiator of the transaction. It is either in the form a public key or a contract address.

        Parameters:
        from - The initiator of the transaction. It is either in the form a public key or a contract address.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • contractAddress

        Transaction.Builder contractAddress​(String contractAddress)

        The blockchain address for the contract.

        Parameters:
        contractAddress - The blockchain address for the contract.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • gasUsed

        Transaction.Builder gasUsed​(String gasUsed)

        The amount of gas used for the transaction.

        Parameters:
        gasUsed - The amount of gas used for the transaction.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • cumulativeGasUsed

        Transaction.Builder cumulativeGasUsed​(String cumulativeGasUsed)

        The amount of gas used up to the specified point in the block.

        Parameters:
        cumulativeGasUsed - The amount of gas used up to the specified point in the block.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • effectiveGasPrice

        Transaction.Builder effectiveGasPrice​(String effectiveGasPrice)

        The effective gas price.

        Parameters:
        effectiveGasPrice - The effective gas price.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • signatureV

        Transaction.Builder signatureV​(Integer signatureV)

        The signature of the transaction. The Z coordinate of a point V.

        Parameters:
        signatureV - The signature of the transaction. The Z coordinate of a point V.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • signatureR

        Transaction.Builder signatureR​(String signatureR)

        The signature of the transaction. The X coordinate of a point R.

        Parameters:
        signatureR - The signature of the transaction. The X coordinate of a point R.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • signatureS

        Transaction.Builder signatureS​(String signatureS)

        The signature of the transaction. The Y coordinate of a point S.

        Parameters:
        signatureS - The signature of the transaction. The Y coordinate of a point S.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • transactionFee

        Transaction.Builder transactionFee​(String transactionFee)

        The transaction fee.

        Parameters:
        transactionFee - The transaction fee.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • transactionId

        Transaction.Builder transactionId​(String transactionId)

        The unique identifier of the transaction. It is generated whenever a transaction is verified and added to the blockchain.

        Parameters:
        transactionId - The unique identifier of the transaction. It is generated whenever a transaction is verified and added to the blockchain.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • confirmationStatus

        Transaction.Builder confirmationStatus​(String confirmationStatus)

        Specifies whether the transaction has reached Finality.

        Parameters:
        confirmationStatus - Specifies whether the transaction has reached Finality.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ConfirmationStatus, ConfirmationStatus
      • confirmationStatus

        Transaction.Builder confirmationStatus​(ConfirmationStatus confirmationStatus)

        Specifies whether the transaction has reached Finality.

        Parameters:
        confirmationStatus - Specifies whether the transaction has reached Finality.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ConfirmationStatus, ConfirmationStatus
      • executionStatus

        Transaction.Builder executionStatus​(String executionStatus)

        Identifies whether the transaction has succeeded or failed.

        Parameters:
        executionStatus - Identifies whether the transaction has succeeded or failed.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ExecutionStatus, ExecutionStatus
      • executionStatus

        Transaction.Builder executionStatus​(ExecutionStatus executionStatus)

        Identifies whether the transaction has succeeded or failed.

        Parameters:
        executionStatus - Identifies whether the transaction has succeeded or failed.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ExecutionStatus, ExecutionStatus