π₯Create Multisig
// To create a multisig wallet, a minimum of two signatories and a threshold of two are required.
// The signatories can be other user addresses participating in the multisig setup.
// Threshold represents the minimum number of approvals required from the signatories to send a transaction
const signatories = ['...', '...', '...'] // Array of substrate address
const threshold = 2 // number
const multisigName = 'Polka Multisig'
const { data, error } = await client.createMultisig(signatories, threshold, multisigName);
if (data){
console.log(data)
// use your data
}
else if(error){
console.log(error)
}Response Data
Last updated