2020-08-12 13:47:59 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package remote;
|
|
|
|
|
|
|
|
option go_package = "./remote;remote";
|
|
|
|
option java_multiple_files = true;
|
|
|
|
option java_package = "io.turbo-geth.db";
|
|
|
|
option java_outer_classname = "ETHBACKEND";
|
|
|
|
|
|
|
|
service ETHBACKEND {
|
|
|
|
rpc Add(TxRequest) returns (AddReply);
|
|
|
|
rpc Etherbase(EtherbaseRequest) returns (EtherbaseReply);
|
|
|
|
rpc NetVersion(NetVersionRequest) returns (NetVersionReply);
|
2020-11-17 19:13:41 +00:00
|
|
|
rpc Subscribe(SubscribeRequest) returns (stream SubscribeReply);
|
2020-08-12 13:47:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message TxRequest {
|
|
|
|
bytes signedtx = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message AddReply {
|
|
|
|
bytes hash = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message EtherbaseRequest {
|
|
|
|
}
|
|
|
|
|
|
|
|
message EtherbaseReply {
|
2020-08-29 07:24:50 +00:00
|
|
|
bytes hash = 1;
|
2020-08-12 13:47:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message NetVersionRequest {
|
|
|
|
}
|
|
|
|
|
|
|
|
message NetVersionReply {
|
2020-08-29 07:24:50 +00:00
|
|
|
uint64 id = 1;
|
2020-11-17 19:13:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message SubscribeRequest {
|
|
|
|
}
|
|
|
|
|
|
|
|
message SubscribeReply {
|
|
|
|
uint64 type = 1; // type (only header at that moment)
|
|
|
|
bytes data = 2; // serialized data
|
|
|
|
}
|
|
|
|
|