Base Endpoint
https://solspect.xyz/proxy.php
All requests are POST with a JSON-RPC 2.0 body. We proxy to Solana mainnet.
Authentication
No auth required. Please respect reasonable rate limits (~10 requests/second).
Available Methods
POST
getSlot
Returns the current slot number.
{
"jsonrpc": "2.0",
"id": 1,
"method": "getSlot",
"params": []
}
POST
getBalance
Returns the lamport balance of a Solana account.
{
"jsonrpc": "2.0",
"id": 1,
"method": "getBalance",
"params": ["<pubkey>"]
}
POST
getTransaction
Returns full transaction details for a signature.
{
"jsonrpc": "2.0",
"id": 1,
"method": "getTransaction",
"params": [
"<signature>",
{ "encoding": "jsonParsed", "maxSupportedTransactionVersion": 1 }
]
}
POST
getAccountInfo
Returns account metadata for a pubkey.
{
"jsonrpc": "2.0",
"id": 1,
"method": "getAccountInfo",
"params": ["<pubkey>", { "encoding": "jsonParsed" }]
}
Full Method Reference
We support the full Solana JSON-RPC standard. For a complete list of methods, see the official Solana JSON-RPC docs.
Example: cURL
curl -X POST https://solspect.xyz/proxy.php \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"getSlot","params":[]}'
Rate Limits
- 10 req/sec recommended
- 100 req/min soft limit
- Exceeding limits may result in temporary 429 responses
Support
Questions? Reach out via our Contact page.