py-substrate-interface
py-substrate-interface copied to clipboard
Python Substrate Interface
versions: ---------- scalecodec 1.2.11 substrate-interface 1.7.11 ``` >>> ws_provider.get_block(block_number=23108420) Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python3.11/dist-packages/substrateinterface/base.py", line 2450, in get_block return self.__get_block_handler( ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/dist-packages/substrateinterface/base.py",...
While `setup.py` is not fully deprecated yet, the community is moving towards `pyproject.toml` for future-proofing and better integration with new tools and standards. See #399
## Todos - [x] Runtime call interfaces - [x] Storage interface - [x] keyring interface - [x] Runtime API interface - [ ] Ink contract interface - [x] scalecodec 2.0...
`runtime_call` should be having `didApi` and `query` method. Also it showing in the explorer but Error shows `ValueError: Runtime API Call 'didApi.query' not found in registry`. If in metadataV14 runtime...
I plan to apply for a W3F maintenance grant for `substrate-interface` — would you be open to reviewing and merging significant changes during next months? I would love to modernize...
Reproduce: substrate-interface==1.7.11 scalecodec==1.2.11 ``` substrate = SubstrateInterface(url=server_address_ws) call = substrate.compose_call( 'Session', 'set_keys', { 'keys': keys, 'proof': '0x00', } ) keypair = Keypair.create_from_mnemonic(mnemonic) extrinsic = substrate.create_signed_extrinsic(call=call, keypair=keypair) ``` Error: ``` scalecodec.exceptions.RemainingScaleBytesNotEmptyException:...
Hi, I am starting to focus on creating an SDK to utilize the polkadot and evm functions for our substrate based chain. However, when trying to use the most recent...
Similar functionality to the [evmToAddress](https://github.com/polkadot-js/common/blob/8b0f5bf46e3edf2f52001c499ccdd555d5bdf5c2/packages/util-crypto/src/address/evmToAddress.ts#L13) function in ts - but for python. How to use: ``` evm_address = "0x3e3FF16083Bf0a444B8fF86C7156eB3368e3cefB" ss58_format = 42 ss58_address = evm_to_address(evm_address, ss58_format) print(f"SS58 Address: {ss58_address}") ```...
https://polkascan.github.io/py-substrate-metadata-docs/ is neither indexed, nor has the search feature.