Skip to content

A simple proof of concept web page that will display notifications from Reddcoin Core wallet

License

Notifications You must be signed in to change notification settings

reddcoin-project/stakenotify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Web Notify

A simple web example to display the notification messages from reddcoin core wallet.
The website is built on python, flask and websockets to provide a dynamic update and display of parameters.

The following configuration parameters are used:

-stakenotify
-blocknotify
-walletnotify
-alertnotify

Stakenotify

-stakenotify=<cmd>

the following parameters are available to be included in the command

%s in cmd is replaced by TxID,
%w is replaced by wallet name,
%b is replaced by the hash of the block including the transaction (set to 'unconfirmed' if the transaction is not included),
%h is replaced by the block height (-1 if not included).
%w is not currently implemented on windows. On systems where %w is supported, it should NOT be quoted because this would break shell escaping used to invoke the command.

Example: Add the following line to reddcoin.conf

stakenotify=curl http://127.0.0.1:5000/stakenotify/%s/%b/%h/%w

Blocknotify

-blocknotify=<cmd>

the following parameters are available to be included in the command

%s in cmd is replaced by blockhash,

Example: Add the following line to reddcoin.conf

blocknotify=curl http://127.0.0.1:5000/blocknotify/%s

Walletnotify

-walletnotify=<cmd>

the following parameters are available to be included in the command

%s in cmd is replaced by TxID,
%w is replaced by wallet name,
%b is replaced by the hash of the block including the transaction (set to 'unconfirmed' if the transaction is not included),
%h is replaced by the block height (-1 if not included).
%w is not currently implemented on windows. On systems where %w is supported, it should NOT be quoted because this would break shell escaping used to invoke the command.

Example: Add the following line to reddcoin.conf

walletnotify=curl http://127.0.0.1:5000/walletnotify/%s/%b/%h/%w

Alertnotify

-alertnotify=<cmd>

the following parameters are available to be included in the command

%s in cmd is replaced by message,

Example: Add the following line to reddcoin.conf

alertnotify=curl http://127.0.0.1:5000/alertnotify/%s

Installation

  • Clone the repository
  • Create a virtual environment
python3 -m venv venv
source venv/bin/activate

Install the project requirements.txt

python3 -m pip install -r requirements.txt

Run

Run the project:

python3 ./app.py

Feel free to offer suggestions/ improvements

About

A simple proof of concept web page that will display notifications from Reddcoin Core wallet

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published