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

Example: Obtain call type id and submit a DynamicTxPayload #712

Closed
lexnv opened this issue Nov 10, 2022 · 2 comments
Closed

Example: Obtain call type id and submit a DynamicTxPayload #712

lexnv opened this issue Nov 10, 2022 · 2 comments
Assignees
Labels
good first issue Small, well scoped, simple; good for newcomers

Comments

@lexnv
Copy link
Collaborator

lexnv commented Nov 10, 2022

Add an example that uses the new dynamic API exposed by subxt
that constructs the tx payload dynamically.

To ensure the tx payload can work across different chains, fetch
the metadata of the node and extract the call type ID of a given
pallet.

One suggestion could be from Multisig::as_multi

Closed by #714

@lexnv lexnv added the good first issue Small, well scoped, simple; good for newcomers label Nov 10, 2022
@jsdw
Copy link
Collaborator

jsdw commented Nov 10, 2022

In coming up with #714 I actually realised that you don't need to prefix the call length etc and it actually turned out to be quite nice and avoids needing call type IDs etc (which we'd much rather people never needed to mess abotu with explicitly anyway).

@jsdw jsdw assigned jsdw and lexnv Nov 11, 2022
@niklasad1
Copy link
Member

Closed by #714

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Small, well scoped, simple; good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants