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

Recreate Transaction from SignerPayloadJSON and signature #4498

Closed
joelamouche opened this issue Jan 25, 2022 · 3 comments
Closed

Recreate Transaction from SignerPayloadJSON and signature #4498

joelamouche opened this issue Jan 25, 2022 · 3 comments
Labels

Comments

@joelamouche
Copy link
Contributor

I am trying to build a tool that allows a user to do the steps createTx-signTx-SendTx in three separate (in time and location) steps.
I am having trouble with the 3rd step where I have SignerPayloadJSON, registry info and signature saved in a file and I want to recreate the signed tx to be able to send it.

Using signAndSend with injected signer wouldn't work because it would recreate a SignerPayloadJSON with new era and the signature wouldn't be valid anymore.

This is the PR: moonbeam-foundation/cli-ts-signer#12

@jacogr
Copy link
Member

jacogr commented Jan 25, 2022

If you have the full tx constructed already elsewhere, use api.tx(<hex goes here>).signAndSend(...)

If using the standard signAndSend form, the data for era is only retrieved (like the nonce) if not explicitly supplied in the signAndSend options. So if there are existing values that should be used (e.g. already determined in an out-of-bands process), they can just be passed through.

@polkadot-js-bot
Copy link

This issue has been open for 21 days with no activity and is not labelled as an enhancement. It will be closed in 7 days.

@polkadot-js-bot
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue if you think you have a related problem or query.

@polkadot-js polkadot-js locked as resolved and limited conversation to collaborators Mar 1, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants