Get started with a reliable Polkadot RPC endpoint to use the tools below.
@polkadot/api (JavaScript/TypeScript)
Build dApps using the canonical JavaScript/TypeScript client maintained by Parity.
- Install the Polkadot API package:
- Connect over WebSocket:
Use the ApiPromise to connect to your Chainstack node endpoint:
where YOUR_CHAINSTACK_WSS_ENDPOINT is your Chainstack WebSocket endpoint.
py-substrate-interface (Python)
Pythonic wrapper for Substrate JSON-RPC with SCALE codec helpers.
- Install py-substrate-interface:
- Connect and query:
where YOUR_CHAINSTACK_WSS_ENDPOINT is your Chainstack WebSocket endpoint.
subxt (Rust)
Generate type-safe Rust bindings from chain metadata for robust substrate interactions.
- Add subxt to your
Cargo.toml:
- Generate metadata and create client:
where YOUR_CHAINSTACK_WSS_ENDPOINT is your Chainstack WebSocket endpoint.
GSRPC (Go)
Go Substrate RPC client that mirrors @polkadot/api features.
- Install GSRPC:
- Connect and query:
where YOUR_CHAINSTACK_HTTPS_ENDPOINT is your Chainstack HTTP endpoint.
Substrate sidecar
REST gateway that exposes common chain data without running a full indexer.
Chainstack runs the sidecar for you, so all you need is to get the endpoint on your node details and query it.
Example:
where YOUR_CHAINSTACK_SIDECAR_ENDPOINT is your Chainstack sidecar endpoint. Last modified on October 20, 2025