Thanks to py-substrate-interface
I can create extrinsics with something like:
payload = substrate.compose_call(
call_module='Balances',
call_function='transfer',
call_params={
'dest': 'EaG2CRhJWPb7qmdcJvy3LiWdh26Jreu9Dx6R1rXxPmYXoDk',
'value': 1000000000000
}
)
Then I can also see the rpc_request
and ws_request
in their documentation, which I assume I can use to broadcast a signed extrinsic.
The missing step would be the signing of the extrinsic. Does anyone know how to do this in python?