Prerequisites
- Node.js 18+ or Bun
- A Solana wallet (Phantom, Solflare, or a keypair file)
- The gateway base URL (self-hosted or your deployment)
1
Top up your wallet
Send SOL to the gateway’s deposit address. Once the on-chain deposit is detected, a pending API key is provisioned for your wallet and stored server-side until you claim it.
2
Request a challenge
The server issues a one-time random challenge that you must sign with your wallet’s private key.
Response
3
Sign the challenge and claim your key
Sign the raw challenge bytes with Ed25519, then POST the wallet address, base58 signature, and the original challenge back to the gateway.The response contains your API key. Store it securely; the pending record is deleted after claim.
4
Make your first authenticated call
Pass the key on any paid endpoint. Try the token profile tool for a well-known mint.You get back the mint’s decimals, supply, security flags, and top holders.
What just happened
- The gateway verified you own the wallet by validating your Ed25519 signature over the server-issued challenge.
- Your pending key was released from the
pending_claimstable and returned once. - The paid endpoint debited your credit balance and returned processed intelligence, not raw RPC.
Next steps
Authentication
Header formats, key rotation, and error responses.
Intelligence tools
Full reference for the agent-facing endpoints.