2021-02-13 07:41:47 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
|
2021-03-19 21:24:49 +00:00
|
|
|
import "types/types.proto";
|
|
|
|
|
2021-02-13 07:41:47 +00:00
|
|
|
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 {
|
2021-03-19 21:24:49 +00:00
|
|
|
rpc Add(TxRequest) returns (AddReply);
|
|
|
|
rpc Etherbase(EtherbaseRequest) returns (EtherbaseReply);
|
|
|
|
rpc NetVersion(NetVersionRequest) returns (NetVersionReply);
|
|
|
|
rpc Subscribe(SubscribeRequest) returns (stream SubscribeReply);
|
2021-02-13 07:41:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message TxRequest { bytes signedtx = 1; }
|
|
|
|
|
2021-03-19 21:24:49 +00:00
|
|
|
message AddReply { types.H256 hash = 1; }
|
2021-02-13 07:41:47 +00:00
|
|
|
|
|
|
|
message EtherbaseRequest {}
|
|
|
|
|
2021-03-19 21:24:49 +00:00
|
|
|
message EtherbaseReply { types.H160 address = 1; }
|
2021-02-13 07:41:47 +00:00
|
|
|
|
|
|
|
message NetVersionRequest {}
|
|
|
|
|
|
|
|
message NetVersionReply { uint64 id = 1; }
|
|
|
|
|
|
|
|
message SubscribeRequest {}
|
|
|
|
|
|
|
|
message SubscribeReply {
|
|
|
|
uint64 type = 1; // type (only header at that moment)
|
|
|
|
bytes data = 2; // serialized data
|
|
|
|
}
|