Skip to content

Commit

Permalink
BlockByTime doc
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudBger committed Feb 13, 2024
1 parent e099d65 commit 38619df
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
6 changes: 6 additions & 0 deletions server/pb/sf/blockmeta/v2/blockmeta_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 4 additions & 6 deletions server/proto/sf/blockmeta/v2/blockmeta.proto
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,13 @@ service Block {

message Empty {}

// The BlockByTime service provides capabilities to query block information based on specific timestamps.
service BlockByTime {
//The BlockByTime service provides capabilities to query block information based on specific timestamps.

//At(TimeReq): Returns the block at a specified timestamp.
//After(RelativeTimeReq): Returns the first block after a specified timestamp (or the block at the specified timestamp if it exists, if the query is inclusive).
//Before(RelativeTimeReq): Returns the last block before a specified timestamp (or the block at the specified timestamp if it exists, if the query is inclusive).

// At(TimeReq): Returns the block at a specified timestamp.
rpc At (TimeReq) returns (BlockResp);
// After(RelativeTimeReq): Returns the first block after a specified timestamp (or the block at the specified timestamp if it exists, if the query is inclusive).
rpc After (RelativeTimeReq) returns (BlockResp);
// Before(RelativeTimeReq): Returns the last block before a specified timestamp (or the block at the specified timestamp if it exists, if the query is inclusive).
rpc Before (RelativeTimeReq) returns (BlockResp);
}

Expand Down

0 comments on commit 38619df

Please sign in to comment.