微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

连接到基板时出错:无法初始化API:createTypeStorageKey::派生

如何解决连接到基板时出错:无法初始化API:createTypeStorageKey::派生

按照本教程,我的PC上本地运行了一个Substrate节点。 https://substrate.dev/docs/en/tutorials/create-your-first-substrate-chain/interact。可以在两个端口上查看它:

  Local:            http://localhost:8000/substrate-front-end-template
  On Your Network:  http://192.168.56.1:8000/substrate-front-end-template

所以我认为连接不是问题。

无论如何,我通过以下命令将@ polkadot / api绑定到我的节点:

yarn add @polkadot/api

每当我运行节点时,浏览器中都会出现错误

Error Connecting to Substrate
Error: FATAL: Unable to initialize the API: createType(StorageKey):: Derived TypedArray constructor created an array which was too small

有人可以帮忙吗?

解决方法

升级到最新的 Substrate Sidecar API 为我解决了这些问题。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。