Free Solana RPC
Documentation

Documentation for Ethereum, Gnosis, Binance Smart Chain, Optimism, Solana, Polygon, Fantom, Celo, Arbitrum, Algorand, and Avalanche RPCs across multiple software languages, libraries and SDKs including cURL, Python, Ruby and JavaScript.

Get started with Solana development using these docs - send suggestions for improvements to [email protected]

Contents

QuickNode Solana RPC Overview

At QuickNode, we run Solana RPC endpoints. In aggregate we serve more than 50 billion requests every month. To make it easier for developers to integrate with QuickNode, we've created this documentation that shows how to call RPC methods using libraries in Python, Ruby, JavaScript, cURL.

With QuickNode, you either have a dedicated endpoint which is always serving traffic from the same location as designated when you booted the endpoint or you get access to our global network which always routes to the nearest available endpoint.

Authentication Options

Token Authentication - By default, all endpoints created on QuickNode are protected by a token in the URL which looks something like this:

Please note the / at the end of the URL. Without it, you will receive 404 errors.

Approved Referrer List - For endpoints on the shared network, you are able to add a list of approved referrers. This requires any HTTP request to send a Referrer header or any WebSocket request to send a Origin header populated with one of the referrers you entered into our user panel.

Disabling Token Authentication - You can also disable the token authentication completely in your security settings for a given endpoint. This will allow anyone to make requests to the endpoint without the token.

If you're running a dedicated endpoint, you cannot disable token authentication or roll your token - so be careful where you share your endpoint URL!

Rolling Authentication Token - You can also roll your authentication token over in your security settings - when you do this, the previous authentication token will be immediately revoked/disabled, so please be careful with this.

Installing Web3 SDKs

cURL

Most *nix based systems have cURL support out of the box. cURL is a command line tool and library for transferring data with URLs. Check if you have it by running the following:

    curl -h

Solana-Py

Solana-Py is a Python library for interacting with Solana. If you'd like to use it, please be sure to install it (and dependencies) like so:

    pip install solana cachetools

JsonRpcClient

Generate JSON-RPC requests and parse responses in Python. Install it using the following command:

    pip install jsonrpcclient

Requests

Requests is an elegant and simple HTTP library for Python, built for human beings. Install it using the following command:

    python -m pip install requests

Solana/Web3.js

Solana/Web3.js is a Json RPC library on JavaScript that is updated by the Solana Labs team. You can install it with the following command:

    npm install @solana/web3.js

Axios

Axios is a promise-based HTTP Client for node.js and the browser. On the server-side it uses the native node.js http module, while on the client (browser) it uses XMLHttpRequests. Install it using the following command:

    npm install axios

Network support

Network WSS HTTPS
Devnet
Testnet
Mainnet