// Generated by the protocol buffer compiler. DO NOT EDIT! // source: bdchain/api/ac_chain.proto package bdchain.api.grpc; public interface BlockOrBuilder extends // @@protoc_insertion_point(interface_extends:bdchain.api.Block) com.google.protobuf.MessageOrBuilder { /** *
* 区块号,当区块处于待确认状态时为`null` ** *
uint64 number = 1;
*/
long getNumber();
/**
* * 区块的哈希,当区块处于待确认状态时为`null` ** *
bytes hash = 2;
*/
com.google.protobuf.ByteString getHash();
/**
* * 父区块的哈希 ** *
bytes parent_hash = 3;
*/
com.google.protobuf.ByteString getParentHash();
/**
* * 见证者账户地址 ** *
bytes witness = 4;
*/
com.google.protobuf.ByteString getWitness();
/**
* * 区块产生时的UNIX时间戳 ** *
uint64 timestamp = 5;
*/
long getTimestamp();
/**
* * 区块大小的字节数 ** *
uint64 size = 6;
*/
long getSize();
/**
* * 区块的事务树根 ** *
bytes transactions_root = 7;
*/
com.google.protobuf.ByteString getTransactionsRoot();
/**
* * 事务对象的数组,或为空 ** *
repeated .bdchain.api.Transaction transactions = 8;
*/
java.util.List* 事务对象的数组,或为空 ** *
repeated .bdchain.api.Transaction transactions = 8;
*/
bdchain.api.grpc.Transaction getTransactions(int index);
/**
* * 事务对象的数组,或为空 ** *
repeated .bdchain.api.Transaction transactions = 8;
*/
int getTransactionsCount();
/**
* * 事务对象的数组,或为空 ** *
repeated .bdchain.api.Transaction transactions = 8;
*/
java.util.List extends bdchain.api.grpc.TransactionOrBuilder>
getTransactionsOrBuilderList();
/**
* * 事务对象的数组,或为空 ** *
repeated .bdchain.api.Transaction transactions = 8;
*/
bdchain.api.grpc.TransactionOrBuilder getTransactionsOrBuilder(
int index);
/**
* * 32字节的交易哈希的数组,或为空 ** *
repeated bytes transaction_hashes = 9;
*/
java.util.List* 32字节的交易哈希的数组,或为空 ** *
repeated bytes transaction_hashes = 9;
*/
int getTransactionHashesCount();
/**
* * 32字节的交易哈希的数组,或为空 ** *
repeated bytes transaction_hashes = 9;
*/
com.google.protobuf.ByteString getTransactionHashes(int index);
}