Trying to run transaction in Polkadot.js.org UI

This method in UI

  const insertKeys = async (api: ApiPromise, seed: string, publicKey: string) => {
  const insert = await api.rpc.author.insertKey("orac", seed, publicKey);
  console.log("  Insert Keys  ");
  console.log(` ${publicKey}`);
  console.log(" Successful");

with this parameters

api.rpc.author.insertKey("orac", "recall inhale trick wasp core hat problem season february buzz juice cloth", "0x4cc5f1b01d843ede8cca27dd4b9be4408ca9459aca36d2240666a2479a900a1d")

But getting error

enter image description here

  • 2
    insertKey is a rpc and not a transaction. So, you can not get this error for calling a rpc.
    – bkchr
    Commented May 18, 2022 at 11:47
  • 1
    The error you are showing seems to come from a runtime upgrade, not setting keys for a node. Commented May 18, 2022 at 11:50

1 Answer 1


As others have commented, you seem to be looking at 2 different results.

On the error - this generally happens when you don't specify enough weight on the runtime upgrade, i.e. setCode transaction. There are actually a couple of existing questions that deal with this:

Doing either of these will get around the error message.

  • Thanks 🙏 it was helpful
    – Alex
    Commented May 31, 2022 at 13:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.