sui_devInspectTransactionBlock
Runs the transaction in dev-inspect mode. Which allows for nearly any transaction with any arguments. Detailed results are provided, including both the transaction effects and any return values.
Parameters
sender_address
:<SuiAddress>
tx_bytes
:<Base64>
- BCS encoded TransactionKind(as opposed to TransactionData, which include gasBudget and gasPrice)gas_price
:<BigInt_for_uint64>
- Gas is not charged, but gas usage is still calculated. Default to use reference gas price.epoch
:<uint64>
- The epoch to perform the call. Will be set from the system state object if not provided
Returns
DevInspectResults
: <DevInspectResults>
effects :
<[TransactionEffects]>
- Summary of effects that likely would be generated if the transaction is actually run. Note however, that not all dev-inspect transactions are actually usable as transactions so it might not be possible actually generate these effects from a normal transaction.error :
<string,null>
- Execution error from executing the transactionsevents :
<[Event]>
- Events that likely would be generated if the transaction is actually run.results :
<[Result_of_Array_of_Tuple_of_uint_and_SuiExecutionResult_or_String]>
- Execution results (including return values) from executing the transactions Currently contains only return values from Move calls
Example Request and Result for sui_devInspectTransactionBlock
Request
Last updated