--background flag for wowlet - start websocket server #26

Yolo'd
wowario merged 1 commits from dsc/wowlet:wsserver into master 4 months ago
dsc commented 4 months ago
Owner

This commit introduces a websocket server via the --daemon argument.

./wowlet --daemon 127.0.0.1:1234 --daemon-password "sekrit"

The wallet will start in the background and expose a websocket port that you can connect to using a websocket client. This way, you will be able to control the wallet via websockets.

The commands are defined in wsserver.cpp, in the processBinaryMessage() function.

  • openWallet - opens a wallet by path/password.
  • closeWallet - close current wallet.
  • addressList - Returns a list of receive addresses.
  • sendTransaction - Creates and sends a transaction.
  • createWallet - Create a wallet by path/password.
  • transactionHistory - Returns the complete list of transactions
  • addressBook - Returns the complete list of address book entries.

Password authentication is required, see --daemon-password.

Messages sent back and forth between the server and client are JSON. There is a Python example client available over at https://git.wownero.com/wownero/wowlet-ws-client

This commit introduces a websocket server via the `--daemon` argument. ``` ./wowlet --daemon 127.0.0.1:1234 --daemon-password "sekrit" ``` The wallet will start in the background and expose a websocket port that you can connect to using a websocket client. This way, you will be able to control the wallet via websockets. The commands are defined in wsserver.cpp, in the `processBinaryMessage()` function. - `openWallet` - opens a wallet by path/password. - `closeWallet` - close current wallet. - `addressList` - Returns a list of receive addresses. - `sendTransaction` - Creates and sends a transaction. - `createWallet` - Create a wallet by path/password. - `transactionHistory` - Returns the complete list of transactions - `addressBook` - Returns the complete list of address book entries. Password authentication is required, see `--daemon-password`. Messages sent back and forth between the server and client are JSON. There is a Python example client available over at https://git.wownero.com/wownero/wowlet-ws-client
dsc added 1 commit 4 months ago
53c1c0c19a This commit introduces a websocket server via the `--background` argument.
dsc changed title from --background flag for wowlet - start websocket server to [WIP] --background flag for wowlet - start websocket server 4 months ago
Poster
Owner

This needs to support password authentication.

This needs to support password authentication.
dsc force-pushed wsserver from 53c1c0c19a to f6acbe8bb4 4 months ago
dsc changed title from [WIP] --background flag for wowlet - start websocket server to --background flag for wowlet - start websocket server 4 months ago
dsc force-pushed wsserver from f6acbe8bb4 to 8968a8cbce 4 months ago
Poster
Owner

Password authentication added. Python example updated df6d4ed158

Password authentication added. Python example updated https://git.wownero.com/wownero/wowlet-ws-client/commit/df6d4ed158e12e37daa69101844c1d207039133d
wowario merged commit 8dc0a5bfaf into master 4 months ago
The pull request has been merged as 8dc0a5bfaf.
Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This pull request currently doesn't have any dependencies.

Loading…
There is no content yet.