Skip to main content
POST
/
v1
/
referral
/
activate-tx
Activate referral with user-funded transaction
curl --request POST \
  --url https://perp-api.phoenix.trade/v1/referral/activate-tx \
  --header 'Content-Type: application/json' \
  --data '
{
  "recent_blockhash": "string",
  "referral_code": "string",
  "trader_authority": "string",
  "transaction": "string"
}
'
{
  "referral_code": "<string>",
  "status": "<string>",
  "trader_pda": "<string>",
  "signature": "<string>"
}

Body

application/json

JSON request payload for post.v1.referral.activate_tx.

recent_blockhash
string
required
referral_code
string
required
trader_authority
string
required
transaction
string
required
trader_pda_index
integer<int32> | null
Required range: x >= 0
trader_subaccount_index
integer<int32> | null
Required range: x >= 0

Response

200 - application/json
referral_code
string
required
status
string
required
trader_pda
string
required
signature
string | null