Skip to main content

sui_getTransactionBlock

Return the transaction response object.

Return the transaction response object.

Parameters

  • digest : <TransactionDigest> - the digest of the queried transaction
  • options : <TransactionBlockResponseOptions> - options for specifying the content to be returned

Returns

  • SuiTransactionBlockResponse : <TransactionBlockResponse>

Example Request and Result for sui_getTransactionBlock

Request

curl --location 'https://sui-testnet.blastapi.io/<project-id>' \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"id": 1,
"method": "sui_getTransactionBlock",
"params": [
"4gJLfT5fEXBFB3SVKBqeuheFM7depHVKbLpjngoAVXrX",
{
"showInput": true,
"showRawInput": false,
"showEffects": true,
"showEvents": true,
"showObjectChanges": false,
"showBalanceChanges": false
}
]
}'

Result:

{
"jsonrpc": "2.0",
"result": {
"digest": "4gJLfT5fEXBFB3SVKBqeuheFM7depHVKbLpjngoAVXrX",
"transaction": {
"data": {
"messageVersion": "v1",
"transaction": {
"kind": "ProgrammableTransaction",
"inputs": [
{
"type": "pure",
"valueType": "u64",
"value": "500000000"
},
{
"type": "object",
"objectType": "sharedObject",
"objectId": "0x7ab8d6a33cc59f9d426f6f40edc727b6fa57b341c165b465dd2a6ca1c49adc5a",
"initialSharedVersion": "3822520",
"mutable": true
},
{
"type": "object",
"objectType": "sharedObject",
"objectId": "0x0000000000000000000000000000000000000000000000000000000000000006",
"initialSharedVersion": "1",
"mutable": false
},
{
"type": "pure",
"valueType": "0x1::string::String",
"value": "Sudan"
},
{
"type": "pure",
"valueType": "address",
"value": "0xdd944d0d5418aeb64ceeda8b57d7481f1e03d10bca3595d17bf12bc78bd3fa98"
}
],
"transactions": [
{
"SplitCoins": [
"GasCoin",
[
{
"Input": 0
}
]
]
},
{
"MoveCall": {
"package": "0x3dcfc5338d8358450b145629c985a9d6cb20f9c0ab6667e328e152cdfd8022cd",
"module": "genesis",
"function": "mint",
"type_arguments": [
"0x3dcfc5338d8358450b145629c985a9d6cb20f9c0ab6667e328e152cdfd8022cd::capy::Capy"
],
"arguments": [
{
"Input": 1
},
{
"Input": 2
},
{
"Input": 3
},
{
"Result": 0
}
]
}
},
{
"TransferObjects": [
[
{
"Result": 0
},
{
"Result": 1
}
],
{
"Input": 4
}
]
}
]
},
"sender": "0xdd944d0d5418aeb64ceeda8b57d7481f1e03d10bca3595d17bf12bc78bd3fa98",
"gasData": {
"payment": [
{
"objectId": "0x125d701cc584f5aba71a1f73c52b0ef08493f1ac9801e8e6d9f0f5c1cc1bcfc4",
"version": 3028964,
"digest": "J84wX633zV1cH27r2CQYzig7FDs5TejgQoYuqjXsCNJB"
}
],
"owner": "0xdd944d0d5418aeb64ceeda8b57d7481f1e03d10bca3595d17bf12bc78bd3fa98",
"price": "1000",
"budget": "29054000"
}
},
"txSignatures": [
"ALzFr4mprUVr3vvS2I6+O0+wPFceI96jyoQ3La8sm+ao/2FYxo+psedWexrx162XwlNdGHDOZd6/ljri8PphIwkdBp+hHjp8jvapxJG4uGtmiuEiJ2wA8xvs90ghyT8X5w=="
]
},
"effects": {
"messageVersion": "v1",
"status": {
"status": "success"
},
"executedEpoch": "764",
"gasUsed": {
"computationCost": "20000000",
"storageCost": "9021200",
"storageRebate": "5387184",
"nonRefundableStorageFee": "54416"
},
"modifiedAtVersions": [
{
"objectId": "0x125d701cc584f5aba71a1f73c52b0ef08493f1ac9801e8e6d9f0f5c1cc1bcfc4",
"sequenceNumber": "3028964"
},
{
"objectId": "0x7ab8d6a33cc59f9d426f6f40edc727b6fa57b341c165b465dd2a6ca1c49adc5a",
"sequenceNumber": "8241434"
},
{
"objectId": "0x7d136b6b7b6be9799e1a8f86b104a041805325e97364bfc5a3b89df803c3b2ce",
"sequenceNumber": "8241434"
}
],
"sharedObjects": [
{
"objectId": "0x7ab8d6a33cc59f9d426f6f40edc727b6fa57b341c165b465dd2a6ca1c49adc5a",
"version": 8241434,
"digest": "91UqxtRWPxGU4rseBxK7VGeVkqQwttRG9NVcKFC1Xf52"
},
{
"objectId": "0x0000000000000000000000000000000000000000000000000000000000000006",
"version": 1772464,
"digest": "7WGqVVtrJb11EdUGF8bX5qpHsT7Hv3j29299L8Am7tMk"
}
],
"transactionDigest": "4gJLfT5fEXBFB3SVKBqeuheFM7depHVKbLpjngoAVXrX",
"created": [
{
"owner": {
"AddressOwner": "0xdd944d0d5418aeb64ceeda8b57d7481f1e03d10bca3595d17bf12bc78bd3fa98"
},
"reference": {
"objectId": "0x93d251e44a16912903f49e6d697c158e303d61dee6803db95299717c6dd31c17",
"version": 8241435,
"digest": "CXWTFieaaFMHm3TVy5VMRUWkwP8Km6aokkMRFZBgXjjD"
}
},
{
"owner": {
"AddressOwner": "0xdd944d0d5418aeb64ceeda8b57d7481f1e03d10bca3595d17bf12bc78bd3fa98"
},
"reference": {
"objectId": "0xcf0aa7cd2cece63b30c88adbdffb12d64b270468d1cc7f60ba1a36fc02e847d6",
"version": 8241435,
"digest": "BZisz71X46LMbAoEBYwtjVQ7UaHk68QKUgWNveRsN1Vn"
}
}
],
"mutated": [
{
"owner": {
"AddressOwner": "0xdd944d0d5418aeb64ceeda8b57d7481f1e03d10bca3595d17bf12bc78bd3fa98"
},
"reference": {
"objectId": "0x125d701cc584f5aba71a1f73c52b0ef08493f1ac9801e8e6d9f0f5c1cc1bcfc4",
"version": 8241435,
"digest": "FkzYC7YoJZ1jDHszxVYeSYoqss5jkHwrCmWXcLhq4y5W"
}
},
{
"owner": {
"Shared": {
"initial_shared_version": 3822520
}
},
"reference": {
"objectId": "0x7ab8d6a33cc59f9d426f6f40edc727b6fa57b341c165b465dd2a6ca1c49adc5a",
"version": 8241435,
"digest": "J3WuVpHzWNiWRPqiEBn6Q6ZQgLnYKDhq9biYhVRe7Lt6"
}
},
{
"owner": {
"ObjectOwner": "0x7ab8d6a33cc59f9d426f6f40edc727b6fa57b341c165b465dd2a6ca1c49adc5a"
},
"reference": {
"objectId": "0x7d136b6b7b6be9799e1a8f86b104a041805325e97364bfc5a3b89df803c3b2ce",
"version": 8241435,
"digest": "EDVPwjXAKjFj2e73g4k6kjWvtCnUPMu262eSTFtqUomu"
}
}
],
"gasObject": {
"owner": {
"AddressOwner": "0xdd944d0d5418aeb64ceeda8b57d7481f1e03d10bca3595d17bf12bc78bd3fa98"
},
"reference": {
"objectId": "0x125d701cc584f5aba71a1f73c52b0ef08493f1ac9801e8e6d9f0f5c1cc1bcfc4",
"version": 8241435,
"digest": "FkzYC7YoJZ1jDHszxVYeSYoqss5jkHwrCmWXcLhq4y5W"
}
},
"eventsDigest": "F8tJLfiA6Kor7zJHpbwLAunF2DQ8A6i5J7P9adncRKke",
"dependencies": [
"3KNe9fv8jxeCkvte2tHwb23TMo785DPk9oDJyeC6GunQ",
"B24yUyHtd3zq6BnUdsGJofdRy52z4nQSqRyWxviVB6Rc",
"CugmkQWTYxiRA1KqnL8Mr96vDfAQJ9X4hhCUjfRbeECy",
"Hz6kaDRb3mY4Z5NegSVTAVUnVpabWhq1H2sNY8imcWV3"
]
},
"events": [
{
"id": {
"txDigest": "4gJLfT5fEXBFB3SVKBqeuheFM7depHVKbLpjngoAVXrX",
"eventSeq": "0"
},
"packageId": "0x3dcfc5338d8358450b145629c985a9d6cb20f9c0ab6667e328e152cdfd8022cd",
"transactionModule": "genesis",
"sender": "0xdd944d0d5418aeb64ceeda8b57d7481f1e03d10bca3595d17bf12bc78bd3fa98",
"type": "0x3dcfc5338d8358450b145629c985a9d6cb20f9c0ab6667e328e152cdfd8022cd::suifrens::SuiFrenMinted",
"parsedJson": {
"attributes": {
"contents": [
{
"key": "skin",
"value": "basic"
},
{
"key": "main",
"value": "FCCD31"
},
{
"key": "secondary",
"value": "FFFFFF"
},
{
"key": "expression",
"value": "sad"
},
{
"key": "ears",
"value": "ear4"
}
]
},
"birth_location": "Sudan",
"birthdate": "1682089823474",
"cohort": 2,
"created_by": "0xdd944d0d5418aeb64ceeda8b57d7481f1e03d10bca3595d17bf12bc78bd3fa98",
"generation": "0",
"genes": [
13,
117,
125,
208,
251,
150,
127,
140,
135,
243,
3,
133,
96,
101,
13,
100,
66,
84,
147,
187,
247,
198,
106,
134,
121,
175,
70,
247,
31,
32,
137,
128
],
"id": "0x93d251e44a16912903f49e6d697c158e303d61dee6803db95299717c6dd31c17"
},
"bcs": "uDuC6eFuaofbE9StSdhLTXQGbG4mn2JZVd8dkx3dFQatAsazyajf3Vcja9t7vaJsjQXM32B74Nd6URXhh7o8ohhUCJrEVNznFJ6YFrAa9hT7hQ5E5ucEhn4mbGhb9Anuk1DTm1DSVSrxEvMuLbZanFBhy7xeYZQCXvW7VVawzCTdAmZNRJ2Ue9GHaP1JLH6k5wBNffaWfdSQDM6wBeXemKvaYLV5qsHK9Tz19H4K3XFfToLzjvcU2s1TQsyqHuFm5H"
}
],
"timestampMs": "1682089823474",
"checkpoint": "1772564"
},
"id": 1
}