You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a set of scripts for composing & executing contract transactions via contract.tx.method. But my current contract is governed by a multisig, which means certain tx's need to be performed on behalf of that. I know how to initiate & approve multisig tx's in polkadot-js/apps – but not withinapi/api-contract.
My idea was to (a) initiate it in my scripts as I usually would, export the call data (as hex or bytes), and use this to (b) approve it in polkadot-js/apps (doesn't need to happen within the script). But I neither know how to do (a) on behalf of a multisig nor do I know (b) how to export the call data.
It would be awesome to get some help on this, @jacogr.
The text was updated successfully, but these errors were encountered:
jacogr
added
the
Support
Tracks issues or requests related to troubleshooting, answering questions, and user assistance.
label
Nov 18, 2023
Sorry for the late response, I guess this slipped though the list of Issues. @Thongnguyentam if you are looking to do it as wottpal suggested the key would be to get the SCALE encoded data and then sign it with a multisig.
I don't have a smart contract at hand to test this but I would assume that by doing
let encodedCall = contract.tx.yourMethod().unwrap().toHex()
Should return the encoded call that you can then put into the Decode tab on polkadot-js/apps and then sign with the multisig.
You should also be able to do it through the api but if you can't please feel free to provide more context or a way to replicate it so that I can test it and provide more info
Hey,
I have a set of scripts for composing & executing contract transactions via
contract.tx.method
. But my current contract is governed by a multisig, which means certain tx's need to be performed on behalf of that. I know how to initiate & approve multisig tx's inpolkadot-js/apps
– but not withinapi
/api-contract
.My idea was to (a) initiate it in my scripts as I usually would, export the call data (as hex or bytes), and use this to (b) approve it in
polkadot-js/apps
(doesn't need to happen within the script). But I neither know how to do (a) on behalf of a multisig nor do I know (b) how to export the call data.It would be awesome to get some help on this, @jacogr.
The text was updated successfully, but these errors were encountered: