Skip to content
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

Multisign transactions #140

Closed
simbadMarino opened this issue Oct 22, 2024 · 1 comment
Closed

Multisign transactions #140

simbadMarino opened this issue Oct 22, 2024 · 1 comment

Comments

@simbadMarino
Copy link

Hello team, I could not find any docs related to performing multisign transactions using Trident.
Would you please point me to the right docs or even a code example on how to do this on trident?

Thanks in advance!

@angrynurd
Copy link
Contributor

@simbadMarino
currently,there are code examples of multisig tx using tronweb sdk(js lib), and there are not code examples of multisi tx using trident(java lib).
if you want to perform multisig tx using trident ,you can refer to this docs,and make sure to replace this methods mentioned in this docs with according methods in Apiwrapper

let me make it more clearly.in order to perform a multisi tx ,you need to invoking these APIs in order,as below:

  1. Modify Account Permission --->wallet/accountpermissionupdate
  2. Query Account Permission------>wallet/getaccount
  3. construct a multi-signature tx ----->sendTrx
  4. Perform the Multi-Signing---->multiSign
  5. Check Transaction's Sign Weight------>getSignWeight

so,if you use trident sdk to perform multisig tx,you need to invoke the specific methods in Apiwrapper,as below:

  1. Modify Account Permission --->Apiwrapper.accountPermissionUpdate
  2. Query Account Permission------>Apiwrapper.getaccount
  3. construct a multi-signature tx ----->Apiwrapper.createTransaction
  4. Perform the Multi-Signing---->Apiwrapper.signTransaction
  5. Check Transaction's Sign Weight------>Apiwrapper.getTransactionSignWeight

you can have try.
by the way,it will be better to add the missing part in the docs of trident about the multisig tx ;

@lvs007 lvs007 closed this as completed Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants