You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@hal0x2328 made a websocket service on Dora that is very useful: It simply send a single message with transaction information right when it gots it and then it closes the websocket connection.
This is very useful because after a invokefunction is important to be sure if the transaction was successful and which information was sent via notification by the smart contract, so, you could do something like this:
constresp=awaitwalletConnectCtx.invokeFunction(scripthash,method,params)consttransaction=awaitdora.waitForTransaction(resp.result)// new method to open, listen and close a websocketconstnotifications=transaction.filterNotifications(scripthash,eventname)// new method to make it easier to get a notification
I believe the endpoint of the Websocket is:
wss://dora.coz.io/ws/v1/neo3/testnet/log/<transaction_id>
I would be happy to implement this issue, but probably there is a lot of decisions to be made regarding the responses of those methods
The text was updated successfully, but these errors were encountered:
@hal0x2328 made a websocket service on Dora that is very useful: It simply send a single message with transaction information right when it gots it and then it closes the websocket connection.
This is very useful because after a invokefunction is important to be sure if the transaction was successful and which information was sent via notification by the smart contract, so, you could do something like this:
I believe the endpoint of the Websocket is:
wss://dora.coz.io/ws/v1/neo3/testnet/log/<transaction_id>
I would be happy to implement this issue, but probably there is a lot of decisions to be made regarding the responses of those methods
The text was updated successfully, but these errors were encountered: