Skip to main content
POST
/
exchange
Set Referrer
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"
}

Documentation Index

Fetch the complete documentation index at: https://docs.hotstuff.trade/llms.txt

Use this file to discover all available pages before exploring further.

Set referral code

Body

application/json
action
object
required
signature
string
required
nonce
integer
required

Response

200 - application/json

Successful response

tx_hash
string
tx_type
integer
error
string
data
object
address
string