Added bitcoin explorer
This commit is contained in:
9
bitcoin-explorer/proto/block_meta.proto
Normal file
9
bitcoin-explorer/proto/block_meta.proto
Normal file
@@ -0,0 +1,9 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package btc.block_meta.v1;
|
||||
|
||||
message BlockMeta {
|
||||
uint64 number = 1;
|
||||
string hash = 2;
|
||||
string parent_hash = 3;
|
||||
}
|
||||
14
bitcoin-explorer/proto/transaction.proto
Normal file
14
bitcoin-explorer/proto/transaction.proto
Normal file
@@ -0,0 +1,14 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package btc.transaction.v1;
|
||||
|
||||
message Transactions {
|
||||
repeated Transaction transactions = 1;
|
||||
}
|
||||
|
||||
message Transaction {
|
||||
string hash = 1;
|
||||
uint64 vin_count = 2;
|
||||
uint64 vout_count = 3;
|
||||
double btc_value = 4;
|
||||
}
|
||||
Reference in New Issue
Block a user