Record Class TxMeta

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 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 a TxMeta record class.
      Parameters:
      error - the value for the error record component
      computeUnitsConsumed - the value for the computeUnitsConsumed record component
      fee - the value for the fee record component
      preBalances - the value for the preBalances record component
      postBalances - the value for the postBalances record component
      preTokenBalances - the value for the preTokenBalances record component
      postTokenBalances - the value for the postTokenBalances record component
      innerInstructions - the value for the innerInstructions record component
      loadedAddresses - the value for the loadedAddresses record component
      logMessages - the value for the logMessages record component
      rewards - the value for the rewards record component
  • Method Details

    • parse

      public static TxMeta parse(systems.comodal.jsoniter.JsonIterator ji)
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • error

      public TransactionError error()
      Returns the value of the error record component.
      Returns:
      the value of the error record component
    • computeUnitsConsumed

      public int computeUnitsConsumed()
      Returns the value of the computeUnitsConsumed record component.
      Returns:
      the value of the computeUnitsConsumed record component
    • fee

      public long fee()
      Returns the value of the fee record component.
      Returns:
      the value of the fee record component
    • preBalances

      public List<Long> preBalances()
      Returns the value of the preBalances record component.
      Returns:
      the value of the preBalances record component
    • postBalances

      public List<Long> postBalances()
      Returns the value of the postBalances record component.
      Returns:
      the value of the postBalances record component
    • preTokenBalances

      public List<TokenBalance> preTokenBalances()
      Returns the value of the preTokenBalances record component.
      Returns:
      the value of the preTokenBalances record component
    • postTokenBalances

      public List<TokenBalance> postTokenBalances()
      Returns the value of the postTokenBalances record component.
      Returns:
      the value of the postTokenBalances record component
    • innerInstructions

      public List<TxInnerInstruction> innerInstructions()
      Returns the value of the innerInstructions record component.
      Returns:
      the value of the innerInstructions record component
    • loadedAddresses

      public LoadedAddresses loadedAddresses()
      Returns the value of the loadedAddresses record component.
      Returns:
      the value of the loadedAddresses record component
    • logMessages

      public List<String> logMessages()
      Returns the value of the logMessages record component.
      Returns:
      the value of the logMessages record component
    • rewards

      public List<TxReward> rewards()
      Returns the value of the rewards record component.
      Returns:
      the value of the rewards record component