Polkasafe SDK
  • ๐Ÿ›…Polkasafe SDK
  • ๐Ÿ“”What is polkadot.JS?
  • Getting started
    • ๐Ÿ”ƒInstallation
    • ๐Ÿ‘จโ€๐ŸซUsage Guide
  • Guides and tutorials
    • ๐Ÿ”—Connect Address
    • ๐Ÿ‘ฅCreate Multisig
    • ๐ŸคAdd to Address Book
    • โŽRemove from Address Book
    • ๐Ÿ“ŠGet Multisig Data by Address
    • ๐ŸงพGet Transactions for Multisig
    • ๐Ÿ’ธGet Assets for Multisig Address
    • ๐Ÿ“ฅGet Multisig Queue
    • โœ๏ธRename Multisig
    • โŒDelete Multisig
    • โœจCreate Proxy
    • ๐Ÿ“Edit Multisig
    • ๐Ÿ’ฐTransfer Funds
    • ๐Ÿ—ณ๏ธApprove Transaction
    • โ›”Cancel Transaction
    • ๐ŸˆบCustom Transaction
    • โ‰๏ธGeneric Errors
  • ๐Ÿ“งSupport and Contact
Powered by GitBook
On this page
  1. Guides and tutorials

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.

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

{
  "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"
    }
  }
}
PreviousCreate ProxyNextTransfer Funds

Last updated 1 year ago

๐Ÿ“
Generic Error