You can manage the multi-sig wallet using
quras-js
module. Then let's see about this step by step. quras-js
module. Then let's see about this step by step. Quras.api.qurasDB.getMyMultiSignMemberPubkeys(Quras.CONST.QURAS_NETWORK.MAIN, 'Ddb6XJozy18AbJx2Nnmh7Q8rVHzcSM2HYd')
.then((data) => {
if (data.length < 1) throw new Error("There is no members");
testTx.createMultiSign(data, 'e4fdf1d4d00bc9597d9a94bf880810221501289f96c0ac89eed1a19a334785b0'); // Sign the transaction using private key
})
.catch((error) =>{
console.log("error");
});1>
Quras.tx.getMultiSignTxRawData(tx) // Get raw data of multi-sig tx.
var tx = Quras.tx.Transaction.getMultiSignTx(rawdata); // Get Multi-Sig tx from raw data.
tx.joinMultiSign('8488eb4be90c73650723277c43464f751b976c0954f0cc305ed1260dbc87f7d0'); // Sign the transaction using private key
tx.isCompletedMultiSign();
tx = tx.completeMultiSignTx();
const rpcServer = new Quras.rpc.RPCClient(Quras.CONST.QURAS_NETWORK.MAIN);
rpcServer.sendRawTransaction(tx.serialize()) // Send the transaction to RPC Server.
.then((data) => {
console.log(data);
})
.catch ((error) => {
console.log(error);
});