Failed to decode canister response as (evm_rpc_canister_types::MultiGetBlockByNumberResult,): Fail to decode argument 0")'

Hi everyone, if you are seeing this error:

failed to decode canister response as (evm_rpc_canister_types::MultiGetBlockByNumberResult,): Fail to decode argument 0")'

This PR might help.

CC @cryptoschindler as the repo owner

Also, consider trying ic-alloy to interact with the EVM. It adds a layer on top of the EVM RPC canister calls to make interactions easier.

Getting latest block number:

1 Like