Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

polkadot.js/api api.rpc.state.queryStorage returns error #2536

Closed
edwardmack opened this issue May 11, 2022 · 0 comments · Fixed by #2565
Closed

polkadot.js/api api.rpc.state.queryStorage returns error #2536

edwardmack opened this issue May 11, 2022 · 0 comments · Fixed by #2565
Assignees

Comments

@edwardmack
Copy link
Contributor

Describe the bug

  • Making call to api.rpc.state.queryStorage as follows:
   const queryStorage = await api.rpc.state.queryStorage(["0x26aa394eea5630e07c48ae0c9558cef7a44704b568d21667356a5a050c118746e333f8c357e331db45010000"], "0x0a0f4687cfc807af53e28beb2b504c015d1db34e44126e4af9e5489473fe205b", null);
    console.log('\x1b[32m%s\x1b[0m %s', "queryStorage:", queryStorage);

Expected Behavior

  • Should return array containing values stored at given storage key.

Current Behavior

  • Returns error: RPC-CORE: queryStorage(keys: Vec<StorageKey>, fromBlock: Hash, toBlock?: BlockHash): Vec<StorageChangeSet>:: -32000: start node does not exist: null

Specification

  • gossamer version: runtime v0.9.19
  • polkadot/api version: 8.3.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants