sui_devInspectMoveCall
Similar to `dev_inspect_transaction` but do not require gas object and budget
sender_address
:<SuiAddress>
- the caller's Sui addresspackage_object_id
:<ObjectID>
- the Move package ID, e.g. `0x2`module
:<string>
- the Move module name, e.g. `devnet_nft`function
:<string>
- the move function name, e.g. `mint`type_arguments
:<[TypeTag]>
- the type arguments of the Move functionarguments
:<[SuiJsonValue]>
- the arguments to be passed into the Move function, in <a href="https://docs.sui.io/build/sui-json">SuiJson</a> formatepoch
:<uint64>
- The epoch to perform the call. Will be set from the system state object if not provided
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 usable as transactions, so it might not be possible to generate these effects from a normal transaction. - 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
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_devInspectMoveCall",
"params": [
"0x9b07815f04497e2e05d22cac3aa061410b20868c",
"0x0000000000000000000000000000000000000002",
"devnet_nft",
"mint",
[],
[
"Example NFT",
"An NFT created by the Sui Command Line Tool",
"ipfs://bafkreibngqhl3gaa7daob4i2vccziay2jjlp435cf66vhono7nrvww53ty"
]
]
}'
Result
{
"jsonrpc": "2.0",
"result": {
"effects": {
"status": {
"status": "success"
},
"gasUsed": {
"computationCost": 366,
"storageCost": 0,
"storageRebate": 0
},
"transactionDigest": "8QHhBK32aSJLxxKPD2qKn1kDDnNvXnVtJN3qNC8Mibmt",
"created": [
{
"owner": {
"AddressOwner": "0x9b07815f04497e2e05d22cac3aa061410b20868c"
},
"reference": {
"objectId": "0xfec33b0ad813bb03e009e1a8f9196d8defe51047",
"version": 1,
"digest": "ZMUqSmg1DVR+DewBS2prFD7HsDrONQMgvIf0nxEv9D0="
}
}
],
"gasObject": {
"owner": {
"AddressOwner": "0x0000000000000000000000000000000000000000"
},
"reference": {
"objectId": "0x0000000000000000000000000000000000000000",
"version": 0,
"digest": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="
}
},
"events": [
{
"newObject": {
"packageId": "0x0000000000000000000000000000000000000002",
"transactionModule": "devnet_nft",
"sender": "0x9b07815f04497e2e05d22cac3aa061410b20868c",
"recipient": {
"AddressOwner": "0x9b07815f04497e2e05d22cac3aa061410b20868c"
},
"objectType": "0x2::devnet_nft::DevNetNFT",
"objectId": "0xfec33b0ad813bb03e009e1a8f9196d8defe51047",
"version": 1
}
},
{
"moveEvent": {
"packageId": "0x0000000000000000000000000000000000000002",
"transactionModule": "devnet_nft",
"sender": "0x9b07815f04497e2e05d22cac3aa061410b20868c",
"type": "0x2::devnet_nft::MintNFTEvent",
"fields": {
"creator": "0x9b07815f04497e2e05d22cac3aa061410b20868c",
"name": "Example NFT",
"object_id": "0xfec33b0ad813bb03e009e1a8f9196d8defe51047"
},
"bcs": "/sM7CtgTuwPgCeGo+Rltje/lEEebB4FfBEl+LgXSLKw6oGFBCyCGjAtFeGFtcGxlIE5GVA=="
}
}
]
},
"results": {
"Ok": [
[
0,
{}
]
]
}
},
"id": 1
}
Last modified 2mo ago