Skip to content

Commit f5c0b7e

Browse files
dajohijrick
authored andcommitted
dcrjson: Add GetAccountBalanceResult and GetBalanceResult (#547)
1 parent 8e2042e commit f5c0b7e

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

dcrjson/walletsvrresults.go

+17
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,23 @@
55

66
package dcrjson
77

8+
// GetAccountBalanceResult models the account data from the getbalance command.
9+
type GetAccountBalanceResult struct {
10+
AccountName string `json:"accountname"`
11+
ImmatureCoinbaseRewards float64 `json:"immaturecoinbaserewards"`
12+
ImmatureStakeGeneration float64 `json:"immaturestakegeneration"`
13+
LockedByTickets float64 `json:"lockedbytickets"`
14+
Spendable float64 `json:"spendable"`
15+
Total float64 `json:"total"`
16+
VotingAuthority float64 `json:"votingauthority"`
17+
}
18+
19+
// GetBalanceResult models the data from the getbalance command.
20+
type GetBalanceResult struct {
21+
Balances []GetAccountBalanceResult `json:"balances"`
22+
BlockHash string `json:"blockhash"`
23+
}
24+
825
// GetTransactionDetailsResult models the details data from the gettransaction command.
926
//
1027
// This models the "short" version of the ListTransactionsResult type, which

0 commit comments

Comments
 (0)