Ankr Json-RPC Endpoint

How to obtain the JSON-RPC Endpoint URL from your Ankr Node

Get the Endpoint URL

After successfully deploying a node on Ankr you can get the endpoint from the Application details section as seen below:

The RPC Endpoint has the following format:


Example (as shown in the image above):

JSON-RPC request example

curl -H "Content-Type: application/json" -d '{"id":1, "jsonrpc":"2.0", "method": "system_nodeRoles"}'
"jsonrpc": "2.0",
"result": {
"block": {
"extrinsics": [
"header": {
"digest": {
"logs": [
"extrinsicsRoot": "0x8bd4055ccf3d29fb81c20f1be6d0a26c41cf2cffdb6ef9b7e697472336756566",
"number": "0xc350",
"parentHash": "0xadd46abd2d58793c95f1a59ef4a06c725bae9586620d43f6021b5d7647d12f42",
"stateRoot": "0x808d486319f8b72b04e2e3aa03f66c144c359323882d458a731b9b78dbea7356"
"justification": null
"id": 1

In the next section, you will find a detailed description of the provided Near API endpoints which can also be consulted in the Polkadot official documentation