erigon-pulse/interfaces/web3/eth.proto
Alex Sharov fd0e2d5c4d
kv.Snapshots() grpc method (#549)
* Remove interfaces for replacement

* Squashed 'interfaces/' content from commit 041a3b20

git-subtree-dir: interfaces
git-subtree-split: 041a3b204cceee5348d54bfa683dec6c7cf30d14

* save

* save
2022-07-26 09:28:10 +07:00

30 lines
1023 B
Protocol Buffer

syntax = "proto3";
import "google/protobuf/empty.proto";
import "web3/common.proto";
import "types/types.proto";
package web3;
message BlockNumberResponse { uint64 block_number = 1; }
message ResolveBlockHashRequest { uint64 block_number = 1; }
message ResolveBlockHashResponse { optional types.H256 block_hash = 1; }
message BlockRequest { optional BlockId search_location = 1; }
message LightBlockResponse { optional LightBlock block = 1; }
message FullBlockResponse { optional FullBlock block = 1; }
message TransactionResponse { optional StoredTransaction transaction = 1; }
service EthApi {
rpc BlockNumber(google.protobuf.Empty) returns (BlockNumberResponse);
rpc ResolveBlockHash(ResolveBlockHashRequest)
returns (ResolveBlockHashResponse);
rpc LightBlock(BlockRequest) returns (LightBlockResponse);
rpc FullBlock(BlockRequest) returns (FullBlockResponse);
rpc TransactionByHash(types.H256) returns (TransactionResponse);
rpc SendTransaction(Transaction) returns (google.protobuf.Empty);
}