Class TransactionResult


  • public class TransactionResult
    extends java.lang.Object
    See Also:
    ICON JSON-RPC API
    • Method Detail

      • getProperties

        public RpcObject getProperties()
      • getStatus

        public java.math.BigInteger getStatus()
        Returns:
        1 on success, 0 on failure.
      • getTo

        public java.lang.String getTo()
        Returns:
        Recipient address of the transaction
      • getTxHash

        public Bytes getTxHash()
        Returns:
        Transaction hash
      • getTxIndex

        public java.math.BigInteger getTxIndex()
        Returns:
        Transaction index in the block
      • getBlockHeight

        public java.math.BigInteger getBlockHeight()
        Returns:
        Height of the block that includes the transaction
      • getBlockHash

        public Bytes getBlockHash()
        Returns:
        Hash of the block that includes the transaction
      • getCumulativeStepUsed

        public java.math.BigInteger getCumulativeStepUsed()
        Returns:
        Sum of stepUsed by this transaction and all preceding transactions in the same block
      • getStepUsed

        public java.math.BigInteger getStepUsed()
        Returns:
        The amount of step used by this transaction
      • getStepUsedDetails

        public RpcItem getStepUsedDetails()
        Returns:
        List of accounts that paid fees for this transaction
        Since:
        0.9.13
      • getStepPrice

        public java.math.BigInteger getStepPrice()
        Returns:
        The step price used by this transaction
      • getScoreAddress

        public java.lang.String getScoreAddress()
        Returns:
        SCORE address if the transaction created a new SCORE
      • getLogsBloom

        public java.lang.String getLogsBloom()
        Returns:
        Bloom filter to quickly retrieve related eventlogs
      • getEventLogs

        public java.util.List<TransactionResult.EventLog> getEventLogs()
        Returns:
        List of event logs that this transaction generated
      • getFailure

        public TransactionResult.Failure getFailure()
        Returns:
        This field exists when status is 0. Contains code(str) and message(str).
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object