java.lang.Object
java.lang.Record
software.sava.rpc.json.http.response.TxSimulation
public record TxSimulation(Context context, TransactionError error, List<String> logs, List<AccountInfo<byte[]>> accounts, List<InnerInstructions> innerInstructions, ReplacementBlockHash replacementBlockHash, OptionalInt unitsConsumed, software.sava.core.accounts.PublicKey programId, byte[] data)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionTxSimulation(Context context, TransactionError error, List<String> logs, List<AccountInfo<byte[]>> accounts, List<InnerInstructions> innerInstructions, ReplacementBlockHash replacementBlockHash, OptionalInt unitsConsumed, software.sava.core.accounts.PublicKey programId, byte[] data) Creates an instance of aTxSimulationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionList<AccountInfo<byte[]>> accounts()Returns the value of theaccountsrecord component.context()Returns the value of thecontextrecord component.byte[]data()Returns the value of thedatarecord component.final booleanIndicates whether some other object is "equal to" this one.error()Returns the value of theerrorrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theinnerInstructionsrecord component.logs()Returns the value of thelogsrecord component.static TxSimulationparse(SequencedCollection<software.sava.core.accounts.PublicKey> accounts, systems.comodal.jsoniter.JsonIterator ji, Context context) static TxSimulationparse(systems.comodal.jsoniter.JsonIterator ji) software.sava.core.accounts.PublicKeyReturns the value of theprogramIdrecord component.Returns the value of thereplacementBlockHashrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theunitsConsumedrecord component.
-
Constructor Details
-
TxSimulation
public TxSimulation(Context context, TransactionError error, List<String> logs, List<AccountInfo<byte[]>> accounts, List<InnerInstructions> innerInstructions, ReplacementBlockHash replacementBlockHash, OptionalInt unitsConsumed, software.sava.core.accounts.PublicKey programId, byte[] data) Creates an instance of aTxSimulationrecord class.- Parameters:
context- the value for thecontextrecord componenterror- the value for theerrorrecord componentlogs- the value for thelogsrecord componentaccounts- the value for theaccountsrecord componentinnerInstructions- the value for theinnerInstructionsrecord componentreplacementBlockHash- the value for thereplacementBlockHashrecord componentunitsConsumed- the value for theunitsConsumedrecord componentprogramId- the value for theprogramIdrecord componentdata- the value for thedatarecord component
-
-
Method Details
-
parse
public static TxSimulation parse(SequencedCollection<software.sava.core.accounts.PublicKey> accounts, systems.comodal.jsoniter.JsonIterator ji, Context context) -
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. All components in this record class are compared withObjects::equals(Object,Object). -
context
Returns the value of thecontextrecord component.- Returns:
- the value of the
contextrecord component
-
error
Returns the value of theerrorrecord component.- Returns:
- the value of the
errorrecord component
-
logs
Returns the value of thelogsrecord component.- Returns:
- the value of the
logsrecord component
-
accounts
Returns the value of theaccountsrecord component.- Returns:
- the value of the
accountsrecord component
-
innerInstructions
Returns the value of theinnerInstructionsrecord component.- Returns:
- the value of the
innerInstructionsrecord component
-
replacementBlockHash
Returns the value of thereplacementBlockHashrecord component.- Returns:
- the value of the
replacementBlockHashrecord component
-
unitsConsumed
Returns the value of theunitsConsumedrecord component.- Returns:
- the value of the
unitsConsumedrecord component
-
programId
public software.sava.core.accounts.PublicKey programId()Returns the value of theprogramIdrecord component.- Returns:
- the value of the
programIdrecord component
-
data
public byte[] data()Returns the value of thedatarecord component.- Returns:
- the value of the
datarecord component
-