Ankr Endpoint

How to obtain the Ankr End-Point and make a simple request

Obtain Ankr End-point

After successfully deploying a Binance Smartchain Full node, the End-point can be found on the application details, on the Information screen:

The RPC Endpoint has the following format:

http://<your-app-id>.ankr.com

Example (as shown in the image above):

http://app-82026c54-a336-4ce4-bcae-352824351322.cls-593f3f46-316e-4f00-8ebd-9a45cfde390d.ankr.com

The Websocket endpoint has this form:

http://ws-<your-app-id>.ankr.com

Example (as shown in the image above):

http://ws-app-82026c54-a336-4ce4-bcae-352824351322.cls-593f3f46-316e-4f00-8ebd-9a45cfde390d.ankr.com

Simple Json-RPC Request

// Request
curl -H "Content-Type: application/json" -d '{"id":1, "jsonrpc":"2.0", "method": "web3_clientVersion","params": []}' http://<your-app-id>.ankr.com
// Result
{
"jsonrpc":"2.0",
"id":1,
"result":"Bor/v1.9.16-stable-a1b7e2fc/linux-amd64/go1.13.14"
}