API reference
Account
Reads and settings for the signed in wallet.
- GET
/api/v1/user/coins - GET
/api/v1/user/favorites - GET
/api/v1/user/holdings - GET
/api/v1/user/preferences - PATCH
/api/v1/user/preferences
My coins
/api/v1/user/coinsSigned inThe live coins the signed in wallet launched, newest first.
- Sign in
- Needed (session cookie)
- CSRF header
- Not needed
- Cached
- Never
- Rate limit
- None of its own
Response
{
"success": true,
"message": "User coins fetched successfully",
"data": [Coin, ...]
}Errors
Example
curl -s -b cookies.txt "/api/v1/user/coins"My favorites
/api/v1/user/favoritesSigned inThe signed in wallet's favorite coins, newest first.
- Sign in
- Needed (session cookie)
- CSRF header
- Not needed
- Cached
- Never
- Rate limit
- None of its own
Response
{
"success": true,
"message": "Favorites fetched successfully",
"data": [Coin, ...]
}Errors
Example
curl -s -b cookies.txt "/api/v1/user/favorites"My holdings
/api/v1/user/holdingsSigned inThe Zpad coins the signed in wallet holds now, read from the chain, the largest holding first.
- Sign in
- Needed (session cookie)
- CSRF header
- Not needed
- Cached
- Never
- Rate limit
- 20 a minute per wallet
Response
{
"success": true,
"message": "Holdings fetched successfully",
"data": [
{
"amount": "<tokens>",
"coin": Coin
}
]
}Errors
Example
curl -s -b cookies.txt "/api/v1/user/holdings"My settings
/api/v1/user/preferencesSigned inThe signed in wallet's settings, with its points, tickets and unclaimed graduation bonus.
- Sign in
- Needed (session cookie)
- CSRF header
- Not needed
- Cached
- Never
- Rate limit
- None of its own
Response
A wallet that never saved a setting gets the defaults: quick buys 0.1, 0.5 and 1, hideNsfw, antiMevProtection, tradingSettingsAuto, autoSortingEnabled and sidebarOpen on, the rest off or null. Without a chosen username, username is "Guest #" and a number. creatorPayout is the graduation bonus not claimed yet, in SOL.
{
"success": true,
"message": "User preferences fetched successfully",
"data": {
"bribeAmount": number | null,
"priorityFeeAmount": number | null,
"maxFee": number | null,
"quickBuy": boolean,
"quickBuy1": number,
"quickBuy2": number,
"quickBuy3": number,
"sellPrefersCoin": boolean,
"hideNsfw": boolean,
"maxSlippage": number | null,
"selectedQuickBuy": number,
"autoSortingEnabled": boolean,
"username": "<username>",
"usernameUpdatedAt": "<ISO time>" | null,
"points": number,
"tickets": number,
"creatorPayout": number,
"pointsPumpFun": 0,
"antiMevProtection": boolean,
"tradingSettingsAuto": boolean,
"sidebarOpen": boolean,
"revealedBonusPoints": false
}
}Errors
Example
curl -s -b cookies.txt "/api/v1/user/preferences"Change settings
/api/v1/user/preferencesSigned in, CSRF headerSaves any of the fields below and answers the whole settings object. Other fields are ignored.
- Sign in
- Needed (session cookie)
- CSRF header
- Needed:
x-zpad: zpad - Cached
- Never
- Rate limit
- 30 a minute per wallet
Body
Response
{
"success": true,
"message": "User preferences updated successfully",
"data": <the whole settings object, as above>
}Errors
Example
curl -s -X PATCH -b cookies.txt "/api/v1/user/preferences" \
-H "x-zpad: zpad" \
-H "content-type: application/json" \
-d '{"maxSlippage":5}'