Skip to content

Commit

Permalink
Merge pull request #298 from multiversx/account-withKeys-option
Browse files Browse the repository at this point in the history
MX-15381 - account with keys
  • Loading branch information
raduchis authored Apr 19, 2024
2 parents b07a6b9 + 6970013 commit df6d27f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
21 changes: 11 additions & 10 deletions data/api/apiAccountResponse.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@ package api

// AccountResponse is the data transfer object to be returned on API when requesting an address data
type AccountResponse struct {
Address string `json:"address"`
Nonce uint64 `json:"nonce"`
Balance string `json:"balance"`
Username string `json:"username"`
Code string `json:"code"`
CodeHash []byte `json:"codeHash"`
RootHash []byte `json:"rootHash"`
CodeMetadata []byte `json:"codeMetadata"`
DeveloperReward string `json:"developerReward"`
OwnerAddress string `json:"ownerAddress"`
Address string `json:"address"`
Nonce uint64 `json:"nonce"`
Balance string `json:"balance"`
Username string `json:"username"`
Code string `json:"code"`
CodeHash []byte `json:"codeHash"`
RootHash []byte `json:"rootHash"`
CodeMetadata []byte `json:"codeMetadata"`
DeveloperReward string `json:"developerReward"`
OwnerAddress string `json:"ownerAddress"`
Pairs map[string]string `json:"pairs,omitempty"`
}
1 change: 1 addition & 0 deletions data/api/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ type AccountQueryOptions struct {
BlockHash []byte
BlockRootHash []byte
HintEpoch core.OptionalUint32
WithKeys bool
}

// BlockQueryOptions holds options for block queries
Expand Down

0 comments on commit df6d27f

Please sign in to comment.