$npx skillfedfor your agent

substrate-interface

Library for interfacing with a Substrate node

Worth itPyPI InternetReleased Jan 2026261.7K downloads / mopermissive licensePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — substrate_interface-1.8.1-py3-none-any.whl
v1.8.1 · released 2026-01-20 · Python <4,>=3.7 · 16 runtime deps: websocket-client, base58, certifi, idna, requests, xxhash, ecdsa, eth-keys

Yes. Active maintenance, no known vulnerabilities, permissive license, and low install friction make this a solid choice for Substrate blockchain development. The 16 dependencies are well-established cryptographic and networking libraries. Install if you need to interact with Polkadot, Kusama, or other Substrate chains from Python.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires a running Substrate node RPC endpoint (local or remote) or uses embedded light client via smoldot-light; WebSocket connectivity needed.
  • Low friction installation with a pure-Python wheel.
  • Actively maintained with recent commits and no known vulnerabilities.

License · maintenance · safety

permissive license (permissive) — Licensed under Apache Software License (permissive), allowing commercial and private use with minimal restrictions.

last release 2026-01-20 (206 days) · last repo commit 2026-06-15 · 256 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 261,738 downloads/mo, #8,382 on PyPI

Verify before relying

pip install substrate-interface

from substrate_interface import SubstrateInterface

substrate = SubstrateInterface(url="ws://127.0.0.1:9944")
result = substrate.query('System', 'Account', ['F4xQKRUagnSGjFqafyhajLs94e7Vvzvr8ebwYJceKpr8R7T'])
print(result.value['data']['free'])
  • Performance characteristics when querying large datasets or high-frequency RPC calls
  • Compatibility scope with runtimes older than MetadataV14 or under active development
Same gist for agents: .md · .json

What it is and what it does

substrate-interface is a Python client library for interacting with Substrate-based blockchains like Polkadot and Kusama. It provides methods to query on-chain storage, compose and sign transactions (extrinsics), and handle the SCALE codec used by Substrate runtimes. The library can connect either to a remote node via WebSocket RPC or use an embedded light client.

The package wraps low-level blockchain operations into higher-level Python abstractions, automatically discovering runtime metadata and chain properties from the connected node. It handles cryptographic signing via keypairs, manages account balances and state queries, and abstracts away the complexity of SCALE encoding for common operations. With 16 runtime dependencies including cryptographic libraries (ecdsa, PyNaCl, pycryptodome) and codec tools (scalecodec, xxhash), it provides a complete toolkit for Substrate development.

Use it for

  • Query account balances and storage state from a Polkadot or Kusama node
  • Compose and submit signed transactions (extrinsics) to transfer funds or call runtime functions
  • Build automation scripts that interact with Substrate-based chains programmatically
  • Decode and encode SCALE-formatted data for custom runtime interactions
  • Monitor on-chain events and state changes via RPC subscriptions

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

Active maintenance, no known vulnerabilities, permissive license, and low install friction make this a solid choice for Substrate blockchain development. The 16 dependencies are well-established cryptographic and networking libraries. Install if you need to interact with Polkadot, Kusama, or other Substrate chains from Python.

Install

substrate-interface on PyPI

Before you install

Low friction installation with a pure-Python wheel. Actively maintained with recent commits and no known vulnerabilities. Supports Python 3.7 through 3.11.

Requires a running Substrate node RPC endpoint (local or remote) or uses embedded light client via smoldot-light; WebSocket connectivity needed.

License in practice

Licensed under Apache Software License (permissive), allowing commercial and private use with minimal restrictions.

Quickstart

pip install substrate-interface

from substrate_interface import SubstrateInterface

substrate = SubstrateInterface(url="ws://127.0.0.1:9944")
result = substrate.query('System', 'Account', ['F4xQKRUagnSGjFqafyhajLs94e7Vvzvr8ebwYJceKpr8R7T'])
print(result.value['data']['free'])

Verify before relying

  • Performance characteristics when querying large datasets or high-frequency RPC calls
  • Compatibility scope with runtimes older than MetadataV14 or under active development

Package facts

Licensepermissive license permissive
Python supportSupports the current Python release <4,>=3.7
Install frictionLow. Pure-Python wheel
Runtime dependencies
16 packages
websocket-clientbase58certifiidnarequestsxxhashecdsaeth-keyseth_utilspycryptodomePyNaClscalecodecpy-sr25519-bindingspy-ed25519-zebra-bindingspy-bip39-bindingssmoldot-light
MaintenanceActively maintained 206 days since the last release
Last repo commit
First released
Downloads261,738 / month, #8,382 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9

Evidence: substrate_interface-1.8.1-py3-none-any.whl

Tags

Capabilities
substrate blockchain interfacepolkadot python clientsubstrate rpc libraryscale encoding decodingkusama node interaction
Topics
blockchaincryptographyrpc-client
PyPI keywords
interfacepolkascanpolkadotsubstrateblockchainrpckusama

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “kusama node interaction”

  • substrate-interfaceInterfaces with Substrate blockchain nodes to query storage, compose…
  • smoldot-lightPython bindings for the smoldot_light Rust crate that run a…
  • cyscaleCython-accelerated encoder and decoder for the SCALE codec used by…

Give your agent the search over MCP, or paste the wish link into any chat.

More Internet packages

botocore Worth it
PyPI · Internet · released Aug 2026

Botocore provides low-level, data-driven access to Amazon Web Services APIs, serving as the foundation for the AWS CLI and boto3 libraries.

Install it if you need programmatic access to AWS services.

permissive licensepure Python · 3.10+
1.5Bdownloads / mo
aiobotocore Worth it
PyPI · Internet · released Aug 2026

Provides an async client for AWS services using botocore and aiohttp, allowing you to call AWS APIs asynchronously within asyncio-based applications.

Install it if you need to call AWS services from async Python code; it is the standard way to do so.

Apache-2.0pure Python · 3.10+
1.2Bdownloads / mo
pydantic Worth it
PyPI · Python Modules · released May 2026

Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.

MITpure Python · 3.9+
1.1Bdownloads / mo
filelock Worth it
PyPI · Libraries · released Aug 2026

Provides a platform-independent file locking mechanism to coordinate access to files across processes and threads.

MITpure Python · 3.10+
717.1Mdownloads / mo
fastapi Worth it
PyPI · Software Development · released Jul 2026

FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.

MITpure Python · 3.10+
568.6Mdownloads / mo
googleapis-common-protos Worth it
PyPI · Internet · released Aug 2026

Provides common Protocol Buffer message definitions used across Google Cloud APIs, enabling Python clients to interact with Google services.

Apache-2.0pure Python · 3.10+
513.7Mdownloads / mo

See also async-substrate-interface · scalecodec · smoldot-light · cyscale · bittensor-wallet · aptos-sdk · cosmpy · rlp · stellar-sdk · tonsdk