ERPC - Enhanced Solana RPC Documentation
Solana RPC Endpoint
Please add your API key to the 'api-key' parameter.
https://edge.erpc.global?api-key=<YOUR_API_KEY>
Examples:
Here is an HTTP request example.
curl https://edge.erpc.global?api-key=<YOUR_API_KEY> --header 'Content-Type: application/json' --data '{ "jsonrpc":"2.0","id":1, "method":"getBlockHeight" }'
Here is a WebSocket subscription example. The host is the same as HTTP.
wss://edge.erpc.global?api-key=<YOUR_API_KEY>
# Example: subscribe to slot updates wscat -c "wss://edge.erpc.global?api-key=<YOUR_API_KEY>" # After connected, send: {"jsonrpc":"2.0","id":1,"method":"slotSubscribe"}
You can obtain and check your API key on the Validators DAO Discord: https://discord.gg/C7ZQSrCkYR
If you need lower latency than WebSocket, consider Geyser gRPC or ShredStream. You can discuss details with us on Discord.
Solana RPC Methods and Documentation
For the full list of methods, parameters, and subscription specifications, please refer to the official documentation. It covers both HTTP and WebSocket usage.