@Deprecated public class BlockApi extends Object
| Modifier and Type | Method and Description |
|---|---|
static GetBlockReturn |
getBlock(CommunicationHandler communicationHandler,
GetBlockArgs getBlockArgs)
Deprecated.
Get a full, signed block by providing its
blockNumber. |
static GetBlockHeaderReturn |
getBlockHeader(CommunicationHandler communicationHandler,
GetBlockHeaderArgs getBlockHeaderArgs)
Deprecated.
Like
getBlock(CommunicationHandler, GetBlockArgs), but will only
return the header of the requested block instead of the full, signed one. |
public static GetBlockHeaderReturn getBlockHeader(CommunicationHandler communicationHandler, GetBlockHeaderArgs getBlockHeaderArgs) throws BeowulfCommunicationException, BeowulfResponseException
getBlock(CommunicationHandler, GetBlockArgs), but will only
return the header of the requested block instead of the full, signed one.communicationHandler - A
CommunicationHandler instance that should be used to send the
request.getBlockHeaderArgs - TODOnull if no
matching block was found.BeowulfCommunicationException - setResponseTimeout).BeowulfResponseException - public static GetBlockReturn getBlock(CommunicationHandler communicationHandler, GetBlockArgs getBlockArgs) throws BeowulfCommunicationException, BeowulfResponseException
blockNumber. The
returned object contains all information related to the block (e.g.
processed transactions, the supernode and the creation time).communicationHandler - A
CommunicationHandler instance that should be used to send the
request.getBlockArgs - Height of the block to be returned.null if no
matching block was found.BeowulfCommunicationException - setResponseTimeout).BeowulfResponseException - Copyright © 2019. All rights reserved.