Add sentToSelf to BalanceHistory

This commit is contained in:
Martin Boehm
2020-05-19 12:06:47 +02:00
parent b957ed66ab
commit dd2dc6b2ee
6 changed files with 139 additions and 84 deletions

View File

@@ -674,6 +674,7 @@ Example response (fiatcurrency not specified):
"txs": 5,
"received": "5000000",
"sent": "0",
"sentToSelf":"100000",
"rates": {
"usd": 7855.9,
"eur": 6838.13,
@@ -685,6 +686,7 @@ Example response (fiatcurrency not specified):
"txs": 1,
"received": "0",
"sent": "5000000",
"sentToSelf":"0",
"rates": {
"usd": 8283.11,
"eur": 7464.45,
@@ -703,6 +705,7 @@ Example response (fiatcurrency=usd):
"txs": 5,
"received": "5000000",
"sent": "0",
"sentToSelf":"0",
"rates": {
"usd": 7855.9
}
@@ -712,6 +715,7 @@ Example response (fiatcurrency=usd):
"txs": 1,
"received": "0",
"sent": "5000000",
"sentToSelf":"0",
"rates": {
"usd": 8283.11
}
@@ -728,6 +732,7 @@ Example response (fiatcurrency=usd&groupBy=172800):
"txs": 6,
"received": "5000000",
"sent": "5000000",
"sentToSelf":"0",
"rates": {
"usd": 7734.45
}
@@ -735,6 +740,8 @@ Example response (fiatcurrency=usd&groupBy=172800):
]
```
The value of `sentToSelf` is the amount sent from the same address to the same address or within addresses of xpub.
### Websocket API
Websocket interface is provided at `/websocket/`. The interface can be explored using Blockbook Websocket Test Page found at `/test-websocket.html`.