The SDK provides functionality to edit a multisig wallet, such as modifying the threshold associated with a proxy account. Developers can utilize this feature to adjust the multisig configuration as needed.
Edit multisig needs two transactions 1st to add a new multisig and 2nd to remove the old multisig from proxy
Note: Proxy linking is required for multisig configuration editing, but Astar does not support proxies for editing.
const multisigAddress = '...'; // multisig address for which you want create proxy.
const newSignatories = ['..', '...'] // Array of new signatories
const newThreshold = 3 // number
// A function that takes a single parameter.
const eventGrabber = (message)=>{
// use message to track transaction progress and events using eventGrabber for real-time visibility
console.log(message)
}
const { data, error } = await client.editMultisig(multisigAddress, newSignatories, newThreshold, eventGrabber);
if (data){
console.log(data)
// use your data
}
else if(error){
console.log(error)
}