API reference
Solana relay
The pages reach Solana through this relay, so the site's connection key never leaves the server.
Send one RPC request
POST
/api/rpcNo sign in, CSRF headerTakes one standard Solana JSON-RPC request and answers the RPC's own JSON. One request at a time: batches are refused. The body can be up to 8 KB.
- Sign in
- Not needed
- CSRF header
- Needed:
x-zpad: zpad - Cached
- Never
- Rate limit
- 120 a minute per address (IP), of which 20 sends
Body
Response
{
"jsonrpc": "2.0",
"id": <your id>,
"result": <the method's answer>
}Errors
Example
curl -s -X POST "/api/rpc" \
-H "x-zpad: zpad" \
-H "content-type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"getBalance","params":["<wallet address>"]}'