Skip to content

Commit

Permalink
dcrjson: Add GetAccountBalanceResult and GetBalanceResult (#547)
Browse files Browse the repository at this point in the history
  • Loading branch information
dajohi authored and jrick committed Jan 19, 2017
1 parent 8e2042e commit f5c0b7e
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions dcrjson/walletsvrresults.go
Expand Up @@ -5,6 +5,23 @@

package dcrjson

// GetAccountBalanceResult models the account data from the getbalance command.
type GetAccountBalanceResult struct {
AccountName string `json:"accountname"`
ImmatureCoinbaseRewards float64 `json:"immaturecoinbaserewards"`
ImmatureStakeGeneration float64 `json:"immaturestakegeneration"`
LockedByTickets float64 `json:"lockedbytickets"`
Spendable float64 `json:"spendable"`
Total float64 `json:"total"`
VotingAuthority float64 `json:"votingauthority"`
}

// GetBalanceResult models the data from the getbalance command.
type GetBalanceResult struct {
Balances []GetAccountBalanceResult `json:"balances"`
BlockHash string `json:"blockhash"`
}

// GetTransactionDetailsResult models the details data from the gettransaction command.
//
// This models the "short" version of the ListTransactionsResult type, which
Expand Down

0 comments on commit f5c0b7e

Please sign in to comment.