---
updatedAt: 2026-05-13T16:20:14.000Z
---

Fetch the complete documentation index at: https://docs.blockdaemon.com/llms.txt. Use this file to discover all available pages before exploring further. Append .md to any documentation page URL to get its markdown version.

# Polkadot via Substrate RPC API

**Step 1:** To access Polkadot via Substrate RPC, use the native access endpoint with `/http-rpc` at the end:

* **Network:** Polkadot Mainnet
* **Request Type:** POST

```
https://svc.blockdaemon.com/polkadot/mainnet/native/http-rpc
```

* **Network:** Polkadot Westend
* **Request Type:** POST

```
https://svc.blockdaemon.com/polkadot/westend/native/http-rpc
```

* **Network:** Polkadot Mainnet Asset Hub
* **Request Type:** POST

```
https://svc.blockdaemon.com/polkadot/mainnet/native/assethub/http-rpc
```

* *Network:*\* Polkadot Westend Asset Hub
* **Request Type:** POST

```
https://svc.blockdaemon.com/polkadot/westend/native/assethub/http-rpc
```

**Step 2:** Authenticate your request using your API key. You can include the API key using either of the following headers:

```curl Bearer Token
Authorization: Bearer YOUR_API_KEY
```

```curl X-API-Key
X-API-Key: YOUR_API_KEY
```

**Step 3:** Specify a Substrate RPC method in the request body:

> Learn more about Polkadot methods [here](https://docs.blockdaemon.com/reference/polkadot-methods-rpc-api).

```json
{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "YOUR_METHOD",
    "params": []
}
```

## Example Request for Substrate RPC API

Here is a cURL example for using **[system\_syncState](https://polkadot.js.org/docs/substrate/rpc/#syncstate-syncstate)** to get the chainspec running the node, with a sync state, in Polkadot Mainnet:

```curl
curl -X POST \
https://svc.blockdaemon.com/polkadot/mainnet/native/http-rpc \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"jsonrpc": "2.0", "id": 1, "method": "system_syncState", "params": []}'
```

The following is a typical response you will get:

```json
{
    "jsonrpc": "2.0",
    "result": {
        "startingBlock": 11614877,
        "currentBlock": 11615160
    },
    "id": 1
}
```

## 👋 Need Help?

Contact us through [email](mailto:support@blockdaemon.com) or our [support page](https://www.blockdaemon.com/support) for any issues, bugs, or assistance you may need.