Skip to main content
POST
/
exchange
Create Referral Code
curl --request POST \
  --url https://api.hotstuff.trade/exchange \
  --header 'Content-Type: application/json' \
  --data '
{
  "action": {
    "data": {
      "code": "REF_MKZFZFZK",
      "nonce": 1769690420912
    },
    "type": "createReferralCode"
  },
  "signature": "0x852044390aaf68b329302ad7af9d2d5443eebd3b8a098b092e7e0c1b530c45b7...",
  "nonce": 1769690420912
}
'
{
  "tx_hash": "0x93c0692352b3256a22067f845ca0be1a4271684e90454418411b5f7e86ba7500",
  "tx_type": 1208,
  "success": true,
  "data": {},
  "address": "0xEc6d21B8c1FF6dF523F22c4cf54F077e5F7cAfBf"
}
Create a new referral code for your account.

Body

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

Response

200 - application/json

Successful response

tx_hash
string
tx_type
integer
success
boolean
data
object
address
string