Forging Operations
Start / Stop / Get Forging
Start or stop forging with an account, or check to see if an account is forging. POST only.
Request:
requestTypeis eitherstartForging,stopForgingorgetForgingsecretPhraseis the secret passphrase of the account (optional forstopForgingandgetForgingif password protected like the Debug Operations)
Response:
deadline(N) is the estimated time (in seconds since the last block) until the account will forge a block (startForgingandgetForgingonly)hitTime(N) is the estimated time (in seconds since the genesis block) when the account will forge a block (startForgingandgetForgingonly)remaining(N) is the deadline less the elapsed time since the last block (getForgingonly)foundAndStopped(B) istrueif forging was stopped,falseif forging was already stopped (stopForgingonly)account(S) is the account number (getForgingonly)accountRS(S) is the Reed-Solomon address of the account (getForgingonly)requestProcessingTime(N) is the API request processing time (in millisec)
Note: A getForging request returns errorCode 5 if the account is not forging. If the account has a zero effectiveBalance, forging can be started but deadline, remainingTime and hitTime will be set to zero.
Example: Refer to Start / Stop / Get Forging example.
Get Forging
Refer to Start / Stop / Get Forging.
Start Forging
Refer to Start / Stop / Get Forging.
Stop Forging
Refer to Start / Stop / Get Forging.
Lease Balance
Lease the entire guaranteed balance of Blue0x to another account, after 1440 confirmations. POST only.
Request: Refer to Create Transaction Request for common parameters.
requestTypeisleaseBalanceperiodis the lease period (in number of blocks, 1440 minimum)recipientis the lessee (recipient) accountrecipientPublicKeyis the public key of the lessee (recipient) account (optional, enhances security of a new account)
Response: Refer to Create Transaction Response.
Example: Refer to Lease Balance example.
Get Next Block Generators
Returns the next block generators ordered by hit time. The list of currently active forgers is first initialized using the block generators with at least 2 blocks generated within the previous 10,000 blocks, excluding accounts without a public key. The list is updated as new blocks are processed. The results are not 100% correct since previously active generators may no longer be running and new generators won't be known until they generate a block.
Request:
requestTypeisgetNextBlockGeneratorslimit(N) is the number of next block generators to display.
Response:
activeCount(N) is the number of active forging accountslastBlock(S) is the last block ID on the blockchaingenerators(A) is an array containing the number of next block generators requestedeffectiveBalanceNXT(N) is the balance (in BLX) of the account available for forging: the unleased guaranteedBalance of this account plus the leased guaranteedBalance of all lessors to this accountaccountRS(S) is the Reed-Solomon address of the accountdeadline(N) is the estimated time (in seconds since the last block) until the account will forge a blockaccount(S) is the account numberhitTime(N) is the estimated time (in seconds since the genesis block) when the account will forge a block
requestProcessingTime(N) is the API request processing time (in millisec)timestamp(N) is the timestamp (in seconds since the genesis block) when the request was executedheight(N) is the height of the blockchain
Example: Refer to Get Next Block Generators example.