mirror of
https://github.com/trezor/blockbook.git
synced 2026-03-03 06:14:27 +01:00
Add sentToSelf to BalanceHistory
This commit is contained in:
@@ -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`.
|
||||
|
||||
Reference in New Issue
Block a user