SimulateTransaction - Preview Transaction Effects
Simulate Sui transactions before execution to preview effects, gas costs, and potential errors via gRPC. Essential for safe transaction building with Dwellir.
Sui RPC endpoint: endpoint URLs, plans and pricing.
Simulate Sui transactions before execution to preview effects, gas costs, and potential errors via gRPC. Essential for safe transaction building with Dwellir.
Method Signature
- Service:
sui.rpc.v2.TransactionExecutionService - Method:
SimulateTransaction - Type: Unary RPC
grpcurl \
-H "x-api-key: YOUR_API_KEY" \
-d '{
"transaction": {
"bcs": {
"value": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA6AMAAAAAAAAA4fUFAAAAAAA="
}
},
"checks": "DISABLED",
"read_mask": {
"paths": [
"transaction.effects.status",
"transaction.digest",
"transaction.effects.gas_used"
]
}
}' \
api-sui-mainnet-full.n.dwellir.com:443 \
sui.rpc.v2.TransactionExecutionService/SimulateTransactionUsage notes
The example uses a synthetic empty transaction with checks: DISABLED for inspection. It does not submit a transaction. Use the default ENABLED checks when assessing execution validity. Put BCS bytes in transaction.bcs.value. Response masks start with transaction, for example transaction.effects.status.
Related resources
ListOwnedObjects
Query all objects owned by a Sui address via gRPC with pagination support. Essential for wallet interfaces, portfolio tracking, and asset discovery with Dwellir's infrastructure.
SubscribeCheckpoints
Stream finalized Sui checkpoints with the gRPC Subscription Service. Learn how field masks, server-side transaction filtering, and gap recovery work.