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

Transfer Funds

Using the SDK, developers can initiate transfers of funds from a multisig wallet. This functionality enables secure and controlled fund management within the multisig setup.

const recipientAddress = '...'; // multisig address for which you want create proxy.
const amount = 10 // number
const address = 'sender address' // should be your address

const multisig; // Your multisig object with address, proxy, signatories, threshold data
const isProxy = false // boolean require to check trasaction is from proxy wallet or multisig wallet
// 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.transferFunds(recipientAddress, amount, address, multisig, isProxy, setLoadingMessages);

if (data){
    console.log(data)
    // use your data
}
else if(error){
    console.log(error)
}

Response Data

{
  "status": 200,
  "message": "Transaction Successful",
  "data": {
    "amount": "01d1a94a2000",
    "block_number": 5419242,
    "callData": "0x1e00008d435807bc34a477f6a94bbc191f9650e22ac8a2d601214e48c6c248f5ba42b0000403008e563f5e1d5dd4f7a5b0bc4482bca973d44d030fced751abf1f40cf6d8d674270b00204aa9d101",
    "callHash": "0x2721fcbda479c2e0176494cd910a0de15986fb1bc9fddae11d0edace03f78403",
    "from": "5FFvcaTdeELPWNZ5z8JVxZBZS6phbMW61KMoHo4Ci2cyrYX6",
    "network": "rococo",
    "note": "",
    "to": "5FHLH4HkrsJ6QmNrQBYFkk3b73XhrfBXNSxnQrp2qsoNimak"
  }
}
PreviousEdit MultisigNextApprove Transaction

Last updated 1 year ago

๐Ÿ’ฐ
Generic Error