- 所有超级接口:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
- 所有已知实现类:
Contract.Block, Contract.Block.Builder
- 封闭类:
- Contract
public static interface Contract.BlockOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
方法概要
| 修饰符和类型 |
方法 |
说明 |
String |
getBlockid() |
blockid generate the hash sign of the block used by sha256
|
com.google.protobuf.ByteString |
getBlockidBytes() |
blockid generate the hash sign of the block used by sha256
|
long |
getHeight() |
The height of the blockchain
|
boolean |
getInTrunk() |
下面的属性会动态变化
If the block is on the trunk
|
String |
getNextHash() |
Next next block which on trunk
|
com.google.protobuf.ByteString |
getNextHashBytes() |
Next next block which on trunk
|
String |
getPreHash() |
pre_hash is the parent blockid of the block
|
com.google.protobuf.ByteString |
getPreHashBytes() |
pre_hash is the parent blockid of the block
|
com.google.protobuf.ByteString |
getProposer() |
The miner id
|
com.google.protobuf.ByteString |
getPubkey() |
The pk of the miner
|
String |
getSign() |
The sign which miner signed: blockid + nonce + timestamp
|
com.google.protobuf.ByteString |
getSignBytes() |
The sign which miner signed: blockid + nonce + timestamp
|
int |
getTxCount() |
The transaction count of the block
|
String |
getTxids(int index) |
Transactions of the block, only txid stored on kv, the detail information stored in another table
|
com.google.protobuf.ByteString |
getTxidsBytes(int index) |
Transactions of the block, only txid stored on kv, the detail information stored in another table
|
int |
getTxidsCount() |
Transactions of the block, only txid stored on kv, the detail information stored in another table
|
List<String> |
getTxidsList() |
Transactions of the block, only txid stored on kv, the detail information stored in another table
|
从接口继承的方法 com.google.protobuf.MessageLiteOrBuilder
isInitialized
从接口继承的方法 com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
方法详细资料
-
getBlockid
blockid generate the hash sign of the block used by sha256
string blockid = 3;
- 返回:
- The blockid.
-
getBlockidBytes
com.google.protobuf.ByteString getBlockidBytes()
blockid generate the hash sign of the block used by sha256
string blockid = 3;
- 返回:
- The bytes for blockid.
-
getPreHash
pre_hash is the parent blockid of the block
string pre_hash = 4;
- 返回:
- The preHash.
-
getPreHashBytes
com.google.protobuf.ByteString getPreHashBytes()
pre_hash is the parent blockid of the block
string pre_hash = 4;
- 返回:
- The bytes for preHash.
-
getProposer
com.google.protobuf.ByteString getProposer()
The miner id
bytes proposer = 5;
- 返回:
- The proposer.
-
getSign
The sign which miner signed: blockid + nonce + timestamp
string sign = 6;
- 返回:
- The sign.
-
getSignBytes
com.google.protobuf.ByteString getSignBytes()
The sign which miner signed: blockid + nonce + timestamp
string sign = 6;
- 返回:
- The bytes for sign.
-
getPubkey
com.google.protobuf.ByteString getPubkey()
The pk of the miner
bytes pubkey = 7;
- 返回:
- The pubkey.
-
getHeight
long getHeight()
The height of the blockchain
int64 height = 9;
- 返回:
- The height.
-
getTxidsList
Transactions of the block, only txid stored on kv, the detail information stored in another table
repeated string txids = 11;
- 返回:
- A list containing the txids.
-
getTxidsCount
int getTxidsCount()
Transactions of the block, only txid stored on kv, the detail information stored in another table
repeated string txids = 11;
- 返回:
- The count of txids.
-
getTxids
Transactions of the block, only txid stored on kv, the detail information stored in another table
repeated string txids = 11;
- 参数:
index - The index of the element to return.
- 返回:
- The txids at the given index.
-
getTxidsBytes
com.google.protobuf.ByteString getTxidsBytes(int index)
Transactions of the block, only txid stored on kv, the detail information stored in another table
repeated string txids = 11;
- 参数:
index - The index of the value to return.
- 返回:
- The bytes of the txids at the given index.
-
getTxCount
int getTxCount()
The transaction count of the block
int32 tx_count = 12;
- 返回:
- The txCount.
-
getInTrunk
boolean getInTrunk()
下面的属性会动态变化
If the block is on the trunk
bool in_trunk = 14;
- 返回:
- The inTrunk.
-
getNextHash
Next next block which on trunk
string next_hash = 15;
- 返回:
- The nextHash.
-
getNextHashBytes
com.google.protobuf.ByteString getNextHashBytes()
Next next block which on trunk
string next_hash = 15;
- 返回:
- The bytes for nextHash.