Unbind Referral Code
Remove the current account's binding. Already-accrued earnings for the old referrer are unaffected; future fills accrue to nobody.
POST /referral/unbind
Content-Type: application/json
Auth: Authorization: Bearer <JWT> from the EIP-712 login. API keys are not accepted.
Request body
{ "signature": "0x...", "timestamp": 1772010600 }
EIP-712 message
{
"primaryType": "UnbindReferralCode",
"types": {
"UnbindReferralCode": [
{ "name": "wallet", "type": "address" },
{ "name": "timestamp", "type": "uint256" }
]
},
"message": { "wallet": "0x<your_address>", "timestamp": 1772010600 }
}
The signature is verified: the recovered signer must equal the JWT's wallet address, and timestamp (seconds) must be within ±5 minutes.
Response
{ "success": true, "previous_referrer": "0x29f721b203a9fc9c5dde35a739d8b8e0e4605489", "previous_code": "4DDDC2D4" }
Errors
| HTTP | code |
|---|---|
| 400 | NOT_BOUND, TIMESTAMP_EXPIRED, INVALID_SIGNATURE_FORMAT |
| 401 | SIGNATURE_INVALID |
| 500 | UNBIND_FAILED, TX_FAILED |