Key types
| Type | Purpose |
|---|---|
| RPC Key | JSON-RPC, WebSocket, and REST API access |
| gRPC Key | gRPC streaming connections (Yellowstone) |
| SWQoS Key | Stake-weighted QoS transaction sending |
| API Key | General API access |
Create a key
Open the API Keys dashboard
Go to Dashboard → API Keys and click Create Key.
Name and type your key
Enter a label (for example,
production-rpc) and select the key type that matches the service you’re using.Use your key
You can pass your key either as a query parameter or as anAuthorization header. Both methods work for all Solami endpoints.
- Query parameter
Append
?api_key=YOUR_API_KEY to the endpoint URL.Endpoint URLs by service
| Service | URL |
|---|---|
| RPC | https://rpc.solami.fast/sol?api_key=YOUR_API_KEY |
| WebSocket | wss://rpc.solami.fast/ws/sol?api_key=YOUR_API_KEY |
| gRPC | https://grpc.solami.fast?api_key=YOUR_API_KEY |
Revoke a key
Go to Dashboard → API Keys, find the key you want to remove, and click Revoke. Revoked keys stop working immediately — there is no grace period.Best practices
One key per app
Use a separate key for each application or environment. This limits blast radius if a key is exposed and makes it easier to rotate access without downtime.
Rotate regularly
Create a new key, update your application, then revoke the old one. Rotating keys periodically reduces the risk of long-lived credentials being compromised.
Use the right key type
Use a SWQoS Key when sending transactions, a gRPC Key for streaming connections, and an RPC Key for everything else. Avoid using a single key for all services.
Never commit keys
Keep keys out of source code and version control. Use environment variables or a secrets manager like AWS Secrets Manager, HashiCorp Vault, or Doppler.