Click or drag to resize

How to be notified

For some applications it is important to stay informed about received and/or sent transaction. This feature is implemented as a platform independent solution.

There are three options using callback:

  • Both directions

  • Received only

  • Sent only

%s in your command is the place that will be overridden with transaction IDs.

Timeout for callback is 3 sec and you are able to use more than one call. Here is an example of more calls for Windows:

C#
walletnotify=recieved:curl.exe -s http://localhost:62602/wallet1notify?%s
walletnotify=recieved:curl.exe -s http://localhost:62602/sys2notify?%s
WalletNotify under Windows

Our recommendation is to install CURL for Windows to run your web call.

Node will call cmd.exe /K + your command.

In your BRhodium.conf, it is important to uncomment or add the following line:

http://localhost:62602/walletnotify is your client side.

C#
walletnotify=curl.exe -s http://localhost:62602/walletnotify?%s
or
walletnotify=recieved:curl.exe -s http://localhost:62602/walletnotify?%s
or
walletnotify=sent:curl.exe -s http://localhost:62602/walletnotify?%s
WalletNotify under Linux and MacOSX

Node will call /bin/bash -c + your command.

In your BRhodium.conf, it is important to uncomment or add the following line:

/home/myuser/transaction.sh is your bash script.

C#
walletnotify=/home/myuser/transaction.sh %s
or
walletnotify=recieved:/home/myuser/transaction.sh %s
or
walletnotify=sent:/home/myuser/transaction.sh %s

Example of a bash script transaction.sh:

http://127.0.0.1/some/route is your client side.

C#
#!/bin/sh
curl -d "txid=$1" http://127.0.0.1/some/route
BlockNotify under Windows

This is for tracking when the most recent best-block is retrieved.

Node will call cmd.exe /K + your command.

In your BRhodium.conf, it is important to uncomment or add the following line:

http://localhost:62602/blocknotify is your client side.

C#
blocknotify=curl.exe -s http://localhost:62602/blocknotify?%s
BlockNotify under Linux and MacOSX

This is for tracking when the most recent best-block is retrieved.

Node will call /bin/bash -c + your command.

In your BRhodium.conf, it is important to uncomment or add the following line:

/home/myuser/newblock.sh is your bash script.

C#
blocknotify=/home/myuser/newblock.sh %s

Example of a bash script transaction.sh:

http://127.0.0.1/some/route is your client side.

C#
#!/bin/sh
curl -d "txid=$1" http://127.0.0.1/some/route