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

Custom Transaction

With the assistance of an SDK, developers can initiate a wide range of custom transactions from a multisig wallet. This feature empowers developers to tailor the functionality to meet specific requirements and cater to unique use cases.

Note: Astar does not support Proxy functionality.

const multisigAddress = '...'; // user's multisig address.
const tx = api.tx.system.remark('custom trasaction as multi'); // Should be SubmittableExtrinsic type
const eventGrabber = (message)=>{
    // use message to track transaction progress and events using eventGrabber for real-time visibility
    console.log(message)
}
const isProxy = false // boolean required to check trasaction from a proxy wallet or multisig wallet
const tip = 10000000000 // Optional param tip makes transaction fast: BN value 
const { data, error } = await client.customTransactionAsMulti(multisigAddress, tx, eventGrabber, isProxy, tip);

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

Response Data

{
  "status": 200,
  "message": "Transaction Successful",
  "data": {
    "amount": 0,
    "block_number": 5419242,
    "callData": "0x1e00008d435807bc34a477f6a94bbc191f9650e22ac8a2d601214e48c6c248f5ba42b0000403008e563f5e1d5dd4f7a5b0bc4482bca973d44d030fced751abf1f40cf6d8d674270b00204aa9d101",
    "callHash": "0x2721fcbda479c2e0176494cd910a0de15986fb1bc9fddae11d0edace03f78403",
    "from": "5FFvcaTdeELPWNZ5z8JVxZBZS6phbMW61KMoHo4Ci2cyrYX6",
    "network": "rococo",
    "note": "A custom transaction",
    "to": " "
  }
}
PreviousCancel TransactionNextGeneric Errors

Last updated 1 year ago

๐Ÿˆบ
Generic Error