Docs
v1

Guide

Start mining

Mine TRAI with a GPU or CPU step by step. Get an address, check your hardware, start the Tenrai Miner on a pool or solo and see that it works.

On this page

tenrai-miner mines TRAI on GPUs, through OpenCL or CUDA, and on CPUs. Each block found pays the block reward plus fees.

What you need

An addressAny Tenrai address from your wallet. Blocks and pool payouts go there
tenrai-minerPart of the Tenrai binaries, see Install. Any miner that supports TenQ and Tenrai's Stratum works as well
GPU4 GB of video memory or more, and a driver with OpenCL. CUDA is optional, see GPU backends
CPU and memory2 GiB of free RAM for the TenQ dataset, 2.5 GiB more to prepare the next one ahead

On Linux the OpenCL loader must be installed as well; on Debian and Ubuntu it is the package ocl-icd-libopencl1.

1. Check the hardware

Shell
tenrai-miner --list-devices
tenrai-miner --benchmark

--list-devices lists every GPU with its index and backend. --benchmark builds the dataset and measures the hashrate on a synthetic job; stop it with Ctrl+C.

2. Choose how to mine

Three ways to mine. In a pool, your miner sends shares to the pool, whose node submits the blocks, and the pool pays small, regular payouts minus its fee. Solo on your node, the miner takes work from the node on the same machine, and every block pays your address in full. Solo through a bridge, several rigs connect to a stratum bridge next to your node, and each block pays the rig that found it in full. POOL PAYOUTS Your miner --pool Pool shares, accounting Pool's node submits the blocks Small, regular payouts, minus the pool's fee SOLO ON YOUR NODE Your miner tenrai-miner same machine, 127.0.0.1:28702 Your node tenraid Every block you find, in full, to your address SOLO THROUGH A BRIDGE Your rigs tenrai-miner Stratum bridge TLS, next to the node Your node tenraid Each block in full to the address of the rig that found it
The three setups: what you run, and who submits your blocks.
WayPayoutsYou run
PoolSmall, regular payouts, minus the pool feeThe miner
Solo on your nodeEvery block you find, in fullA node and the miner
Solo through a bridgeAs solo, for several rigsA node, a bridge and the miners

Most miners start with a pool. Solo pays every block in full, but with little hashrate the blocks come rarely and irregularly.

3. Start the miner

On a pool:

Shell
tenrai-miner -a <your address> --stratum stratum+tls://pool.example.org:28741 -w rig1 --pool

Solo, with a synced node on the same machine:

Shell
tenrai-miner -a <your address>

The address is the only thing the miner needs; the node, the ports, the devices and the dashboard have defaults. Started without an address, it asks for one and offers to save it, so the next start is just tenrai-miner.

Option
-aYour address
--stratumThe pool's URL, from the pool's website
-wA name for this rig, shown on the pool's website
--poolRequired for pools. Without it the miner refuses work that pays another address than -a

The first start builds the 2 GiB TenQ dataset on the CPU, about a minute on a six-core desktop CPU. The dataset changes once per epoch, every 34,560 cuts or about a day. By default the next one is built ahead in the background, so mining does not pause.

The miner uses all GPUs, on CUDA or OpenCL whichever the card runs, and two CPU threads, so the machine stays usable. --threads all puts the other CPU threads to work as well, less the one or two that feed the GPUs. Miner options shows how to pick devices, switch the GPU backend or set a temperature limit.

4. Check that it works

The log shows a line every 5 seconds when shares or blocks went out, with accepted, rejected and stale counts, and a table of all devices every 30 seconds.

WhereWhat
http://127.0.0.1:28770/Dashboard with charts
http://127.0.0.1:28770/v1/statsHashrate, shares, blocks and every device as JSON
The pool's websiteYour address: hashrate, balance and payouts
An explorer, such as the Tenrai ExplorerYour address: incoming rewards and payouts

Rejected shares point to a wrong pool URL, a missing --pool or a GPU problem. Troubleshooting lists the usual causes.

Run it permanently

The first start creates tenrai-miner.json next to the program with the default settings, and an address typed at the miner's question is saved there. Set your options in it and start the miner without arguments:

JSONtenrai-miner.json
{
  "mining-address": "trai1...",
  "stratum": ["stratum+tls://pool.example.org:28741"],
  "worker": "rig1",
  "pool": true
}
Shell
tenrai-miner

For HiveOS, see HiveOS.

Type to search guides, concepts and reference pages.