diff --git a/cmds.go b/cmds.go index 05b97d16..9b2d30cf 100644 --- a/cmds.go +++ b/cmds.go @@ -438,6 +438,12 @@ func (cmd *GetUnconfirmedBalanceCmd) UnmarshalJSON(b []byte) error { return nil } +// GetBestBlockResult holds the result of a getbestblock response. +type GetBestBlockResult struct { + Hash string `json:"hash"` + Height int32 `json:"height"` +} + // GetBestBlockCmd is a type handling custom marshaling and // unmarshaling of getbestblock JSON websocket extension // commands.