sui_getEvents
Read API Return transaction events.
Read API Return transaction events.
Parameters
transaction_digest
:<TransactionDigest>
- the event query criteria.
Returns
Vec<SuiEvent>
:<[Event]>
Example Request and Result for sui_getEvents
Request
curl
--location --request POST 'https://sui-testnet.blastapi.io/<project-id>' \
--header 'Content-Type: application/json' \
--data-raw '{
"jsonrpc": "2.0",
"id": 1,
"method": "sui_getEvents",
"params": [
"4PyL6WftxQasXFvoyJZS933G8jk49s9FCjYYvNQgpshV"
]
}'
Result
{
"jsonrpc": "2.0",
"result": [
{
"id": {
"txDigest": "4PyL6WftxQasXFvoyJZS933G8jk49s9FCjYYvNQgpshV",
"eventSeq": "0"
},
"packageId": "0x3dcfc5338d8358450b145629c985a9d6cb20f9c0ab6667e328e152cdfd8022cd",
"transactionModule": "genesis",
"sender": "0x2ae05b0039f3f2f144158fa3397af0daa60bba4580ab040e2f73dff4a2c35740",
"type": "0x3dcfc5338d8358450b145629c985a9d6cb20f9c0ab6667e328e152cdfd8022cd::suifrens::SuiFrenMinted",
"parsedJson": {
"attributes": {
"contents": [
{
"key": "skin",
"value": "basic"
},
{
"key": "main",
"value": "EAB244"
},
{
"key": "secondary",
"value": "FFFFFF"
},
{
"key": "expression",
"value": "sad"
},
{
"key": "ears",
"value": "ear1"
}
]
},
"birth_location": "United Kingdom",
"birthdate": "1682340905021",
"cohort": 4,
"created_by": "0x2ae05b0039f3f2f144158fa3397af0daa60bba4580ab040e2f73dff4a2c35740",
"generation": "0",
"genes": [
122,
85,
102,
209,
73,
211,
189,
20,
217,
214,
154,
94,
5,
1,
250,
7,
226,
47,
96,
230,
25,
107,
58,
237,
84,
161,
72,
182,
27,
9,
64,
78
],
"id": "0x53387ad74801d999f89b2e3217e0772593b6d488484adc24e54ccbf494f2c57a"
},
"bcs": "2eoWQNAMyehVhkx7UFVgcApUj4xSBGTwnxXfsCJQH82ydomWKkjs4vi9FntUQgTU4SSRvaP6WTYpmmAHxnDgj97tFecXfimyDjawi5d4owWMSvAmpvojWePCuJB1cWWZZk1mqSyHjjZ7VuNUzSAR4U5rMcMBPstFejbRLh7eeS9zvYFi2GQezA1NKtKBNX6g1vZWCAJBixzVrNbCV2r5QTr3wtU6HkspnS86vxaW7fsqP2WPMUgHwSWBgsxjvezHXjD2Zg45xGk7bD1"
}
],
"id": 1
}