- start()
Start the WebSocket.
- payment_status ⇒
Event Get payment_status.
- refresh ⇒
Event Refresh.
- reward ⇒
Event Reward.
- total_paid ⇒
Event Get the total paid by the pool in BTC.
- total_workers ⇒
Event Get the total of workers on the pool.
- worker ⇒
Event Get worker stats.
- etchash_last_reward ⇒
Event Get last reward on Etchash.
- ethash_last_reward ⇒
Event Get last reward on Ethash.
- randomx_last_reward ⇒
Event Get last reward on RandomX.
- x16rv2_last_reward ⇒
Event Get last reward on KawPow.
- autolykos_last_reward ⇒
Event Get last reward on Autolykos.
Start the WebSocket.
Kind: method
| Param | Type |
|---|---|
| uuid | String |
Example
start("0cc5691e-cedb-11eb-b8bc-0242ac130003");Get payment_status.
Kind: event
Returns:
{
Object,
}Example
client.on("payment_status");Refresh.
Kind: event
Returns:
{
Object,
}Example
client.on("refresh");Get reward.
Kind: event
Returns:
{
Object,
}Example
client.on("reward");Get the total paid by the pool in BTC.
Kind: event
Returns:
{
total: Number,
}Example
client.on("total_paid");Get the total of workers on the pool.
Kind: event
Returns:
{
total: Number,
}Example
client.on("total_workers");Get worker stats.
Kind: event
Returns:
{
name: String,
reportedHashrate: Number,
calculatedHashrate: Number,
lastShareAt: Number,
online: Boolean,
}Example
client.on("worker");Get last reward on Etchash.
Kind: event
Returns:
{
timestamp: Number,
}Example
client.on("etchash_last_reward");Get last reward on Ethash.
Kind: event
Returns:
{
timestamp: Number,
}Example
client.on("ethash_last_reward");Get last reward on RandomX.
Kind: event
Returns:
{
timestamp: Number,
}Example
client.on("randomx_last_reward");Get last reward on KawPow.
Kind: event
Returns:
{
timestamp: Number,
}Example
client.on("x16rv2_last_reward");