mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-03 17:44:29 +00:00
fd0e2d5c4d
* Remove interfaces for replacement * Squashed 'interfaces/' content from commit 041a3b20 git-subtree-dir: interfaces git-subtree-split: 041a3b204cceee5348d54bfa683dec6c7cf30d14 * save * save
30 lines
1023 B
Protocol Buffer
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);
|
|
}
|