eosjs
eosjs copied to clipboard
transaction authorization failed in execute A Multisig Transaction
I am facing this error,i follow all step first i propose a multisig transaction from the account of "adeelabbasna" then i approved the transaction with account of "rajazahoor11", Now i want to execute multsig transaction but they give me authorization failed error. One thing i want to mention i already checked my private key and public key everything is perfect.
Here is my API:
app.post('/execute', async (req,res) => {
(async () => {
await api.transact({
actions: [{
account: 'eosio.msig',
name: 'exec',
authorization: [{
actor: "rajazahoor11",
permission: 'active',
}],
data: {
proposer: "adeelabbasna",
proposal_name: "changowner12",
executer: "rajazahoor11"
},
}]
}, {
blocksBehind: 3,
expireSeconds: 30,
broadcast: true,
sign: true
});
res.send("execute");
})();
});
Error: (i also attached screenshoot)
(node:9236) UnhandledPromiseRejectionWarning: Error: assertion failure with message: transaction authorization failed
at new RpcError (/home/adeel/Documents/EOSIO apis/Multisig Transaction/5) execu/node_modules/eosjs/dist/eosjs-rpcerror.js:27:28)
at JsonRpc.
Here is Screenshot of my Error