getSlot
Read the edge's highest observed slot with getSlot; params and commitment do not affect the result.
x-api-key<token>API key. Precedence: api-key query parameter, x-api-key header, then Authorization: Bearer. The first form present wins, even if empty or invalid. Bearer followed by a space is case-sensitive. Prefer a header to avoid URL logs.
One JSON object, at most 65,536 bytes, received within 2 seconds. Batches are not supported. The method takes no params. The ZeroCopy Agent reports its own state.
application/json- body
jsonrpc*"2.0""2.0"id?||Optional request id, echoed exactly in the response. Null when absent or refused before the id could be read.
method*"getSlot""getSlot"params?unknownIgnored when present, so a commitment has no effect.
Returns the edge's highest observed slot as an integer, not a committed slot. Use your Solana RPC provider for confirmation and block heights.
Refusals with HTTP 200, by error.data.reason:
invalid_request: invalid JSON-RPC body.
application/json- response
jsonrpc*"2.0""2.0"result*integerThe edge's highest observed slot, not a committed slot.
0 <= valueid*||Optional request id, echoed exactly in the response. Null when absent or refused before the id could be read.
curl -X POST 'https://sol.zerocopy.sh' \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "getSlot"
}'{
"jsonrpc": "2.0",
"result": 123456789,
"id": 1
}