Skip to main content

⚡ How to Issue an API Key for Node RPC Access

  1. Visit the RPC endpoints page.
  2. Click the Create New Endpoint button.
  3. Configure your new endpoint:
    • Select a Chain from the dropdown.
    • Choose the desired Network.
    • Add a Name and (optionally) a Description.
  4. Click Create endpoint.

✅ Your RPC endpoint will now appear in the list of available endpoints.


How to Test API Endpoints

Check Your API Key

You can find your API key in two places:

From the RPC Endpoints Page

  • Click the Copy API Key button.

From the Endpoint Detail Page

  • Click on your endpoint to open its detail page.
  • Then click Copy API Key.
  • You can also click Configure to view the HTTPS and WSS endpoints.

Execute the Node RPC with TypeScript

Here’s an example using the Soneium Minato Node RPC endpoint:

const API_URL = "https://soneium-minato.rpc.scs.startale.com"; // Replace if using Astar or AstarZK
const API_KEY = "YOUR_API_KEY"; // Replace with your actual API Key

const payload = {
id: 1,
jsonrpc: "2.0",
method: "eth_blockNumber",
};

async function getBlockNumber() {
const response = await fetch(`${API_URL}?apikey=${API_KEY}`, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify(payload),
});

if (!response.ok) {
throw new Error(`HTTP error! status: ${response.status}`);
}

const data = await response.json();
console.log(`Latest block number: ${parseInt(data.result, 16)}`);
}

getBlockNumber();

Run It Using Node.js

npx tsc index.ts
node index.ts

Expected output:

Latest block number: 4745445
Congratulations!

You’ve successfully sent your first request to the SCS Node RPC API endpoint.



How to Check Endpoint Status

Go to the RPC endpoints page.

Click the Detail button next to your endpoint.

Under the Usage tab, you’ll find detailed statistics and request metrics.


More Resources