⚡
SolanaRPC - Docs
  • General
    • Intro
    • Credits and rate limits
    • Start using
  • API's
    • RPC calls
      • HTTP Methods
      • WEB Sockets
    • WEB Hooks
    • Programs
    • Backfilling
  • Specs
    • Transaction Filter
    • Parsed Transaction
Powered by GitBook
On this page
  • Creating your first APP
  • Authenticating requests
  1. General

Start using

Last updated 1 year ago

To kickstart the integration of our APIs, we invite you to visit our Developer Portal at . Here, you can log in with the available methods tailored to your convenience. Once logged in, you're automatically gifted a free plan, offering you the ability to start experimenting with our endpoints without delay. This plan is expertly designed to provide you with an immediate, practical introduction to the capabilities and performance of our services.

Creating your first APP

Within the Developer Portal, the concept of APPs serves a critical role in managing and isolating the API requests originating from various applications you may be developing. By creating distinct APPs for different elements of your projects, such as a separate APP for an RPC endpoint in your public-facing web application, you ensure a clear separation of concerns. This approach allows specific endpoints to be designated as public while maintaining strict access controls, thereby preventing publically exposed endpoints from interacting with more sensitive, private APIs. The intention behind this design is to enhance security, organization, and efficiency in how your applications interact with our API services.

Step-by-Step Guide to Creating Your First APP

To begin creating your first APP, follow these steps:

  1. Navigate to the Developer Portal at .

  2. Click on the apps section.

  3. Select the create app option to start the process.

  4. Enter a name for your APP, making it descriptive of its purpose or the project it's associated with.

  5. Assign a specific API to this APP by selecting from the available options. This API will be the interface that your APP will use to interact with our services.

By following these instructions, you can seamlessly create an APP that is both secure and well-organized, laying the groundwork for effective API management within your projects.

Currently, you can assign only one API per APP. In feature releases and additional API releases, we will remove this limitation.

Authenticating requests

To ensure secure communication with our API, authentication is mandatory. Upon creating your APP, a unique token is generated. This token serves as your key to API access and must be included in every API request.

There are two methods to provide the authentication token:

Query String Parameter

Include the token as a query string parameter named token. Here's a sample of how to include it in your request URL:

https://api.solanarpc.dev/rpc/solana/mainnet?token=YOUR_TOKEN_HERE

Request Header

Alternatively, you can pass the token as a value to the X-Token header. Below is an example of how to include the header in a curl request:

curl --location 'https://api.solanarpc.dev/rpc/solana/mainnet' \
--header 'X-Token: YOUR_TOKEN_HERE' \
...

It is crucial to replace YOUR_TOKEN_HERE with the actual token you received when you created your APP. Proper authentication ensures your requests are valid and secure.

https://developer.solanarpc.dev
https://developer.solanarpc.dev