public class QueryBlockRequest extends Request
groupId, hashTypeEnum| 构造器和说明 |
|---|
QueryBlockRequest() |
QueryBlockRequest(BaseFixedSizeByteArray.Fixed20ByteArray myChainId) |
QueryBlockRequest(BigInteger blockNumber) |
QueryBlockRequest(BigInteger blockNumber,
BaseFixedSizeByteArray.Fixed20ByteArray myChainId) |
QueryBlockRequest(Hash blockHash) |
QueryBlockRequest(Hash blockHash,
BaseFixedSizeByteArray.Fixed20ByteArray myChainId) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
fromJson(com.alibaba.fastjson.JSONObject jsonObject)
Decode message from json object.
|
void |
fromRlp(RlpList list)
Decode message from rlp bytes.
|
Hash |
getBlockHash()
Getter method for property blockHash.
|
BigInteger |
getBlockNumber()
Getter method for property blockNumber.
|
boolean |
isValid() |
void |
setBlockHash(Hash blockHash)
Setter method for property blockHash.
|
void |
setBlockNumber(BigInteger blockNumber)
Setter method for property blockNumber.
|
void |
toJson(com.alibaba.fastjson.JSONObject jsonObject)
Encode message to json object.
|
byte[] |
toRlp()
Encode message to rlp bytes.
|
getGroupId, getSequenceId, getTraceId, isSetGroupId, setGroupId, setHashTypeEnum, setSequenceId, setTraceIdgetMessageType, setMessageType, toStringpublic QueryBlockRequest(BaseFixedSizeByteArray.Fixed20ByteArray myChainId)
public QueryBlockRequest()
public QueryBlockRequest(BigInteger blockNumber, BaseFixedSizeByteArray.Fixed20ByteArray myChainId)
public QueryBlockRequest(BigInteger blockNumber)
public QueryBlockRequest(Hash blockHash, BaseFixedSizeByteArray.Fixed20ByteArray myChainId)
public QueryBlockRequest(Hash blockHash)
public BigInteger getBlockNumber()
public void setBlockNumber(BigInteger blockNumber)
blockNumber - value to be assigned to property blockNumberpublic Hash getBlockHash()
public void setBlockHash(Hash blockHash)
blockHash - value to be assigned to property blockHashpublic byte[] toRlp()
public void fromRlp(RlpList list)
public void toJson(com.alibaba.fastjson.JSONObject jsonObject)
Copyright © 2022. All rights reserved.