ZeroCopyZeroCopy

getSlot

POST
/

Read the edge's highest observed slot with getSlot; params and commitment do not affect the result.

Authorization

headerx-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.

Request Body

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
  1. body
jsonrpc*"2.0"
Value in"2.0"
id?||

Optional request id, echoed exactly in the response. Null when absent or refused before the id could be read.

method*"getSlot"
Value in"getSlot"
params?unknown

Ignored when present, so a commitment has no effect.

Response Body

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:

application/json
  1. response
jsonrpc*"2.0"
Value in"2.0"
result*integer

The edge's highest observed slot, not a committed slot.

Range0 <= value
id*||

Optional request id, echoed exactly in the response. Null when absent or refused before the id could be read.

Example Request
curl -X POST 'https://sol.zerocopy.sh' \
  -H 'Content-Type: application/json' \
  -d '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "getSlot"
}'
Example Response
{
  "jsonrpc": "2.0",
  "result": 123456789,
  "id": 1
}