ethereum / execution-apis

Collection of APIs provided by Ethereum execution layer clients

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Documentation] Unconsistency in the documentation of eth_getBalance

stolab opened this issue · comments

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?

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"}}