Releases: polkascan/py-substrate-interface
Releases · polkascan/py-substrate-interface
Added ExtrinsicResult interface object
ExtrinsicResult
objects can be created with all existing extrinsics on-chain:
result = ExtrinsicResult(
substrate=substrate,
extrinsic_hash="0x56fea3010910bd8c0c97253ffe308dc13d1613b7e952e7e2028257d2b83c027a",
block_hash="0x04fb003f8bc999eeb284aa8e74f2c6f63cf5bd5c00d0d0da4cd4d253a643e4c9"
)
print(result.is_success) # False
print(result.weight) # 359262000
print(result.total_fee_amount) # 2483332406
print(result.error_message['docs']) # [' Sender is not a sub-account.']
substrate.query()
usage:
result = substrate.query(
module='System',
storage_function='Account',
params=['F4xQKRUagnSGjFqafyhajLs94e7Vvzvr8ebwYJceKpr8R7T']
)
print(result.value['nonce']) # 7695
print(result.value['data']['free']) # 635278638077956496
Added possibility to provide existing runtime configuration
v0.10.3 Merge remote-tracking branch 'origin/master'
Added support for multiple runtime configurations
Separate runtime configuration per SubstrateInterface
instance, dropped singleton use
Fixed missing websocket class property init
v0.10.1 Missing class property init
Reimplemented websocket support
- Reimplemented websocket support
- Auto discovery of needed configuration like ss58Format and type registry
Fixed incorrect signature payload for extrinsics > 256 bytes
v0.9.35 Fixed incorrect signature payload for extrinsics > 256 bytes; signatu…
Added Python 3.6 support
- Added Python 3.6 support
- Type registry update
- Updated examples in README.md
Fixed incorrect decoding of blocks containing runtime upgrade
- Fixed incorrect decoding of blocks containing runtime upgrade, metadata and type registry is now fetched from parent block
- Type registry update
- Dependency version bump
- Updated README.md
Added payment info function for fee estimation
v0.9.32 Added payment info function for fee estimation #45
Type registry update
Type registry update to latest Substrate and versioning correction for Kusama, Polkadot and Westend