Class SimulateTransaction
- java.lang.Object
-
- com.algorand.algosdk.v2.client.common.Query
-
- com.algorand.algosdk.v2.client.algod.SimulateTransaction
-
public class SimulateTransaction extends Query
Simulates a raw transaction or transaction group as it would be evaluated on the network. The simulation will use blockchain state from the latest committed round. /v2/transactions/simulate
-
-
Constructor Summary
Constructors Constructor Description SimulateTransaction(Client client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Response<SimulateResponse>
execute()
Execute the query.Response<SimulateResponse>
execute(String[] headers, String[] values)
Execute the query with custom headers, there must be an equal number of keys and values or else an error will be generated.protected QueryData
getRequestString()
SimulateTransaction
request(SimulateRequest request)
The transactions to simulate, along with any other inputs.-
Methods inherited from class com.algorand.algosdk.v2.client.common.Query
addPathSegment, addQuery, addToBody, addToBody, baseExecute, baseExecute, getRequestMethod, getRequestUrl, getRequestUrl, resetPathSegment
-
-
-
-
Constructor Detail
-
SimulateTransaction
public SimulateTransaction(Client client)
-
-
Method Detail
-
request
public SimulateTransaction request(SimulateRequest request)
The transactions to simulate, along with any other inputs.
-
execute
public Response<SimulateResponse> execute() throws Exception
Execute the query.
-
execute
public Response<SimulateResponse> execute(String[] headers, String[] values) throws Exception
Execute the query with custom headers, there must be an equal number of keys and values or else an error will be generated.
-
getRequestString
protected QueryData getRequestString()
- Specified by:
getRequestString
in classQuery
-
-