Questions? Join our Discord.
curl --request POST \
--url https://api.hotstuff.trade/exchange \
--header 'Content-Type: application/json' \
--data '
{
"action": {
"data": {
"code": "EXISTING_REFERRAL_CODE",
"nonce": 1769690421243
},
"type": "setReferrer"
},
"signature": "0x2bff264012e94c730a0e974e4467266b9347cf0be3768187ce44d6e41b64eaaa...",
"nonce": 1769690421243
}
'{
"tx_hash": "0x38fef635d32e0deee784607ebe258b1372b7ad8888e40af85d3162a88f6d9bdc",
"tx_type": 1209,
"error": "",
"data": {},
"address": "0xEc6d21B8c1FF6dF523F22c4cf54F077e5F7cAfBf"
}Send POST request to /exchange, or use the ExchangeClient SDKs.
curl --request POST \
--url https://api.hotstuff.trade/exchange \
--header 'Content-Type: application/json' \
--data '
{
"action": {
"data": {
"code": "EXISTING_REFERRAL_CODE",
"nonce": 1769690421243
},
"type": "setReferrer"
},
"signature": "0x2bff264012e94c730a0e974e4467266b9347cf0be3768187ce44d6e41b64eaaa...",
"nonce": 1769690421243
}
'{
"tx_hash": "0x38fef635d32e0deee784607ebe258b1372b7ad8888e40af85d3162a88f6d9bdc",
"tx_type": 1209,
"error": "",
"data": {},
"address": "0xEc6d21B8c1FF6dF523F22c4cf54F077e5F7cAfBf"
}Set referral codeDocumentation Index
Fetch the complete documentation index at: https://docs.hotstuff.trade/llms.txt
Use this file to discover all available pages before exploring further.