Quickstart
Account sign-up, API key and a first Solana RPC call in cURL, TypeScript, Python or Rust.
From sign-up to a working Solana RPC call. The code examples need Node.js 20 or later, Python 3, or Rust.
Getting an account
Accounts are created at constant-k.com/registration.
Plan activation
Plans are activated on the pricing page. Free includes Solana RPC for testing. Paid plans raise the limits and add WebSockets, Kaldera gRPC and ShredPrism. See Plans & Limits.
API key
The Endpoints section of My Account holds your API key and your endpoint URLs.
An environment variable holds the key:
export CK_API_KEY="YOUR_API_KEY"A key committed to a repository, or shipped in browser code, is readable by anyone. See Key handling.
First call
getSlot is available on every plan, including Free.
curl "https://rpc-newyork.constant-k.com/?api-key=YOUR_API_KEY" \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"getSlot"}'A successful call returns the slot number:
{ "jsonrpc": "2.0", "result": 447913193, "id": 1 }401 or 403 means the key is missing or wrong. See Authentication.
The endpoint in other tools
The endpoint URL works anywhere that accepts a custom Solana RPC URL: wallets, trading bots, Jupiter, scripts and SDKs. It is the full URL, key included:
https://rpc-newyork.constant-k.com/?api-key=YOUR_API_KEYThe region closest to your servers gives the lowest latency. See Endpoints.