Base URL
All API endpoints are relative to:https://api.voltr.xyz
Authentication
The Ranger Earn API is public and does not require an API key for access.Key Concept: Transaction Building
A critical feature of the Ranger Earn API is its approach to transaction creation. Instead of executing transactions on the server, the API builds and returns an unsigned, serialized versioned transaction as a base58 encoded string. This design ensures that user private keys are never required on the backend, maintaining a non-custodial and secure user experience.Typical Workflow
1
Request
Your application sends a
POST request to a transaction creation endpoint (e.g., /vault/{pubkey}/deposit).2
Receive
The API returns a JSON response containing the serialized transaction string.
3
Sign & Send
Your client-side application deserializes this string, signs it with the user’s wallet, and sends it to the Solana network.
Interactive Documentation
For live testing and a detailed, interactive view of all endpoints, visit the Swagger documentation:Swagger API Docs
Interactive API documentation with live testing