Skip to main content

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
Run in Playground

Response

The response structure is defined by the sui/rpc/v2/transaction_execution_service.proto definition.

Response Fields

FieldTypeDescription
transactionExecutedTransactionSee proto definition
command_outputsCommandResultSee proto definition
info

For full field definitions, please refer to the Sui Protobuf definitions.