polkadot-js / api

Promise and RxJS APIs around Polkadot and Substrate based chains via RPC calls. It is dynamically generated based on what the Substrate runtime provides in terms of metadata.
Apache License 2.0
1.06k stars 342 forks source link

getblock of assethub return error #5867

Closed tdmm closed 2 months ago

tdmm commented 2 months ago

assethub getblock return error :

2024-04-26 13:19:17 API/INIT: statemint/1002000: Not decorating unknown runtime apis: 0xd7bdd8a272ca0d65/1, 0xfbc577b9d747efd6/1 2024-04-26 13:19:19 VEC: Unable to decode on index 2 createType(ExtrinsicV4):: createType(Call):: findMetaCall: Unable to find Call with index [5, 229]/[5,229] 2024-04-26 13:19:19 RPC-CORE: getBlock(hash?: BlockHash): SignedBlock:: createType(SignedBlock):: Struct: failed on block: {"header":"Header","extrinsics":"Vec"}:: Struct: failed on extrinsics: Vec:: createType(ExtrinsicV4):: createType(Call):: findMetaCall: Unable to find Call with index [5, 229]/[5,229]

code is this:

` const provider = new WsProvider(endpoint); const api = await ApiPromise.create({ provider });

const provider = new WsProvider(endpoint); const api = await ApiPromise.create({ provider }); const hash = await api.rpc.chain.getBlockHash(6126953); block = await api.rpc.chain.getBlock(hash); `

tdmm commented 2 months ago

also in polkadot.js

image

tdmm commented 2 months ago

https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fsys.ibp.network%2Fstatemint#/explorer/query/6126953

TarikGul commented 2 months ago

This issue is only with api <= 11.0.1. It is fixed in 11.0.2

TarikGul commented 2 months ago

Closing in favor of https://github.com/polkadot-js/apps/issues/10516 in apps

polkadot-js-bot commented 1 month ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue if you think you have a related problem or query.