Package foundation.icon.icx.data
Class TransactionResult
- java.lang.Object
-
- foundation.icon.icx.data.TransactionResult
-
public class TransactionResult extends java.lang.Object
- See Also:
- ICON JSON-RPC API
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
TransactionResult.EventLog
static class
TransactionResult.Failure
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Bytes
getBlockHash()
java.math.BigInteger
getBlockHeight()
java.math.BigInteger
getCumulativeStepUsed()
java.util.List<TransactionResult.EventLog>
getEventLogs()
TransactionResult.Failure
getFailure()
java.lang.String
getLogsBloom()
RpcObject
getProperties()
java.lang.String
getScoreAddress()
java.math.BigInteger
getStatus()
java.math.BigInteger
getStepPrice()
java.math.BigInteger
getStepUsed()
RpcItem
getStepUsedDetails()
java.lang.String
getTo()
Bytes
getTxHash()
java.math.BigInteger
getTxIndex()
java.lang.String
toString()
-
-
-
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 classjava.lang.Object
-
-