StartForging
Starts forging for a specific account using Shamwari QKP credentials.
Request
POST /nxt?requestType=startForging
All endpoints use port 22024 by default.
Parameters
| Name | Type | Description | Required |
|---|---|---|---|
secretPhrase | string | Secret passphrase for account | Yes* |
privateKey | string | Private key for account | Yes* |
publicKey | string | Public key for account | Yes* |
*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"