TransactionExecutionService/SimulateTransaction - SUI
Example code for the TransactionExecutionService/SimulateTransaction gRPC method. Complete guide on how to use TransactionExecutionService/SimulateTransacti gRPC method in GetBlock Web3 documentation.
Request Fields
Field
Type
Required
Description
Request Example
# Clone the official proto files first (one-time setup):
# git clone https://github.com/MystenLabs/sui-apis.git && cd sui-apis
grpcurl \
-import-path proto \
-proto sui/rpc/v2/transaction_execution_service.proto \
-H "x-grpc-web: 1" \
-d '{
"transaction": {
"bcs": "AQAA..."
},
"read_mask": {
"paths": [
"effects.status",
"effects.gas_used",
"events"
]
}
}' \
go.getblock.io:443/<ACCESS-TOKEN> \
sui.rpc.v2.TransactionExecutionService/SimulateTransactionResponse Example
Response Fields
Field
Type
Description
Use Cases
Error Handling
Status Code
Numeric
Cause
SDK Integration
Was this helpful?