POST
/
account
/
points
cURL
curl --request POST \
  --url https://core-api-dev.vanish.trade/account/points \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "timestamp": "<string>",
  "user_address": "<string>",
  "signature": "<string>"
}'
{
  "total": "<string>",
  "by_ref": "<string>",
  "last_7days": "<string>",
  "multiplier": "<string>"
}

Authorizations

x-api-key
string
header
required

Body

application/json

Request payload for querying point stats.

timestamp
required

The current timestamp in milliseconds used for signature verification. Can be provided as a string or a number.

user_address
string
required

The Solana wallet address of the user.

signature
string
required

Signature of the 'read:{timestamp}' string signed using the user's wallet.

Response

A successful response containing the user's point stats.

total
string<int64>
required

Total points earned by the user

by_ref
string<int64>
required

Points earned from referrals

last_7days
string<int64>
required

Points earned in the last 7 days

multiplier
string<float>
required

The current points multiplier