Parameters
chainId
string
default:"sui"
required
Unique identifier for a blockchain network.
Request identifier used to match responses.
jsonrpc
string
default:"2.0"
required
JSON-RPC version.
method
string
default:"sui_getEvents"
required
JSON-RPC method name.
params
object
default:["11a72GCQ5hGNpWGh2QhQkkusTEGS6EDqifJqxr7nSYX"]
required
Get all events emitted by the transaction.Positional parameters for sui_getEvents:params[]: The transaction digest.
Returns
The JSON-RPC result.
Package ID of the event origin
Move module that emitted the event
Sui address of the sender
Parsed JSON representation of the event
Encoding type (e.g., base64)
BCS serialized event data
True if there are more pages of events to fetch
curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=sui \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "sui_getEvents",
"params": [
"11a72GCQ5hGNpWGh2QhQkkusTEGS6EDqifJqxr7nSYX"
]
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"data": [
{
"id": {
"__truncated": true
},
"packageId": "0xc54ab30a3d9adc07c1429c4d6bbecaf9457c9af77a91f631760853934d383634",
"transactionModule": "test_module",
"sender": "0xbcf7c32655009a61f1de0eae420a2e4ae1bb772ab2dd5d5a7dfa949c0ef06908",
"type": "0x...::test::TestEvent",
"parsedJson": {
"__truncated": true
},
"bcsEncoding": "base64",
"bcs": ""
}
],
"nextCursor": {
"txDigest": "11a72GCQ5hGNpWGh2QhQkkusTEGS6EDqifJqxr7nSYX",
"eventSeq": "5"
},
"hasNextPage": false
}
}