ethereum / execution-apis

Collection of APIs provided by Ethereum execution layer clients

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`eth_call` doesn't specify behaviour when `Block` parameter is omitted

SamWilsn opened this issue · comments

What is the behaviour when you don't specify a block? Should it default to latest?

In Geth block is mandatory and an error will be raised if its not given. But I think it makes sense to default to latest. Happy to submit a PR if other clients agree. In fact we plan to do that for eth_multicall #383.

I'd have no problem with changing:

required: false

To:

required: true

If that's less work.


if other clients agree

Like on ACD, or can this be more informal?

Ah I didn't know the spec says optional. I just opened ethereum/go-ethereum#28165

Geth defaults to "latest" now.