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
insertKey
is a rpc and not a transaction. So, you can not get this error for calling a rpc.