From a7bb3cf33619b77303f1b21607544439b8689600 Mon Sep 17 00:00:00 2001 From: Mark Beamer Jr Date: Sun, 18 Aug 2019 17:29:26 -0400 Subject: [PATCH] Update AccountBalanceResponse --- extras/jsonrpc/daemon_types.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/extras/jsonrpc/daemon_types.go b/extras/jsonrpc/daemon_types.go index 1d34444..6a26dc1 100644 --- a/extras/jsonrpc/daemon_types.go +++ b/extras/jsonrpc/daemon_types.go @@ -220,7 +220,12 @@ type AccountListResponse struct { LBCRegtest []Account `json:"lbc_regtest"` } -type AccountBalanceResponse string +type AccountBalanceResponse struct { + Available decimal.Decimal `json:"available"` + Reserved decimal.Decimal `json:"reserved"` + ReservedSubtotals *decimal.Decimal `json:"reserved_subtotals"` + Total decimal.Decimal `json:"total"` +} type AccountCreateResponse struct { ID string `json:"id"`