Simulate Transaction
Simulate transactions with standard checks via TransactionExecutionService/SimulateTransaction. Validates gas, signatures, and execution without committing state.
Service
sui.rpc.v2.TransactionExecutionService
Parity
Direct
This method has a direct mapping from the JSON-RPC method sui_dryRunTransactionBlock.
Request
Parameters
{
"transaction": {
"bcs": "..."
}
}
Example (grpcurl)
grpcurl -H "x-api-key: YOUR_API_KEY" \
-d '{"transaction":{"bcs":"..."}}' \
grpc.surflux.dev:443 \
sui.rpc.v2.TransactionExecutionService/SimulateTransaction
Response
The response structure is defined by the sui/rpc/v2/transaction_execution_service.proto definition.
Response Fields
| Field | Type | Description |
|---|---|---|
transaction | ExecutedTransaction | See proto definition |
command_outputs | CommandResult | See proto definition |
info
For full field definitions, please refer to the Sui Protobuf definitions.