Skip to content

[Question] How to use encoded parameters? #291

Answered by arjanz
BulatSaif asked this question in Q&A
Discussion options

You must be logged in to vote

ValueError: Element "grandpa" of struct is missing in given value

What I noticed here is there is a duplicate nested key 'keys', the following call worked for me:

call = substrate_client.compose_call(  
    call_module='Session',
    call_function='set_keys',
    call_params={
        'keys': {
            'grandpa':'0x7e4230880436450bc1cc3d65039d83a6a728bd5f7d0364499afaab7a16e79c3d',
            'babe':'0x50105b266cd9e427a634d332c26b7d37df8844570a2b5e867d54fa0b1da7771e',
            'im_online':'0x723fd195e5a8b60f3f637f5a65840e09dd3e1a2ec1bd2495278783e673b68c29',
            'para_validator':'0x323710e92ac2b8068445b6a3bf75fee366e12370a7e365b492dd719b7057954c',
            'para_assi…

Replies: 6 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by arjanz
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #205 on January 03, 2023 14:56.