POST
/
account
/
register-referral
cURL
curl --request POST \
  --url https://core-api-dev.vanish.trade/account/register-referral \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "timestamp": "<string>",
  "referrer_address": "<string>",
  "user_address": "<string>",
  "signature": "<string>"
}'
{
  "status": "success"
}

Authorizations

x-api-key
string
header
required

Body

application/json

Request payload for registering a referral.

timestamp
required

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

referrer_address
string
required

The wallet address of the referrer

user_address
string
required

The Solana wallet address of the user.

signature
string
required

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

Response

A successful response containing the referral registration status

status
enum<string>
required

Referral registration status

Available options:
success