github.com/Finschia/finschia-sdk@v0.48.1/proto/lbm/tx/v1beta1/service.proto (about) 1 syntax = "proto3"; 2 package lbm.tx.v1beta1; 3 4 import "google/api/annotations.proto"; 5 import "gogoproto/gogo.proto"; 6 import "cosmos/tx/v1beta1/tx.proto"; 7 import "cosmos/base/query/v1beta1/pagination.proto"; 8 import "ostracon/types/block.proto"; 9 import "ostracon/types/types.proto"; 10 import "tendermint/types/types.proto"; 11 12 option (gogoproto.goproto_registration) = true; 13 option go_package = "github.com/Finschia/finschia-sdk/types/tx2"; 14 15 // Service defines a gRPC service for interacting with transactions. 16 service Service { 17 // GetBlockWithTxs fetches a block with decoded txs. 18 // 19 // Since: finschia-sdk 0.47.0 20 rpc GetBlockWithTxs(GetBlockWithTxsRequest) returns (GetBlockWithTxsResponse) { 21 option (google.api.http).get = "/lbm/tx/v1beta1/txs/block/{height}"; 22 } 23 } 24 25 // GetBlockWithTxsRequest is the request type for the Service.GetBlockWithTxs 26 // RPC method. 27 // 28 // Since: finschia-sdk 0.47.0 29 message GetBlockWithTxsRequest { 30 // height is the height of the block to query. 31 int64 height = 1; 32 // pagination defines a pagination for the request. 33 cosmos.base.query.v1beta1.PageRequest pagination = 2; 34 } 35 36 // GetBlockWithTxsResponse is the response type for the Service.GetBlockWithTxs method. 37 // 38 // Since: finschia-sdk 0.47.0 39 message GetBlockWithTxsResponse { 40 // txs are the transactions in the block. 41 repeated cosmos.tx.v1beta1.Tx txs = 1; 42 .tendermint.types.BlockID block_id = 2; 43 .ostracon.types.Block block = 3; 44 // pagination defines a pagination for the response. 45 cosmos.base.query.v1beta1.PageResponse pagination = 4; 46 }