Skip to main content
Time to read: 1 min

Getting Started with the Rootstock RPC API

Getting Started

Note

The Rootstock RPC API is available on TESTNET and MAINNET.

Visit the Rootstock RPC API

RPC Service Landing Page

Get A FREE Account

To create an account, click on Sign up

RPC Service Sign Up

Get An API Key

To get an API key:

Log in to the dashboard, and click on New API key:

Generate an API key

Choose a name to identify your apikey, and the Network (either Testnet or Mainnet). You can also add a description (optional). Click on Create.

Create API key

Make First API Call

Click on the newly created apikey to get the details:

Make First API Call

You can make your first api call by using one of the provided examples, or simply by adding a url and apikey to your application.

Connect API

Example Request

curl --location --request POST 'https://rpc.testnet.rootstock.io/<your-apikey>' \
--header 'Content-Type: application/json' \
--data ' {
"jsonrpc": "2.0",
"method": "eth_blockNumber",
"params": [],
"id": 0
}'

Response:

{"jsonrpc":"2.0","id":0,"result":"0x4b7eca"}

The daily limit is 25,000 requests per user, and each user can have up to 4 API keys, which allows an easy differentiation for different applications the user wants to test.

Get Support

Join the Rootstock Discord to get support or give feedback.

Last updated on by Owanate Amachree