java.lang.Object
java.lang.Record
software.sava.rpc.json.http.response.TxMeta
public record TxMeta(TransactionError error, int computeUnitsConsumed, long fee, List<Long> preBalances, List<Long> postBalances, List<TokenBalance> preTokenBalances, List<TokenBalance> postTokenBalances, List<TxInnerInstruction> innerInstructions, LoadedAddresses loadedAddresses, List<String> logMessages, List<TxReward> rewards)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionTxMeta(TransactionError error, int computeUnitsConsumed, long fee, List<Long> preBalances, List<Long> postBalances, List<TokenBalance> preTokenBalances, List<TokenBalance> postTokenBalances, List<TxInnerInstruction> innerInstructions, LoadedAddresses loadedAddresses, List<String> logMessages, List<TxReward> rewards) Creates an instance of aTxMetarecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thecomputeUnitsConsumedrecord component.final booleanIndicates whether some other object is "equal to" this one.error()Returns the value of theerrorrecord component.longfee()Returns the value of thefeerecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theinnerInstructionsrecord component.Returns the value of theloadedAddressesrecord component.Returns the value of thelogMessagesrecord component.static TxMetaparse(systems.comodal.jsoniter.JsonIterator ji) Returns the value of thepostBalancesrecord component.Returns the value of thepostTokenBalancesrecord component.Returns the value of thepreBalancesrecord component.Returns the value of thepreTokenBalancesrecord component.rewards()Returns the value of therewardsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TxMeta
public TxMeta(TransactionError error, int computeUnitsConsumed, long fee, List<Long> preBalances, List<Long> postBalances, List<TokenBalance> preTokenBalances, List<TokenBalance> postTokenBalances, List<TxInnerInstruction> innerInstructions, LoadedAddresses loadedAddresses, List<String> logMessages, List<TxReward> rewards) Creates an instance of aTxMetarecord class.- Parameters:
error- the value for theerrorrecord componentcomputeUnitsConsumed- the value for thecomputeUnitsConsumedrecord componentfee- the value for thefeerecord componentpreBalances- the value for thepreBalancesrecord componentpostBalances- the value for thepostBalancesrecord componentpreTokenBalances- the value for thepreTokenBalancesrecord componentpostTokenBalances- the value for thepostTokenBalancesrecord componentinnerInstructions- the value for theinnerInstructionsrecord componentloadedAddresses- the value for theloadedAddressesrecord componentlogMessages- the value for thelogMessagesrecord componentrewards- the value for therewardsrecord component
-
-
Method Details
-
parse
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
error
Returns the value of theerrorrecord component.- Returns:
- the value of the
errorrecord component
-
computeUnitsConsumed
public int computeUnitsConsumed()Returns the value of thecomputeUnitsConsumedrecord component.- Returns:
- the value of the
computeUnitsConsumedrecord component
-
fee
public long fee()Returns the value of thefeerecord component.- Returns:
- the value of the
feerecord component
-
preBalances
Returns the value of thepreBalancesrecord component.- Returns:
- the value of the
preBalancesrecord component
-
postBalances
Returns the value of thepostBalancesrecord component.- Returns:
- the value of the
postBalancesrecord component
-
preTokenBalances
Returns the value of thepreTokenBalancesrecord component.- Returns:
- the value of the
preTokenBalancesrecord component
-
postTokenBalances
Returns the value of thepostTokenBalancesrecord component.- Returns:
- the value of the
postTokenBalancesrecord component
-
innerInstructions
Returns the value of theinnerInstructionsrecord component.- Returns:
- the value of the
innerInstructionsrecord component
-
loadedAddresses
Returns the value of theloadedAddressesrecord component.- Returns:
- the value of the
loadedAddressesrecord component
-
logMessages
Returns the value of thelogMessagesrecord component.- Returns:
- the value of the
logMessagesrecord component
-
rewards
Returns the value of therewardsrecord component.- Returns:
- the value of the
rewardsrecord component
-