Skip to main content

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.

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 transactions
  • events : <[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

curl 
--location --request POST 'https://sui-devnet.blastapi.io/<project_id>' \
--header 'Content-Type: application/json' \
--data-raw
'{
"jsonrpc": "2.0",
"id": 1,
"method": "sui_devInspectTransactionBlock",
"params": [
"0x8d59ac375d6bea13560d6ddcf33a3d6f45fa9f5b1be6819974242480b678711a",
"AAACACB7qR3cfnF89wjJNwYPBASHNuwz+xdG2Zml5YzVxnftgAEAT4LxyFh7mNZMAL+0bDhDvYv2zPp8ZahhOGmM0f3Kw9wCAAAAAAAAACCxDABG4pPAjOwPQHg9msS/SrtNf4IGR/2F0ZGD3ufH/wEBAQEBAAEAAGH7tbTzQqQL2/h/5KlGueONGM+P/HsAALl1F1x7apV2AejYx86GPzE9o9vZKoPvJtEouI/ma/JuDg0Jza9yfR2EAgAAAAAAAAAgzMqpegLMOpgEFnDhYJ23FOmFjJbp5GmFXxzzv9+X6GVh+7W080KkC9v4f+SpRrnjjRjPj/x7AAC5dRdce2qVdgoAAAAAAAAAAC0xAQAAAAAA",
"10",
"1"
]
}'