In the Dashboard → Side Bar → My Miners, users can view and manage all their mining devices.
Each device is associated with one Device ID and one API Key. A user can have multiple devices, each with its own credentials.
Device ID & API Key
Assigned after purchasing a mining plan.
Used to authenticate your miner and authorize mining activity.
Mining API Endpoints
Get Challenge: POST https://esptoken.io/api/get-challege
Input: Device ID + API Key
Output: Challenge, JWT token, Difficulty
The miner must solve the challenge to find a valid hash.
Start Mining: POST https://esptoken.io/api/start-mining
Input: Hash, Nonce, Challenge, JWT token
Server validates the solution and adds tokens to pending balance.
Mining Flow
Request a challenge using Device ID + API Key.
Compute a valid hash:
Must contain challenge + nonce
Must meet the difficulty (leading zeros)
Submit the solution to Start Mining API.
If valid, mined tokens are added to the pending balance in your dashboard.
Wallet Integration
Pending tokens can be transferred to MetaMask (Ethereum) or Phantom (Solana).
Tokens can then be used for:
Trading on Uniswap / PancakeSwap
Staking
Purchases on espt.shop
Each device has one Device ID + one API Key.
Users may manage multiple devices in “My Miners”.
Mining examples are available in the GitHub repository: https://github.com/esp-token
API flow ensures secure mining with JWT token authentication.