sui icon indicating copy to clipboard operation
sui copied to clipboard

Configuration. Available Websocket methods : ["sui_unsubscribeTransaction", "sui_subscribeTransaction", "rpc.discover"] . But need `sui_subscribeEvent` to work

Open bfdays opened this issue 3 years ago • 2 comments

I've started Sui node using docker setup taken from https://github.com/MystenLabs/sui/tree/main/docker/fullnode#readme . And after start it outputs: 2022-10-16T15:24:01.478967Z INFO sui_json_rpc: Available Websocket methods : ["sui_unsubscribeTransaction", "sui_subscribeTransaction", "rpc.discover"] But I need sui_subscribeEvent to work - according to https://docs.sui.io/devnet/build/pubsub#subscribe . After connection to WS and calling {"jsonrpc":"2.0", "id": 1, "method": "sui_subscribeEvent", "params": [{"All":[{"EventType":"MoveEvent"}, {"Package":"0x2"}, {"Module":"devnet_nft"}]}]} it returns {"jsonrpc":"2.0","error":{"code":-32601,"message":"Method not found"},"id":1}. How to activate those methods? Is it something should be added into fullnode-template.yaml config ?

bfdays avatar Oct 16 '22 15:10 bfdays

I've started Sui node using docker setup taken from https://github.com/MystenLabs/sui/tree/main/docker/fullnode#readme . And after start it outputs: 2022-10-16T15:24:01.478967Z INFO sui_json_rpc: Available Websocket methods : ["sui_unsubscribeTransaction", "sui_subscribeTransaction", "rpc.discover"] But I need sui_subscribeEvent to work - according to https://docs.sui.io/devnet/build/pubsub#subscribe . After connection to WS and calling {"jsonrpc":"2.0", "id": 1, "method": "sui_subscribeEvent", "params": [{"All":[{"EventType":"MoveEvent"}, {"Package":"0x2"}, {"Module":"devnet_nft"}]}]} it returns {"jsonrpc":"2.0","error":{"code":-32601,"message":"Method not found"},"id":1}. How to activate those methods? Is it something should be added into fullnode-template.yaml config ?

@bfdays Have you solved this problem yet? I am also having the same problem.

manhkhoa168 avatar Oct 18 '22 04:10 manhkhoa168

@bfdays , @manhkhoa168 , have you got enable-event-processing: true in your fullnode-template.yaml?

patrickkuo avatar Oct 18 '22 15:10 patrickkuo

@bfdays , @manhkhoa168 , have you got enable-event-processing: true in your fullnode-template.yaml?

Tried to and it didnt work. But now it works fine, thanks!

bfdays avatar Oct 26 '22 12:10 bfdays