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

Merged
wowario merged 1 commits from :wsserver into master 3 years ago
dsc commented 3 years 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 3 years 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 3 years ago
dsc commented 3 years ago
Poster
Owner

This needs to support password authentication.

This needs to support password authentication.
dsc force-pushed wsserver from 53c1c0c19a to f6acbe8bb4 3 years ago
dsc changed title from [WIP] --background flag for wowlet - start websocket server to --background flag for wowlet - start websocket server 3 years ago
dsc force-pushed wsserver from f6acbe8bb4 to 8968a8cbce 3 years ago
dsc commented 3 years 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 3 years 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

No dependencies set.

Reference: wowlet/wowlet#26
Loading…
There is no content yet.