Class SimulateTransactionRequest
java.lang.Object
org.stellar.sdk.requests.sorobanrpc.SimulateTransactionRequest
Request for JSON-RPC method simulateTransaction.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic final class -
Constructor Summary
ConstructorsConstructorDescriptionSimulateTransactionRequest(String transaction, SimulateTransactionRequest.ResourceConfig resourceConfig, SimulateTransactionRequest.AuthMode authMode, boolean useUpgradedAuth) Creates a newSimulateTransactionRequestinstance. -
Method Summary
-
Constructor Details
-
SimulateTransactionRequest
public SimulateTransactionRequest(String transaction, SimulateTransactionRequest.ResourceConfig resourceConfig, SimulateTransactionRequest.AuthMode authMode, boolean useUpgradedAuth) Creates a newSimulateTransactionRequestinstance.- Parameters:
transaction-resourceConfig-authMode- Explicitly allows users to opt-in to non-root authorization in recording mode.Leaving this field unset will default to
SimulateTransactionRequest.AuthMode.ENFORCEif auth entries are present,SimulateTransactionRequest.AuthMode.RECORDotherwise.useUpgradedAuth- Whether simulation recordsADDRESS_V2("upgraded") authorization credentials (CAP-71) instead of the legacyADDRESScredentials. This maps to theuseUpgradedAuthflag introduced in Stellar RPC v27.1.0, and is always sent in the request. It only affects the recording auth modes and is silently ignored by RPC servers (or protocol versions) that cannot emitADDRESS_V2. Transitional: once the network returnsADDRESS_V2credentials by default (protocol 28), it becomes a no-op.
-
-
Method Details
-
getTransaction
-
getResourceConfig
-
getAuthMode
Explicitly allows users to opt-in to non-root authorization in recording mode.Leaving this field unset will default to
SimulateTransactionRequest.AuthMode.ENFORCEif auth entries are present,SimulateTransactionRequest.AuthMode.RECORDotherwise. -
isUseUpgradedAuth
public boolean isUseUpgradedAuth()Whether simulation recordsADDRESS_V2("upgraded") authorization credentials (CAP-71) instead of the legacyADDRESScredentials. This maps to theuseUpgradedAuthflag introduced in Stellar RPC v27.1.0, and is always sent in the request. It only affects the recording auth modes and is silently ignored by RPC servers (or protocol versions) that cannot emitADDRESS_V2. Transitional: once the network returnsADDRESS_V2credentials by default (protocol 28), it becomes a no-op. -
equals
-
hashCode
public int hashCode() -
toString
-