# Failed to decode canister response as (evm\_rpc\_canister\_types::MultiGetBlockByNumberResult,): Fail to decode argument 0")'

**URL:** <https://forum.dfinity.org/t/failed-to-decode-canister-response-as-evm-rpc-canister-types-multigetblockbynumberresult-fail-to-decode-argument-0/36603>\
**Category:** Developers\
**Created:** [October 27, 2024, 10:41am UTC](https://forum.dfinity.org/t/failed-to-decode-canister-response-as-evm-rpc-canister-types-multigetblockbynumberresult-fail-to-decode-argument-0/36603 "2024-10-27T10:41:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![malteish](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/malteish/32/18922_2.png) [@malteish](https://forum.dfinity.org/u/malteish)\
**Post date:** [October 27, 2024, 10:41am UTC](https://forum.dfinity.org/t/failed-to-decode-canister-response-as-evm-rpc-canister-types-multigetblockbynumberresult-fail-to-decode-argument-0/36603/1 "2024-10-27T10:41:52Z")

</div>

Hi everyone, if you are seeing this error:

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

```

[This PR might help](https://github.com/letmejustputthishere/chain-fusion-starter/pull/46).

---

<div class="post-metadata">

**Author:** ![Vivienne](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/vivienne/32/29170_2.png) [@Vivienne](https://forum.dfinity.org/u/Vivienne)\
**Post date:** [October 28, 2024, 9:16am UTC](https://forum.dfinity.org/t/failed-to-decode-canister-response-as-evm-rpc-canister-types-multigetblockbynumberresult-fail-to-decode-argument-0/36603/2 "2024-10-28T09:16:40Z")

</div>

CC @cryptoschindler as the repo owner

---

<div class="post-metadata">

**Author:** ![kristofer](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/kristofer/32/11135_2.png) [@kristofer](https://forum.dfinity.org/u/kristofer)\
**Post date:** [October 28, 2024, 9:26am UTC](https://forum.dfinity.org/t/failed-to-decode-canister-response-as-evm-rpc-canister-types-multigetblockbynumberresult-fail-to-decode-argument-0/36603/3 "2024-10-28T09:26:45Z")

</div>

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:

> <https://github.com/ic-alloy/ic-alloy-toolkit/blob/main/src/backend/src/service/get_latest_block.rs>
