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.
constmultisigAddress='...';// multisig address for which you want create proxy.constnewSignatories= ['..','...'] // Array of new signatoriesconstnewThreshold=3// number// A function that takes a single parameter.consteventGrabber=(message)=>{ // use message to track transaction progress and events using eventGrabber for real-time visibilityconsole.log(message)}const{data,error}=awaitclient.editMultisig(multisigAddress,newSignatories,newThreshold,eventGrabber);if (data){console.log(data) // use your data}elseif(error){console.log(error)}