Skip to main content

sui_devInspectTransactionBlock RPC Method

Runs the transaction in dev-inspect mode. Which allows for nearly any transaction (or Move call) with any arguments. Detailed results are provided, including both the transaction effects and any return values.

Updated on
Dec 10, 2024

sui_devInspectTransactionBlock RPC Method

Parameters

sender_address
string
REQUIRED
The sender's address
tx_bytes
string
REQUIRED
The BCS encoded TransactionKind(as opposed to TransactionData, which include gasBudget and gasPrice)
gas_price
integer
The gas is not charged, but gas usage is still calculated. Default to use reference gas price
epoch
integer
The epoch to perform the call. Will be set from the system state object if not provided
additional_args
integer
Additional arguments including gas_budget, gas_objects, gas_sponsor and skip_checks

Returns

result
object
The result object containing transaction effects and events
effects
object
The effects object provides details about the outcome of a transaction
messageVersion
string
Version of the message used in the transaction
status
object
The status object describes the transaction's execution status
status
string
Execution status of the transaction, e.g., 'success' or 'failure'
executedEpoch
string
The epoch during which the transaction was executed
gasUsed
object
Details of the gas costs incurred during transaction execution
computationCost
string
Gas cost for computation performed during the transaction
storageCost
string
Gas cost for storage used during the transaction
storageRebate
string
Rebate received for storage costs, if applicable
nonRefundableStorageFee
string
Non-refundable portion of the storage fee
transactionDigest
string
Unique identifier for the transaction's digest
mutated
array
An array of mutated objects resulting from the transaction
owner
object
The new owner of the mutated object
AddressOwner
string
The address of the new owner
reference
object
The reference to the mutated object
objectId
string
Unique identifier of the mutated object
version
integer
Version number of the mutated object
digest
string
Digest of the mutated object, representing its state
gasObject
object
Details about the gas object used in the transaction
owner
object
The owner of the gas object after the transaction
ObjectOwner
string
The address of the owner of the gas object
reference
object
Reference to the gas object used in the transaction
objectId
string
Unique identifier of the gas object
version
integer
Version number of the gas object
digest
string
Digest of the gas object, representing its state
eventsDigest
string
Digest of the events associated with the transaction
events
array
An array containing details of events triggered by the transaction
Request
1
curl --location 'https://docs-demo.sui-mainnet.quiknode.pro/' \
2
--header 'Content-Type: application/json' \
3
--data '{
4
"jsonrpc": "2.0",
5
"id": 1,
6
"method": "sui_devInspectTransactionBlock",
7
"params": [
8
"SENDER_ADDRESS",
9
"YOUR_TX_BYTES",
10
1000,
11
8888,
12
null
13
]
14
}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free