Add include_transactions option to getBlocks API
This commit is contained in:
parent
87107ad3db
commit
9f8985cd33
@ -46,6 +46,12 @@ message BlocksRequest {
|
|||||||
int64 start_timestamp = 2;
|
int64 start_timestamp = 2;
|
||||||
int64 end_timestamp = 3;
|
int64 end_timestamp = 3;
|
||||||
repeated BlockFilter filters = 4;
|
repeated BlockFilter filters = 4;
|
||||||
|
enum IncludeTransactions {
|
||||||
|
NONE = 0; // 不包含交易数据
|
||||||
|
HASH = 1; // 包含交易哈希列表
|
||||||
|
FULL = 2; // 包含完整交易列表
|
||||||
|
}
|
||||||
|
IncludeTransactions include_transactions = 5;
|
||||||
}
|
}
|
||||||
message GetBlocksResponse {
|
message GetBlocksResponse {
|
||||||
repeated Block blocks = 1;
|
repeated Block blocks = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user