Skip to content

Snaxpot

Snaxpot lottery actions are available under POST /v1/trade. All actions require EIP-712 authentication scoped to a subaccount.

Endpoint

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

Available Actions

ActionTypeDescription
Get Snaxpot Epoch TicketsQueryRetrieve lottery tickets and epoch statistics across an epoch range
clearSnaxpotPreferenceWriteClear the subaccount's Snaxpot number preference
saveSnaxpotTicketsWriteSave Snaxpot ticket selections for the current epoch
setSnaxpotPreferenceWriteSet the subaccount's Snaxpot number preference

Authentication

ActionOwner signatureDelegated signer
getSnaxpotEpochTicketsYesYes
clearSnaxpotPreferenceYesYes
saveSnaxpotTicketsYesYes
setSnaxpotPreferenceYesYes

Delegated signers with appropriate permissions can manage Snaxpot preferences and tickets on behalf of a subaccount without requiring the owner's private key for each transaction. Previously, clearSnaxpotPreference, saveSnaxpotTickets, and setSnaxpotPreference required owner-only signatures.

Query actions use SubAccountAction EIP-712 signing. Write actions use action-specific EIP-712 typed data with nonce and optional expiresAfter at the request root, consistent with other trade write endpoints.

Related Endpoints