8000 Multisig contract transaction via api/apps · Issue #5695 · polkadot-js/api · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Multisig contract transaction via api/apps #5695

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wottpal opened this issue Jul 18, 2023 · 2 comments
Open

Multisig contract transaction via api/apps #5695

wottpal opened this issue Jul 18, 2023 · 2 comments
Labels
Support Tracks issues or requests related to troubleshooting, answering questions, and user assistance.

Comments

@wottpal
Copy link
wottpal commented Jul 18, 2023

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 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.

@jacogr jacogr added the Support Tracks issues or requests related to troubleshooting, answering questions, and user assistance. label Nov 18, 2023
@Thongnguyentam
Copy link

is there any solution for this question?

@valentinfernandez1
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Support Tracks issues or requests related to troubleshooting, answering questions, and user assistance.
Projects
None yet
Development

No branches or pull requests

4 participants
0