Language

Choose a language

/build/rpc / mining

startminingwithrotation

startminingwithrotation Start mining with automatic address rotation (generates new P2WPKH address for each block) Result: "str" (string) Status message Examples: > bitcoin-cli startminingwithrotation > curl --user myusername --data-binary '{"jsonrpc": "2.0", "id": "curltest", "method": "startminingwithrotation", "params": []}' -H 'content-type: application/json' http://127.0.0.1:8332/

Signature

startminingwithrotation() → any

Code samples

curl --user "$RPC_USER:$RPC_PASS" \
  --data-binary '{"jsonrpc":"1.0","id":"docs","method":"startminingwithrotation","params":[]}' \
  -H 'content-type: text/plain;' \
  http://127.0.0.1:8332/

Parameters

No parameters.

Result

Type:  any

"str" (string) Status message

Source: services/core-node/bcore/src/rpc/custom.cpp:190

C++ symbol: startminingwithrotation