ethereum / execution-apis

Collection of APIs provided by Ethereum execution layer clients
Creative Commons Zero v1.0 Universal
908 stars 352 forks source link

[Documentation] Unconsistency in the documentation of eth_getBalance #514

Closed stolab closed 5 months ago

stolab commented 5 months ago

When Checking the documentation for the eth_getBalance here https://ethereum.github.io/execution-apis/api-documentation/ it says it takes 2 parameters:

  1. Address Required = True
  2. Block Required = False

however when you try a request only containing an Address it fails with the following output: {"jsonrpc":"2.0","id":66,"error":{"code":-32602,"message":"missing value for required argument 1"}} which tends to indicate that the Block Parameter is actually required.

Did I misunderstood something or is it a bug in the Documentation?

stolab commented 5 months ago

Actually it seems to be the same for the eth_GetStorageAt, if the block parameters is not present the following error is received:

{"jsonrpc":"2.0","id":66,"error":{"code":-32602,"message":"missing value for required argument 2"}}