Skip to content

JSON-RPC Providers

The Polkadot-API entry point is createClient(provider). It takes a JsonRpcProvider that connects to a JSON-RPC endpoint, enabling Polkadot-API to interact with the chain.

Providers

We have mainly two first-class providers:

Enhancers

Besides providers, we offer some enhancers (aka middlewares) for JSON-RPC providers, some of them increasing capabilities, and others fixing external issues.

JSON-RPC providers in-depth

For a description of the provider interface, behaviour and advanced use cases such as building your own providers, check out our JSON-RPC Provider Interface Docs.