> For the complete documentation index, see [llms.txt](https://polkasafe.gitbook.io/polkasafe-sdk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://polkasafe.gitbook.io/polkasafe-sdk/guides-and-tutorials/edit-multisig.md).

# Edit Multisig

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.

```typescript
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)
}
```

#### Response Data

```json
{
  "status": 200,
  "addNewMultiResponse": {
    "callData": "0x1e00008d435807bc34a477f6a94bbc191f9650e22ac8a2d601214e48c6c248f5ba42b0001e0100a80b155354f355bf7740c91f85000cd94ad04158c8688868b6cc4bad7e4febce0000000000",
    "callHash": "0xffa103e8a924054f77f1f13e35979c670a0bc2d06d9c19c10be6a7dfee76f075",
    "created_at": "Wed May 17 2023 02:09:15 GMT+0530 (India Standard Time)",
    "transactionData": {
      "amount_token": "BN {negative: 0, words: Array(1), length: 1, red: null}",
      "block_number": 5419057,
      "callData": "0x1e00008d435807bc34a477f6a94bbc191f9650e22ac8a2d601214e48c6c248f5ba42b0001e0100a80b155354f355bf7740c91f85000cd94ad04158c8688868b6cc4bad7e4febce0000000000",
      "callHash": "0xffa103e8a924054f77f1f13e35979c670a0bc2d06d9c19c10be6a7dfee76f075",
      "from": "5FbW5hCeZWgjfFXZNofSMkXMduS2fzFnfjuq59KmkYt6bDvD",
      "network": "rococo",
      "note": "Adding New Signatories to Multisig",
      "to": "5FFvcaTdeELPWNZ5z8JVxZBZS6phbMW61KMoHo4Ci2cyrYX6"
    }
  },
  "removeOldMultiResponse": {
    "callData": "0x1e00008d435807bc34a477f6a94bbc191f9650e22ac8a2d601214e48c6c248f5ba42b0001e0100a80b155354f355bf7740c91f85000cd94ad04158c8688868b6cc4bad7e4febce0000000000",
    "callHash": "0xffa103e8a924054f77f1f13e35979c670a0bc2d06d9c19c10be6a7dfee76f075",
    "created_at": "Wed May 17 2023 02:09:15 GMT+0530 (India Standard Time)",
    "transactionData": {
      "amount_token": "BN {negative: 0, words: Array(1), length: 1, red: null}",
      "block_number": 5419057,
      "callData": "0x1e00008d435807bc34a477f6a94bbc191f9650e22ac8a2d601214e48c6c248f5ba42b0001e0100a80b155354f355bf7740c91f85000cd94ad04158c8688868b6cc4bad7e4febce0000000000",
      "callHash": "0xffa103e8a924054f77f1f13e35979c670a0bc2d06d9c19c10be6a7dfee76f075",
      "from": "5FbW5hCeZWgjfFXZNofSMkXMduS2fzFnfjuq59KmkYt6bDvD",
      "network": "rococo",
      "note": "Adding New Signatories to Multisig",
      "to": "5FFvcaTdeELPWNZ5z8JVxZBZS6phbMW61KMoHo4Ci2cyrYX6"
    }
  }
}
```

[Generic Error](/polkasafe-sdk/guides-and-tutorials/generic-errors.md)
