public static interface Contract.BlockOrBuilder
extends com.google.protobuf.MessageOrBuilder
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getBlockid()
blockid generate the hash sign of the block used by sha256
string blockid = 3; |
com.google.protobuf.ByteString |
getBlockidBytes()
blockid generate the hash sign of the block used by sha256
string blockid = 3; |
long |
getHeight()
The height of the blockchain
int64 height = 9; |
boolean |
getInTrunk()
下面的属性会动态变化
If the block is on the trunk
bool in_trunk = 14; |
String |
getNextHash()
Next next block which on trunk
string next_hash = 15; |
com.google.protobuf.ByteString |
getNextHashBytes()
Next next block which on trunk
string next_hash = 15; |
String |
getPreHash()
pre_hash is the parent blockid of the block
string pre_hash = 4; |
com.google.protobuf.ByteString |
getPreHashBytes()
pre_hash is the parent blockid of the block
string pre_hash = 4; |
com.google.protobuf.ByteString |
getProposer()
The miner id
bytes proposer = 5; |
com.google.protobuf.ByteString |
getPubkey()
The pk of the miner
bytes pubkey = 7; |
String |
getSign()
The sign which miner signed: blockid + nonce + timestamp
string sign = 6; |
com.google.protobuf.ByteString |
getSignBytes()
The sign which miner signed: blockid + nonce + timestamp
string sign = 6; |
int |
getTxCount()
The transaction count of the block
int32 tx_count = 12; |
String |
getTxids(int index)
Transactions of the block, only txid stored on kv, the detail information stored in another table
repeated string txids = 11; |
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; |
int |
getTxidsCount()
Transactions of the block, only txid stored on kv, the detail information stored in another table
repeated string txids = 11; |
List<String> |
getTxidsList()
Transactions of the block, only txid stored on kv, the detail information stored in another table
repeated string txids = 11; |
String getBlockid()
blockid generate the hash sign of the block used by sha256
string blockid = 3;com.google.protobuf.ByteString getBlockidBytes()
blockid generate the hash sign of the block used by sha256
string blockid = 3;String getPreHash()
pre_hash is the parent blockid of the block
string pre_hash = 4;com.google.protobuf.ByteString getPreHashBytes()
pre_hash is the parent blockid of the block
string pre_hash = 4;com.google.protobuf.ByteString getProposer()
The miner id
bytes proposer = 5;String getSign()
The sign which miner signed: blockid + nonce + timestamp
string sign = 6;com.google.protobuf.ByteString getSignBytes()
The sign which miner signed: blockid + nonce + timestamp
string sign = 6;com.google.protobuf.ByteString getPubkey()
The pk of the miner
bytes pubkey = 7;long getHeight()
The height of the blockchain
int64 height = 9;List<String> getTxidsList()
Transactions of the block, only txid stored on kv, the detail information stored in another table
repeated string txids = 11;int getTxidsCount()
Transactions of the block, only txid stored on kv, the detail information stored in another table
repeated string txids = 11;String getTxids(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 element to return.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.int getTxCount()
The transaction count of the block
int32 tx_count = 12;boolean getInTrunk()
下面的属性会动态变化 If the block is on the trunk
bool in_trunk = 14;String getNextHash()
Next next block which on trunk
string next_hash = 15;com.google.protobuf.ByteString getNextHashBytes()
Next next block which on trunk
string next_hash = 15;Copyright © 2020. All rights reserved.