Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions protobuf/flow/execution/execution.proto
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ option java_package = "org.onflow.protobuf.execution";
import "flow/entities/account.proto";
import "flow/entities/block_header.proto";
import "flow/entities/event.proto";
import "flow/entities/execution_result.proto";
import "flow/entities/transaction.proto";

// ExecutionAPI is the API provided by the execution nodes.
Expand Down Expand Up @@ -84,6 +85,18 @@ service ExecutionAPI {
rpc GetBlockHeaderByID(GetBlockHeaderByIDRequest)
returns (BlockHeaderResponse);

// ExecutionResults

// GetExecutionResultForBlockID returns Execution Result for a given block.
// At present, Execution Node might not have execution results for every block
// and as usual, until sealed, this data can change
rpc GetExecutionResultForBlockID(GetExecutionResultForBlockIDRequest)
returns (ExecutionResultForBlockIDResponse);

// GetExecutionResultByID returns Execution Result by its ID.
rpc GetExecutionResultByID(GetExecutionResultByIDRequest)
returns (ExecutionResultByIDResponse);

// GetTransactionExecutionMetricsAfter gets the transaction execution metrics
// for blocks after the given block height. The blocks will be sorted by
// descending block height.
Expand Down Expand Up @@ -231,6 +244,24 @@ message BlockHeaderResponse {
entities.BlockHeader block = 1;
}

// Execution Results

message GetExecutionResultForBlockIDRequest {
bytes block_id = 1;
}

message ExecutionResultForBlockIDResponse {
entities.ExecutionResult execution_result = 1;
}

message GetExecutionResultByIDRequest {
bytes id = 1;
}

message ExecutionResultByIDResponse {
entities.ExecutionResult execution_result = 1;
}

// The request for GetTransactionExecutionMetricsAfter
message GetTransactionExecutionMetricsAfterRequest {
// Block height after which to get transaction execution metrics.
Expand Down
Loading
Loading