$npx skillfedfor your agent

async-substrate-interface

Asyncio library for interacting with substrate. Mostly API-compatible with py-substrate-interface

SkipPyPI LibrariesReleased Jun 2026382.9K downloads / mopermissive licensePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — async_substrate_interface-2.2.1-py3-none-any.whl
v2.2.1 · released 2026-06-29 · Python <3.15,>=3.10 · 5 runtime deps: aiosqlite, cyscale, typing_extensions, websockets, xxhash

No—not for new projects. The repository is archived and the project is marked abandoned, meaning no active maintenance, security updates, or bug fixes are forthcoming. While the code may work for stable Substrate networks today, you assume all responsibility for future compatibility and security issues. Consider this only if you are maintaining legacy code that already depends on it and cannot migrate to an actively maintained alternative.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.10 or later (supports up to 3.14).
  • If cyscale and py-scale-codec (scalecodec) are both installed, you must uninstall both and reinstall only cyscale to avoid namespace conflicts.
  • Low install friction with a pure-Python wheel distribution.

License · maintenance · safety

permissive license (permissive) — MIT License permits free use, modification, and distribution with minimal restrictions. You may use this in commercial projects, but the abandoned status means you assume responsibility for any future fixes or security patches.

last release 2026-06-29 (46 days) · last repo commit 2026-07-10 · 14 stars · archived

0 known vulnerabilities (OSV.dev, 2026-08-14) · 382,937 downloads/mo, #7,083 on PyPI

Verify before relying

pip install async-substrate-interface

from async_substrate_interface import AsyncSubstrateInterface
import asyncio

async def main():
    substrate = AsyncSubstrateInterface(url="wss://rpc.polkadot.io")
    async with substrate:
        result = await substrate.query(
            module='System',
            storage_function='Account',
            params=['5CZs3T15Ky4jch1sUpSFwkUbYEnsCfe1WCY51fH3SPV6NFnf']
        )
        print(result)

asyncio.run(main())
  • Whether the abandoned status affects real-world reliability for stable Substrate networks or if the API remains functional despite no active maintenance.
  • Performance characteristics of cyscale-based SCALE decoding compared to alternatives in production workloads.
  • Compatibility with recent Substrate runtime versions and whether breaking changes have occurred since the last release on 2026-06-29.
Same gist for agents: .md · .json

What it is and what it does

Async-substrate-interface is a Python library that wraps asynchronous and synchronous access to Substrate-based blockchains (like Polkadot). It lets you query chain state, decode data using the SCALE codec, and interact with blockchain RPC endpoints without blocking your event loop. The library provides both an AsyncSubstrateInterface for async/await patterns and a synchronous SubstrateInterface for blocking code, plus specialized variants like DiskCachedAsyncSubstrateInterface that persist query results to disk across runs.

The package depends on aiosqlite, cyscale, typing_extensions, websockets, and xxhash to handle async database operations, fast SCALE decoding, type hints, WebSocket connections, and hashing. It includes three layers of caching—in-memory LRU for both sync and async, plus optional disk persistence—tunable via environment variables. The main gotcha is a namespace conflict with py-scale-codec (scalecodec); the documentation explicitly requires that only cyscale be installed.

Use it for

  • Query account balances or storage state from Polkadot or other Substrate networks in an async application without blocking.
  • Build a bot or monitoring tool that repeatedly fetches block hashes and runtime metadata, leveraging the built-in LRU and disk caches to reduce network calls.
  • Integrate Substrate chain queries into a larger async service (e.g., a web API or background worker) that needs non-blocking blockchain reads.
  • Decode SCALE-encoded blockchain data quickly using cyscale's optimized codec instead of the slower py-scale-codec.
  • Persist blockchain metadata and query results to disk for tools like btcli that need cache survival across restarts.

Worth the install?

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

Skip

No—not for new projects.

The repository is archived and the project is marked abandoned, meaning no active maintenance, security updates, or bug fixes are forthcoming. While the code may work for stable Substrate networks today, you assume all responsibility for future compatibility and security issues. Consider this only if you are maintaining legacy code that already depends on it and cannot migrate to an actively maintained alternative.

Install

async-substrate-interface on PyPI

Before you install

Low install friction with a pure-Python wheel distribution. However, the repository is archived and marked abandoned as of the fact sheet date, meaning no active maintenance or security updates are expected going forward.

Requires Python 3.10 or later (supports up to 3.14). If cyscale and py-scale-codec (scalecodec) are both installed, you must uninstall both and reinstall only cyscale to avoid namespace conflicts.

License in practice

MIT License permits free use, modification, and distribution with minimal restrictions. You may use this in commercial projects, but the abandoned status means you assume responsibility for any future fixes or security patches.

Quickstart

pip install async-substrate-interface

from async_substrate_interface import AsyncSubstrateInterface
import asyncio

async def main():
    substrate = AsyncSubstrateInterface(url="wss://rpc.polkadot.io")
    async with substrate:
        result = await substrate.query(
            module='System',
            storage_function='Account',
            params=['5CZs3T15Ky4jch1sUpSFwkUbYEnsCfe1WCY51fH3SPV6NFnf']
        )
        print(result)

asyncio.run(main())

Verify before relying

  • Whether the abandoned status affects real-world reliability for stable Substrate networks or if the API remains functional despite no active maintenance.
  • Performance characteristics of cyscale-based SCALE decoding compared to alternatives in production workloads.
  • Compatibility with recent Substrate runtime versions and whether breaking changes have occurred since the last release on 2026-06-29.

Package facts

Licensepermissive license permissive
Python supportSupports the current Python release <3.15,>=3.10
Install frictionLow. Pure-Python wheel
Runtime dependencies
5 packages
aiosqlitecyscaletyping_extensionswebsocketsxxhash
MaintenanceAbandoned 46 days since the last release
Last repo commit repository archived
First released
Downloads382,937 / month, #7,083 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 :: MIT LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Software Development :: Libraries

Evidence: async_substrate_interface-2.2.1-py3-none-any.whl

Tags

Capabilities
substrate blockchain async clientpolkadot rpc interfacesubstrate query libraryasync blockchain interactionsubstrate network interfaceblockchain rpc client pythonsubstrate chain queries
Topics
substrate-blockchainasync-rpcabandoned-project
PyPI keywords
substratedevelopmentbittensor

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 › “substrate blockchain async client”

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

More Libraries packages

urllib3 Worth it
PyPI · Libraries · released May 2026

urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.

MITpure Python · 3.10+
1.8Bdownloads / mo
requests Worth it
PyPI · Libraries · released May 2026

Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.

Apache-2.0pure Python · 3.10+
1.8Bdownloads / mo
pluggy Worth it
PyPI · Libraries · released May 2025

Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.

Install it if you're building an extensible application or framework.

MITpure Python · 3.9+aging
1.3Bdownloads / mo
python-dateutil Worth it
PyPI · Libraries · released Mar 2024

Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.

Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.

Apache-2.0pure Python
1.2Bdownloads / mo
six With conditions
PyPI · Libraries · released Dec 2024

Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.

MITpure Python
1.2Bdownloads / mo
pytest Worth it
PyPI · Libraries · released Jun 2026

pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.

MITpure Python · 3.10+
1.1Bdownloads / mo

See also cyscale · substrate-interface · scalecodec · smoldot-light · bittensor · bittensor-wallet · aiodataloader · async-lru · injective-py · nab-index