Links

suix_subscribeEvent

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

Parameters

  • filter : <EventFilter> - the filter criteria of the event stream, see the <a href="https://docs.sui.io/build/pubsub#event-filters">Sui docs</a> for detailed examples

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"
}
]
}
]
}'