Skip to main content

suix_subscribeEvent

POST

Subscribe to a stream of Sui event
param[0]
filterstringrequired
The filter criteria of the event stream. See Event filter documentation for examples.
Responses
jsonrpcstring
idinteger
resultoneOf
bcsstringrequired
Base64 encoding
bcsEncodingstringrequired
codestringrequired
Code identifying the cause of the failed request.
messagestringrequired
Detailed message including the name and value of the invalid parameter.
{
"code": "ERROR_CODE",
"message": "Bad Request"
}
cURL
curl -X POST 'https://sui-mainnet.nodit.io' \
-H 'Content-Type: application/json' \
-H 'X-API-KEY: nodit-demo' \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "suix_subscribeEvent",
"params": [
null
]
}'