Addition to #4536, no longer specific to account queries. Allows for validator endpoints to return height in the response. Closes: #4609