Builderoom

September 28, 2026

View repo

A TypeScript library providing Promise and RxJS API wrappers for Polkadot and Substrate chains.

Apache-2.0

Product facts

Type
API, SDK & Library
Category
Development & Engineering › API Integration
Pricing
Open source
License
Apache-2.0
Launched
Sep 28, 2026
Listed
Sep 28, 2026
Website
github.com

Overview

GitHubGitHub

## Introduction `@polkadot/api` is a TypeScript library that wraps all methods exposed by Polkadot and Substrate network clients and defines every type the node exposes. It interacts with Polkadot- and Substrate-based blockchains via RPC calls. ## Core Mechanism The library's API is dynamically generated from the information provided in the Substrate runtime metadata. This means that when the underlying chain's runtime changes, the API automatically adapts to new interfaces and types without requiring manual maintenance of extensive hardcoded definitions. ## Key Capabilities - **Promise API**: Supports issuing queries and submitting transactions using standard Promise patterns. - **RxJS API**: Supports subscribing to on-chain state changes and handling asynchronous operations via RxJS reactive streams. - **Type Definitions**: Includes built-in definitions for all types exposed by the node, enabling type hints and checks in TypeScript projects. - **RPC Calls**: Communicates with chain nodes under the hood using the JSON-RPC protocol. ## Use Cases Ideal for developers who need to interact with blockchains in the Polkadot and Substrate ecosystems, such as building DApp frontends, writing off-chain services, or developing automation scripts. Full documentation and usage examples (including how to issue queries and submit transactions) are available on the official documentation portal. When upgrading versions, it is recommended to review the CHANGELOG.

Key features

  • Promise API: Provides a Promise-based interface for issuing queries and submitting transactions to Polkadot/Substrate chains.
  • RxJS API: Provides an RxJS-based reactive interface for subscribing to and processing on-chain data streams.
  • Dynamic Generation: The API is dynamically generated from Substrate runtime metadata, automatically adapting to interface changes on the chain.
  • Complete Type Definitions: Defines all types exposed by the node, supporting TypeScript type checking.
  • RPC Communication: Interacts with Polkadot and Substrate network clients via JSON-RPC calls.

Releases

Notify me

Initial · @polkadot/api

Q&A

Which blockchains does this library support?AI-generated
It supports all Polkadot- and Substrate-based blockchain networks.
Is the API statically defined?AI-generated
No. The API is dynamically generated from the information provided in the Substrate runtime metadata.
Where can I find usage tutorials?AI-generated
You can find example guides on how to use the API to issue queries and submit transactions at the official documentation portal polkadot.js.org/docs/api/examples/promise/.
What should I watch out for when upgrading versions?AI-generated
It is recommended to review the CHANGELOG file in the repository when changing versions.
View repo
Bookmark

This product has no owner yet

It was listed by the platform or its author left. If it is your work, prove your relationship to become the owner.

Claim this product

Alternatives

The product content on this page was translated by AI from the author's original.