py-substrate-interface
py-substrate-interface copied to clipboard
Python Substrate Interface
When subscribing to new block headers, using the subscribe_block_headers method, the call hangs if the RPC endpoint becomes unreachable. Even if the endpoint becomes reachable again, the call will hang...
**Hi friends! Thank you very much for you work.** **py-substrate-interface is working great, but unfortunately i cant find information for connection to HydraDX network** **I am trying to connect to**...
Now to encode a `struct` type it requires a `dict` with elements according to its specification. For example the session key struct: ``` {'grandpa': '0x...', 'babe': '0x...', 'im_online': '0x...', 'authority_discovery':...
Hey Arjan, There is a little issue happening when I'm running a python simulation and sending transactions to the substrate node. At some point I get the traceback below, do...
Extrinsics fail while talking to a light client with error: ------------ SubstrateRequestException Traceback (most recent call last) in ----> 1 recipt = substrate.submit_extrinsic(extrinsic, wait_for_inclusion=False) ~/.pyenv/versions/3.7.3/lib/python3.7/site-packages/substrateinterface/base.py in submit_extrinsic(self, extrinsic, wait_for_inclusion, wait_for_finalization)...
Create lookup dict of metadata storage functions/events/calls in stead of nested if-statements to improve performance
in the multi-node network, when i send the extrinsic by rpc, and the error occur. `Failed to send: {'code': 1010, 'message': 'Invalid Transaction', 'data': 'BadProof'}` but when i run substrate...
See https://github.com/paritytech/substrate/pull/10918 PolkadotJS changes: https://github.com/polkadot-js/api/pull/5257
Hi The exception occurs from time to time in different scenarios but always for `Compact` type. Have to mention that few instances of py-substrate-interface is used in parallel in different...
Occasionally this line: https://github.com/polkascan/py-substrate-interface/blob/84485c1f7774016ed2f93380b3a6ec041c28b2c1/substrateinterface/base.py#L329 blows up with `WebSocketConnectionClosedException`. Would it be ok to wrap it with an auto-reconnect try-catch just like here: https://github.com/polkascan/py-substrate-interface/blob/84485c1f7774016ed2f93380b3a6ec041c28b2c1/substrateinterface/base.py#L271-L282