Node Endpoints

Ideally, one may run their own node when interacting with the Polkadot networkarrow-up-right via Polkadot-JS Appsarrow-up-right or other UIs and programmatic methods. Another option would be to connect to one of the several public endpoints provided by infrastructure and API service providers. For development convenience, Parity Techarrow-up-right maintains archive nodes for Polkadot, Kusama, and their test networks with public endpoints. These endpoints can be used with Polkadot-JS APIarrow-up-right to interact with their respective chains. The tables below list these endpoints.

Network Endpointsarrow-up-right

Main Networksarrow-up-right

Network
URL

Polkadot

wss://rpc.polkadot.io

Kusama

wss://kusama-rpc.polkadot.io

Test Networksarrow-up-right

Network
URL

Westend

wss://westend-rpc.polkadot.io

Rococo

wss://rococo-rpc.polkadot.io

Example usage with Polkadot-JS APIarrow-up-right

To connect to the Parity node, use the endpoint in your JavaScript apps like so:

// Using the Polkadot Mainnet Endpointconst { ApiPromise, WsProvider } = require('@polkadot/api');async () => {  // Construct a provider with the endpoint URL  const provider = new WsProvider('wss://rpc.polkadot.io/');  // Create an API instance for Polkadot  const api = await ApiPromise.create({ provider });  // ...

Last updated