258 | "\nIf verbose is false, returns a string that is serialized, hex-encoded data for block 'hash'.\n"
259 | "If verbose is true, returns an Object with information about block <hash>.\n"
260 | + "If header only is true (and verbose is false), limits the output to only the block header.\n"
261 | "\nArguments:\n"
262 | "1. \"hash\" (string, required) The block hash\n"
263 | "2. verbose (boolean, optional, default=true) true for a json object, false for the hex encoded data\n"
headeronly (boolean) would need to be mentioned in the arguments here.
BTW: what about adding a getblockheader call, instead of adding a boolean argument? I'd slightly prefer that for readability/simplicity. It would only result in minimal code duplication.