Skip to main content
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.
  1. Install the Polkadot API package:
  1. 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.
  1. Install py-substrate-interface:
  1. 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.
  1. Add subxt to your Cargo.toml:
  1. 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.
  1. Install GSRPC:
  1. 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