Mining account creation is fully API-driven and requires no prior UI setup. However, actual
mining requires connecting ASIC hardware (or a hosted mining service) to the stratum URL
provided in Step 2. Without connected hardware, hashrate will be zero and no rewards will accrue.
For Go and PHP examples, see SDKs.Required field:name (unique, alphanumeric + underscores, max 255 characters). Optional:referralCode.Expected response:
Use the returned stratum URL and port to configure mining hardware. Set the user field in the miner configuration to the mining account name (my_miner_01).
3
Check hashrate
Monitor hashrate performance for the mining account.
# Option A: Payout to Main balanceresponse = make_request("/api/v4/mining/payout-destination/edit", { "accountName": "my_miner_01", "destination": "main_balance",})print(response.json())# Option B: Payout to external BTC addressresponse = make_request("/api/v4/mining/payout-destination/edit", { "accountName": "my_miner_01", "destination": "external_address", "address": "bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh",})print(response.json())
Required fields:accountName, destination (main_balance or external_address). When destination is external_address, the address field (BTC address) is also required.Expected response:
After connecting mining hardware to the stratum URL from Step 2, hashrate data appears within minutes. Rewards begin accruing once shares are submitted. Track rewards via POST /api/v4/mining/rewards.