public class RequestProcess extends RpcRequest<ResponseBlockHash>
process
, and returns a ResponseBlockHash
data object.Constructor | Description |
---|---|
RequestProcess(String blockJson,
Boolean force,
Boolean watchWork) |
|
RequestProcess(String blockJson,
Boolean force,
Boolean watchWork,
String subtype) |
|
RequestProcess(String blockJson,
Boolean force,
String subtype) |
|
RequestProcess(Block block,
Boolean force) |
Modifier and Type | Method | Description |
---|---|---|
String |
getBlockJson() |
|
String |
getSubtype() |
|
Boolean |
getWatchWork() |
|
boolean |
shouldForce() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getActionCommand, getResponseClass, toString
public RequestProcess(Block block, Boolean force)
block
- the block data to publishforce
- (optional) whether fork resolution should be forcedpublic RequestProcess(String blockJson, Boolean force, String subtype)
blockJson
- the block's JSON contentsforce
- (optional) whether fork resolution should be forcedsubtype
- (optional) the subtype of the blockpublic RequestProcess(String blockJson, Boolean force, Boolean watchWork)
blockJson
- the block's JSON contentsforce
- (optional) whether fork resolution should be forcedwatchWork
- (optional) whether the block should be placed on watch for confirmationpublic RequestProcess(String blockJson, Boolean force, Boolean watchWork, String subtype)
blockJson
- the block's JSON contentsforce
- (optional) whether fork resolution should be forcedwatchWork
- (optional) whether the block should be placed on watch for confirmationsubtype
- (optional) the subtype of the blockpublic String getBlockJson()
public boolean shouldForce()
public String getSubtype()
public Boolean getWatchWork()
Copyright © 2020. All rights reserved.