eosjs icon indicating copy to clipboard operation
eosjs copied to clipboard

transaction authorization failed in execute A Multisig Transaction

Open adeelnaqvi172 opened this issue 3 years ago • 0 comments

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. (/home/adeel/Documents/EOSIO apis/Multisig Transaction/5) execu/node_modules/eosjs/dist/eosjs-jsonrpc.js:121:35) at step (/home/adeel/Documents/EOSIO apis/Multisig Transaction/5) execu/node_modules/eosjs/dist/eosjs-jsonrpc.js:37:23) at Object.next (/home/adeel/Documents/EOSIO apis/Multisig Transaction/5) execu/node_modules/eosjs/dist/eosjs-jsonrpc.js:18:53) at fulfilled (/home/adeel/Documents/EOSIO apis/Multisig Transaction/5) execu/node_modules/eosjs/dist/eosjs-jsonrpc.js:9:58) at process._tickCallback (internal/process/next_tick.js:68:7) (node:9236) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:9236) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

new

Here is Screenshot of my Error

wwwe

adeelnaqvi172 avatar Sep 17 '20 12:09 adeelnaqvi172