2021-02-13 07:41:47 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
|
2021-05-22 10:00:13 +00:00
|
|
|
import "google/protobuf/empty.proto";
|
2021-03-19 21:24:49 +00:00
|
|
|
import "types/types.proto";
|
|
|
|
|
2021-05-17 13:28:50 +00:00
|
|
|
package remote;
|
2021-02-13 07:41:47 +00:00
|
|
|
|
2021-05-17 13:28:50 +00:00
|
|
|
option go_package = "./remote;remote";
|
2021-02-13 07:41:47 +00:00
|
|
|
|
2021-05-17 13:28:50 +00:00
|
|
|
service ETHBACKEND {
|
|
|
|
rpc Etherbase(EtherbaseRequest) returns (EtherbaseReply);
|
|
|
|
|
|
|
|
rpc NetVersion(NetVersionRequest) returns (NetVersionReply);
|
|
|
|
|
2021-05-22 10:00:13 +00:00
|
|
|
// Version returns the service version number
|
|
|
|
rpc Version(google.protobuf.Empty) returns (types.VersionReply);
|
|
|
|
|
2021-05-17 13:28:50 +00:00
|
|
|
// ProtocolVersion returns the Ethereum protocol version number (e.g. 66 for ETH66).
|
|
|
|
rpc ProtocolVersion(ProtocolVersionRequest) returns (ProtocolVersionReply);
|
|
|
|
|
2021-05-26 10:35:39 +00:00
|
|
|
// ClientVersion returns the Ethereum client version string using node name convention (e.g. Erigon/v2021.03.2-alpha/Linux).
|
2021-05-17 13:28:50 +00:00
|
|
|
rpc ClientVersion(ClientVersionRequest) returns (ClientVersionReply);
|
|
|
|
|
|
|
|
rpc Subscribe(SubscribeRequest) returns (stream SubscribeReply);
|
2021-02-13 07:41:47 +00:00
|
|
|
}
|
|
|
|
|
2021-05-17 13:28:50 +00:00
|
|
|
enum Event {
|
|
|
|
HEADER = 0;
|
|
|
|
PENDING_LOGS = 1;
|
|
|
|
PENDING_BLOCK = 2;
|
2021-03-25 06:42:45 +00:00
|
|
|
}
|
|
|
|
|
2021-05-17 13:28:50 +00:00
|
|
|
message EtherbaseRequest {}
|
|
|
|
|
|
|
|
message EtherbaseReply { types.H160 address = 1; }
|
|
|
|
|
|
|
|
message NetVersionRequest {}
|
|
|
|
|
|
|
|
message NetVersionReply { uint64 id = 1; }
|
|
|
|
|
|
|
|
message ProtocolVersionRequest {}
|
|
|
|
|
|
|
|
message ProtocolVersionReply { uint64 id = 1; }
|
|
|
|
|
|
|
|
message ClientVersionRequest {}
|
|
|
|
|
|
|
|
message ClientVersionReply { string nodeName = 1; }
|
|
|
|
|
|
|
|
message SubscribeRequest {
|
|
|
|
Event type = 1;
|
2021-05-04 01:37:17 +00:00
|
|
|
}
|
2021-02-13 07:41:47 +00:00
|
|
|
|
2021-05-17 13:28:50 +00:00
|
|
|
message SubscribeReply {
|
|
|
|
Event type = 1;
|
|
|
|
bytes data = 2; // serialized data
|
|
|
|
}
|
2021-03-23 09:00:07 +00:00
|
|
|
|