Open paul-leydier opened 4 months ago
Nice catch! The current response does in fact give a response with the first letter capitalized.
After a bit of digging in the rpc code base, I think this is actually not intended. Based on the Reward
struct within a ConfirmedBlock
It should be using this formatter giving a lower case value
Problem
The documentation page for GetBlock endpoint shows potential
rewardType
to be one of:These are not capitalized.
However, querying the endpoint on block
257199412
with the following HTTP body:Returns:
Note the capitalization of
"Fee"
in the response. This can cause confusion for developper parsing the response with non-loose parsers.Summary of Changes
I simply capitalized the described
rewardType
literals in the docs.