Skip to content

Get Snaxpot Epoch

Retrieve information about a specific Snaxpot lottery epoch, including epoch metadata and on-chain VRF transaction hashes for verifying the randomness source.

Endpoint

POST https://papi.synthetix.io/v1/info

Request

Request Format

{
  "params": {
    "action": "getSnaxpotEpoch",
    "epochId": "42"
  }
}

Request Parameters

ParameterTypeRequiredDescription
params.actionstringYesMust be "getSnaxpotEpoch"
params.epochIdstringYesThe epoch ID to retrieve (uint64 as string)

No authentication required.

Response

Success Response

{
  "status": "ok",
  "response": {
    "epochId": "42",
    "startTime": "2026-05-01T00:00:00Z",
    "endTime": "2026-05-08T00:00:00Z",
    "drawTime": "2026-05-08T12:00:00Z",
    "status": "completed",
    "prizePool": "10000.00",
    "vrfDrawTxHash": "0xabc123def456abc123def456abc123def456abc123def456abc123def456abc1",
    "vrfSeedTxHash": "0x111222333444555666777888999aaabbbccc000ddd111eee222fff333444555"
  },
  "request_id": "5ccf215d37e3ae6d"
}

Response Fields

FieldTypeDescription
epochIdstringThe epoch identifier
startTimestringEpoch start datetime (RFC3339)
endTimestringEpoch end datetime (RFC3339)
drawTimestringDraw datetime (RFC3339)
statusstringEpoch status (e.g., "active", "completed")
prizePoolstringTotal prize pool in USDT equivalent
vrfDrawTxHashstring | nullOn-chain transaction hash for the VRF draw event. null until the draw transaction is confirmed on-chain, or for historical epochs that predate VRF tracking
vrfSeedTxHashstring | nullOn-chain transaction hash for the VRF seed event. null until the seed transaction is confirmed on-chain, or for historical epochs that predate VRF tracking

vrfDrawTxHash and vrfSeedTxHash enable integrators to verify the randomness source directly on the blockchain. Use these hashes with a block explorer to inspect the on-chain VRF draw and seed events for the epoch.

Error Response

{
  "status": "error",
  "error": {
    "code": "NOT_FOUND",
    "message": "Epoch not found"
  },
  "request_id": "5ccf215d37e3ae6d"
}

:::info Rate Limits The Synthetix API enforces rate limits to ensure fair usage and system stability:

  • Order Placement: 100 orders per second per subaccount
  • WebSocket Connections: 100 connections per IP address
  • WebSocket Subscriptions: 1000 subscriptions per IP address

See Rate Limits for detailed information and best practices. :::

Implementation Notes

  • vrfDrawTxHash and vrfSeedTxHash are null when the corresponding on-chain event has not yet occurred, or when historical epoch data predates VRF hash tracking.
  • Both fields are additive — existing integrations continue to work without modification.

Error Handling

Error CodeDescriptionRetryable
UNAUTHORIZEDEIP-712 signature validation failedNo
VALIDATION_ERRORRequest validation failedNo
MISSING_REQUIRED_FIELDRequired field is missingNo
INVALID_FORMATField format is invalidNo
INVALID_VALUEInvalid parameter valueNo
RATE_LIMIT_EXCEEDEDToo many requests in time windowYes
INSUFFICIENT_MARGINNot enough margin for tradeNo
ORDER_NOT_FOUNDOrder does not existNo
OPERATION_TIMEOUTOperation timed outYes

Related