Skip to main content
POST
/
api
/
v4
/
mining
/
accounts
/
create
Create Mining Account
curl --request POST \
  --url https://whitebit.com/api/v4/mining/accounts/create \
  --header 'Content-Type: application/json' \
  --header 'X-TXC-APIKEY: <api-key>' \
  --header 'X-TXC-PAYLOAD: <api-key>' \
  --header 'X-TXC-SIGNATURE: <api-key>' \
  --data '
{
  "name": "my_miner_01",
  "request": "{{request}}",
  "nonce": "{{nonce}}",
  "referralCode": "REF123"
}
'
{
  "data": {
    "name": "my_miner_01",
    "createdAt": 1709340000
  }
}

Authorizations

X-TXC-APIKEY
string
header
required

The public WhiteBIT API key.

X-TXC-PAYLOAD
string
header
required

Base64-encoded JSON request body.

X-TXC-SIGNATURE
string
header
required

HMAC-SHA512 signature of the payload, hex-encoded. Computed as hex(HMAC-SHA512(payload, api_secret)).

Body

application/json
name
string
required

Mining pool account name. Must be unique. Alphanumeric characters and underscores allowed.

Maximum string length: 255
Example:

"my_miner_01"

request
string
required

Request signature

Example:

"{{request}}"

nonce
string
required

Unique request identifier

Example:

"{{nonce}}"

referralCode
string

Optional referral code for account creation

Maximum string length: 50
Example:

"REF123"

Response

Successful response

data
object