Ellcrys Docs
Website
Block Explorer
GoDoc
Blog
Search…
Introduction
Core Components
Release Roadmap
ELLD CLIENT
Getting Started
Account Management
Console Mode
Attach Mode
Environment Variables
Protocol
Consensus
Keys & Address
Primitives
Transactions Pool
The Coin (Ell)
JSON-RPC & CONSOLE APIs
Getting Started
Admin
Personal
State
Node
Ell
Pool
Miner
Net
RPC
Logger
Global
Object References
Hex Value Types
Header
Transaction
Block
Account
TxResult
Powered By
GitBook
Miner
miner_start
Start the CPU miner.
Private
: Requires authentication.
Parameters:
None
Curl Example:
1
curl
-X POST --data
'{"jsonrpc":"2.0","method":"miner_start", "id":21}'
Copied!
Console Example
1
>
miner
.
start
()
Copied!
Returns:
Boolean
Output:
1
{
2
"id"
:
21
,
3
"jsonrpc"
:
"2.0"
,
4
"result"
:
true
5
}
Copied!
miner_stop
Stop the CPU miner.
Private
: Requires authentication.
Parameters:
None
Curl Example:
1
curl
-X POST --data
'{"jsonrpc":"2.0","method":"miner_stop", "id":21}'
Copied!
Console Example
1
>
miner
.
stop
()
Copied!
Returns:
Boolean
Output:
1
{
2
"id"
:
21
,
3
"jsonrpc"
:
"2.0"
,
4
"result"
:
true
5
}
Copied!
miner_stop
Stop the CPU miner.
Parameters:
None
Curl Example:
1
curl
-X POST --data
'{"jsonrpc":"2.0","method":"miner_stop", "id":21}'
Copied!
Console Example
1
>
miner
.
stop
()
Copied!
Returns:
Boolean
Output:
1
{
2
"id"
:
21
,
3
"jsonrpc"
:
"2.0"
,
4
"result"
:
true
5
}
Copied!
miner_isMining
Checks whether the CPU miner is running.
Parameters:
None
Curl Example:
1
curl
-X POST --data
'{"jsonrpc":"2.0","method":"miner_isMining", "id":21}'
Copied!
Console Example
1
>
miner
.
isMining
()
Copied!
Returns:
Boolean
Output:
1
{
2
"id"
:
21
,
3
"jsonrpc"
:
"2.0"
,
4
"result"
:
true
5
}
Copied!
miner_setThreads
Set the number of miner threads. By default, it is set to the number of available CPUs on the machine.
Private
: Requires authentication.
Parameters:
None
Curl Example:
1
curl
-X POST --data
'{"jsonrpc":"2.0","method":"miner_setThreads", "id":21}'
Copied!
Console Example
1
>
miner
.
setThreads
(
3
)
Copied!
Returns:
Boolean
Output:
1
{
2
"id"
:
21
,
3
"jsonrpc"
:
"2.0"
,
4
"result"
:
true
5
}
Copied!
miner_getHashrate
Get the hashrate.
Parameters:
None
Curl Example:
1
curl
-X POST --data
'{"jsonrpc":"2.0","method":"miner_getHashrate", "id":21}'
Copied!
Console Example
1
>
miner
.
getHashrate
()
Copied!
Returns:
Integer
Output:
1
{
2
"id"
:
21
,
3
"jsonrpc"
:
"2.0"
,
4
"result"
:
1000
5
}
Copied!
JSON-RPC & CONSOLE APIs - Previous
Pool
Next - JSON-RPC & CONSOLE APIs
Net
Last modified
3yr ago
Copy link
Contents
miner_start
miner_stop
miner_stop
miner_isMining
miner_setThreads
miner_getHashrate