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