Skip to main content

StartForging

Starts forging for a specific account using Shamwari QKP credentials.

Request

POST /nxt?requestType=startForging

All endpoints use port 22024 by default.

Parameters

NameTypeDescriptionRequired
secretPhrasestringSecret passphrase for accountYes*
privateKeystringPrivate key for accountYes*
publicKeystringPublic key for accountYes*

*Exactly one of secretPhrase, privateKey, or publicKey is required.

Response

{
"generator": {
"account": "1234567890123456789",
"accountRS": "SHAMWARI-ABCD-EFGH-IJKL-MNOPQ",
"deadline": 120,
"hitTime": 45,
"targetDeadline": 120,
"effectiveBalanceFQT": "10000000000000000",
"blocksmithsCount": 1,
"hitTimeElapsd": 30
},
"errorCode": 0,
"errorDescription": ""
}

Example

curl -X POST "http://localhost:22024/nxt?requestType=startForging" \
-d "secretPhrase=your_secret_passphrase"