Skip to main content

suix_subscribeEvent

'Event Subscription, Websocket, PubSub: Subscribe to a stream of Sui event'

'Event Subscription, Websocket, PubSub: Subscribe to a stream of Sui event'

Parameters

Returns

  • SuiEvent : <Event>

Example Request and Result for suix_subscribeEvent

Request

curl --location --request POST 'https://sui-testnet.public.qa.blastapi.io' \
--header 'Content-Type: application/json' \
--data-raw '{
"jsonrpc": "2.0",
"id": 1,
"method": "suix_subscribeEvent",
"params": [
{
"All": [
{
"EventType": "MoveEvent"
},
{
"Package": "0x2"
},
{
"Module": "bag"
}
]
}
]
}'