"claim_lake_referral".
Only the vault creator can claim a referral code for an existing vault.
Request Body
| Field | Type | Need | Description | Example |
|---|---|---|---|---|
”account” | string | required | Creator wallet address | 42trU9A5… |
“signature” | string | required | Cryptographic signature | 5J3mBbAH… |
“timestamp” | integer | required | Current timestamp in milliseconds | 1716200000000 |
”lake” | string | required | Vault address | AbCdEfGh123456789… |
“code” | string | required | Referral code to claim | testcode |
”agent_wallet” | string | optional | Agent wallet address | 69trU9A5… |
“expiry_window” | integer | optional | Signature expiry in milliseconds | 30000 |
Response
- Status 200: Referral code claimed successfully
- Status 400: Invalid request parameters or caller is not the vault creator
- Status 401: Unauthorized access
- Status 500: Internal server error