@polkadot/api (JavaScript/TypeScript)
Build dApps using the canonical JavaScript/TypeScript client maintained by Parity.- Install the Polkadot API package:
- Connect over WebSocket:
ApiPromise
to connect to your Chainstack node endpoint:
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:
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:
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:
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:YOUR_CHAINSTACK_SIDECAR_ENDPOINT
is your Chainstack sidecar endpoint.