Closed tdmm closed 2 months ago
also in polkadot.js
This issue is only with api <= 11.0.1. It is fixed in 11.0.2
Closing in favor of https://github.com/polkadot-js/apps/issues/10516 in apps
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.
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); `