Skip to content

Commit

Permalink
comment clarification
Browse files Browse the repository at this point in the history
  • Loading branch information
dimalinux committed Jul 24, 2023
1 parent 4e97d53 commit b6a074f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions wallet/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ type GetAddressRequest struct {
// Return addresses for this account.
AccountIndex uint32 `json:"account_index"`
// (Optional, defaults to all) List of address indices to return from the
// account. Index 0 is primary, 1+ are subadddresses.
// account. Index 0 is of account 0 is the primary address, all others
// are subadddresses.
AddressIndices []uint32 `json:"address_index,omitempty"`
}

Expand All @@ -76,7 +77,7 @@ type Address struct {
Address string `json:"address"`
// Label of the (sub)address
Label string `json:"label"`
// index of the (sub)address, 0 is primary
// index of the (sub)address
AddressIndex uint32 `json:"address_index"`
// states if the (sub)address has already received funds
Used bool `json:"used"`
Expand Down

0 comments on commit b6a074f

Please sign in to comment.