@@ -38,6 +38,7 @@ Multiple destinations for the data are planned:
38
38
4 . ** Plain text summary** : balances, votes, current ticket price, mean fees,
39
39
wallet status. ** DONE** .
40
40
5 . ** RESTful API** over HTTPS. NOT IMPLEMENTED.
41
+ 6 . ** email** : email notification upon receiving to a watched address.
41
42
42
43
Details of the JSON output may be found in [ Data Details] ( #data-details ) . The
43
44
plain text summary looks something like the following (_ wallet data redacted_ ):
@@ -70,6 +71,47 @@ not requested from dcrd, and thus not shown in the summary. It is still
70
71
present in JSON, but the values are {0, -1, -1}. To get actualy ticket pool
71
72
value, use ` -p, --poolvalue ` .
72
73
74
+ ## Watched Addresses and Email Notifications
75
+
76
+ dcrspy may watch for transactions receiving into or sending from "watched"
77
+ addresses. Watched addresses are specified with the ` watchaddress ` flag, with
78
+ multiple addresses specified using repeated ` watchaddress ` flags (e.g. one per
79
+ line in the config file). For example:
80
+
81
+ ~~~ none
82
+ ; Addresses to watch for incoming transactions
83
+ ; Decred developer (C0) address
84
+ ;watchaddress=Dcur2mcGjmENx4DhNqDctW5wJCVyT3Qeqkx
85
+ ; Some larger mining pool addresses:
86
+ ;watchaddress=DsYAN3vT15rjzgoGgEEscoUpPCRtwQKL7dQ
87
+ ;watchaddress=DshZYJySTD4epCyoKRjPMyVmSvBpFuNYuZ4
88
+ ~~~
89
+
90
+ To receive an email notification for each transaction receiving to a watched
91
+ address, concatenate "` ,1 ` " at the end of the address. For example:
92
+
93
+ ~~~ none
94
+ ; Receive email notifications for this one
95
+ ;watchaddress=DsZWrNNyKDUFPNMcjNYD7A8k9a4HCM5xgsW,1
96
+ ; But not this one
97
+ ;watchaddress=Dsg2bQy2yt2onEcaQhT1X9UbTKNtqmHyMus,0
98
+ ; and not by default
99
+ ;watchaddress=DskFbReCFNUjVHDf2WQP7AUKdB27EfSPYYE
100
+ ~~~
101
+
102
+ An SMTP server name, port, authentication information, and a recipient email
103
+ address must also be specified to use email notifications.
104
+
105
+ ~~~ none
106
+
107
+
108
+ smtppass=suPErSCRTpasswurd
109
+ smtpserver=smtp.mailprovider.org:587
110
+ ~~~
111
+
112
+ If you have trouble getting it to work, try any alternate ports available on
113
+ your SMTP server (e.g. 587 instead of 465). You must specify the port.
114
+
73
115
## Arbitrary Command Execution
74
116
75
117
When dcrspy receives a new block notification from dcrd, data collection and
0 commit comments