Menu

How To Execute A Multisig Transaction

If a multi-sig transaction has been approved by the appropriate parties prior to the proposed transaction's expiration timestamp, it can be executed.

To execute a multi-sig transaction, submit a transaction to the exec action of the eosio.msig account.

In the example shown below userbbbbbbbb executes the changeowner proposal, previously proposed by useraaaaaaaa.

(async () => {
  await api.transact({
    actions: [{
      account: 'eosio.msig',
      name: 'exec',
      authorization: [{
        actor: 'userbbbbbbbb',
        permission: 'active',
      }],
      data: {
        proposer: 'useraaaaaaaa',
        proposal_name: 'changeowner',
        executer: 'userbbbbbbbb'
      },
    }]
  }, {
    blocksBehind: 3,
    expireSeconds: 30,
    broadcast: true,
    sign: true
  });
})();