Documentation ¶
Overview ¶
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Index ¶
- Variables
- func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)
- type AuthInfo
- func (*AuthInfo) Descriptor() ([]byte, []int)deprecated
- func (x *AuthInfo) GetFee() *Fee
- func (x *AuthInfo) GetSignerInfos() []*SignerInfo
- func (x *AuthInfo) GetTip() *Tip
- func (*AuthInfo) ProtoMessage()
- func (x *AuthInfo) ProtoReflect() protoreflect.Message
- func (x *AuthInfo) Reset()
- func (x *AuthInfo) String() string
- type AuxSignerData
- func (*AuxSignerData) Descriptor() ([]byte, []int)deprecated
- func (x *AuxSignerData) GetAddress() string
- func (x *AuxSignerData) GetMode() v1beta1.SignMode
- func (x *AuxSignerData) GetSig() []byte
- func (x *AuxSignerData) GetSignDoc() *SignDocDirectAux
- func (*AuxSignerData) ProtoMessage()
- func (x *AuxSignerData) ProtoReflect() protoreflect.Message
- func (x *AuxSignerData) Reset()
- func (x *AuxSignerData) String() string
- type BroadcastMode
- func (BroadcastMode) Descriptor() protoreflect.EnumDescriptor
- func (x BroadcastMode) Enum() *BroadcastMode
- func (BroadcastMode) EnumDescriptor() ([]byte, []int)deprecated
- func (x BroadcastMode) Number() protoreflect.EnumNumber
- func (x BroadcastMode) String() string
- func (BroadcastMode) Type() protoreflect.EnumType
- type BroadcastTxRequest
- func (*BroadcastTxRequest) Descriptor() ([]byte, []int)deprecated
- func (x *BroadcastTxRequest) GetMode() BroadcastMode
- func (x *BroadcastTxRequest) GetTxBytes() []byte
- func (*BroadcastTxRequest) ProtoMessage()
- func (x *BroadcastTxRequest) ProtoReflect() protoreflect.Message
- func (x *BroadcastTxRequest) Reset()
- func (x *BroadcastTxRequest) String() string
- type BroadcastTxResponse
- func (*BroadcastTxResponse) Descriptor() ([]byte, []int)deprecated
- func (x *BroadcastTxResponse) GetTxResponse() *v1beta11.TxResponse
- func (*BroadcastTxResponse) ProtoMessage()
- func (x *BroadcastTxResponse) ProtoReflect() protoreflect.Message
- func (x *BroadcastTxResponse) Reset()
- func (x *BroadcastTxResponse) String() string
- type Fee
- func (*Fee) Descriptor() ([]byte, []int)deprecated
- func (x *Fee) GetAmount() []*v1beta12.Coin
- func (x *Fee) GetGasLimit() uint64
- func (x *Fee) GetGranter() string
- func (x *Fee) GetPayer() string
- func (*Fee) ProtoMessage()
- func (x *Fee) ProtoReflect() protoreflect.Message
- func (x *Fee) Reset()
- func (x *Fee) String() string
- type GetBlockWithTxsRequest
- func (*GetBlockWithTxsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetBlockWithTxsRequest) GetHeight() int64
- func (x *GetBlockWithTxsRequest) GetPagination() *v1beta1.PageRequest
- func (*GetBlockWithTxsRequest) ProtoMessage()
- func (x *GetBlockWithTxsRequest) ProtoReflect() protoreflect.Message
- func (x *GetBlockWithTxsRequest) Reset()
- func (x *GetBlockWithTxsRequest) String() string
- type GetBlockWithTxsResponse
- func (*GetBlockWithTxsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetBlockWithTxsResponse) GetBlock() *types.Block
- func (x *GetBlockWithTxsResponse) GetBlockId() *types.BlockID
- func (x *GetBlockWithTxsResponse) GetPagination() *v1beta1.PageResponse
- func (x *GetBlockWithTxsResponse) GetTxs() []*Tx
- func (*GetBlockWithTxsResponse) ProtoMessage()
- func (x *GetBlockWithTxsResponse) ProtoReflect() protoreflect.Message
- func (x *GetBlockWithTxsResponse) Reset()
- func (x *GetBlockWithTxsResponse) String() string
- type GetTxRequest
- type GetTxResponse
- func (*GetTxResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetTxResponse) GetTx() *Tx
- func (x *GetTxResponse) GetTxResponse() *v1beta11.TxResponse
- func (*GetTxResponse) ProtoMessage()
- func (x *GetTxResponse) ProtoReflect() protoreflect.Message
- func (x *GetTxResponse) Reset()
- func (x *GetTxResponse) String() string
- type GetTxsEventRequest
- func (*GetTxsEventRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetTxsEventRequest) GetEvents() []string
- func (x *GetTxsEventRequest) GetOrderBy() OrderBy
- func (x *GetTxsEventRequest) GetPagination() *v1beta1.PageRequest
- func (*GetTxsEventRequest) ProtoMessage()
- func (x *GetTxsEventRequest) ProtoReflect() protoreflect.Message
- func (x *GetTxsEventRequest) Reset()
- func (x *GetTxsEventRequest) String() string
- type GetTxsEventResponse
- func (*GetTxsEventResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetTxsEventResponse) GetPagination() *v1beta1.PageResponse
- func (x *GetTxsEventResponse) GetTxResponses() []*v1beta11.TxResponse
- func (x *GetTxsEventResponse) GetTxs() []*Tx
- func (*GetTxsEventResponse) ProtoMessage()
- func (x *GetTxsEventResponse) ProtoReflect() protoreflect.Message
- func (x *GetTxsEventResponse) Reset()
- func (x *GetTxsEventResponse) String() string
- type ModeInfo
- func (*ModeInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ModeInfo) GetMulti() *ModeInfo_Multi
- func (x *ModeInfo) GetSingle() *ModeInfo_Single
- func (x *ModeInfo) GetSum() isModeInfo_Sum
- func (*ModeInfo) ProtoMessage()
- func (x *ModeInfo) ProtoReflect() protoreflect.Message
- func (x *ModeInfo) Reset()
- func (x *ModeInfo) String() string
- type ModeInfo_Multi
- func (*ModeInfo_Multi) Descriptor() ([]byte, []int)deprecated
- func (x *ModeInfo_Multi) GetBitarray() *v1beta11.CompactBitArray
- func (x *ModeInfo_Multi) GetModeInfos() []*ModeInfo
- func (*ModeInfo_Multi) ProtoMessage()
- func (x *ModeInfo_Multi) ProtoReflect() protoreflect.Message
- func (x *ModeInfo_Multi) Reset()
- func (x *ModeInfo_Multi) String() string
- type ModeInfo_Multi_
- type ModeInfo_Single
- type ModeInfo_Single_
- type OrderBy
- type ServiceClient
- type ServiceServer
- type SignDoc
- func (*SignDoc) Descriptor() ([]byte, []int)deprecated
- func (x *SignDoc) GetAccountNumber() uint64
- func (x *SignDoc) GetAuthInfoBytes() []byte
- func (x *SignDoc) GetBodyBytes() []byte
- func (x *SignDoc) GetChainId() string
- func (*SignDoc) ProtoMessage()
- func (x *SignDoc) ProtoReflect() protoreflect.Message
- func (x *SignDoc) Reset()
- func (x *SignDoc) String() string
- type SignDocDirectAux
- func (*SignDocDirectAux) Descriptor() ([]byte, []int)deprecated
- func (x *SignDocDirectAux) GetAccountNumber() uint64
- func (x *SignDocDirectAux) GetBodyBytes() []byte
- func (x *SignDocDirectAux) GetChainId() string
- func (x *SignDocDirectAux) GetPublicKey() *anypb.Any
- func (x *SignDocDirectAux) GetSequence() uint64
- func (x *SignDocDirectAux) GetTip() *Tip
- func (*SignDocDirectAux) ProtoMessage()
- func (x *SignDocDirectAux) ProtoReflect() protoreflect.Message
- func (x *SignDocDirectAux) Reset()
- func (x *SignDocDirectAux) String() string
- type SignerInfo
- func (*SignerInfo) Descriptor() ([]byte, []int)deprecated
- func (x *SignerInfo) GetModeInfo() *ModeInfo
- func (x *SignerInfo) GetPublicKey() *anypb.Any
- func (x *SignerInfo) GetSequence() uint64
- func (*SignerInfo) ProtoMessage()
- func (x *SignerInfo) ProtoReflect() protoreflect.Message
- func (x *SignerInfo) Reset()
- func (x *SignerInfo) String() string
- type SimulateRequest
- func (*SimulateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SimulateRequest) GetTx() *Txdeprecated
- func (x *SimulateRequest) GetTxBytes() []byte
- func (*SimulateRequest) ProtoMessage()
- func (x *SimulateRequest) ProtoReflect() protoreflect.Message
- func (x *SimulateRequest) Reset()
- func (x *SimulateRequest) String() string
- type SimulateResponse
- func (*SimulateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SimulateResponse) GetGasInfo() *v1beta11.GasInfo
- func (x *SimulateResponse) GetResult() *v1beta11.Result
- func (*SimulateResponse) ProtoMessage()
- func (x *SimulateResponse) ProtoReflect() protoreflect.Message
- func (x *SimulateResponse) Reset()
- func (x *SimulateResponse) String() string
- type Tip
- type Tx
- type TxBody
- func (*TxBody) Descriptor() ([]byte, []int)deprecated
- func (x *TxBody) GetExtensionOptions() []*anypb.Any
- func (x *TxBody) GetMemo() string
- func (x *TxBody) GetMessages() []*anypb.Any
- func (x *TxBody) GetNonCriticalExtensionOptions() []*anypb.Any
- func (x *TxBody) GetTimeoutHeight() uint64
- func (*TxBody) ProtoMessage()
- func (x *TxBody) ProtoReflect() protoreflect.Message
- func (x *TxBody) Reset()
- func (x *TxBody) String() string
- type TxRaw
- func (*TxRaw) Descriptor() ([]byte, []int)deprecated
- func (x *TxRaw) GetAuthInfoBytes() []byte
- func (x *TxRaw) GetBodyBytes() []byte
- func (x *TxRaw) GetSignatures() [][]byte
- func (*TxRaw) ProtoMessage()
- func (x *TxRaw) ProtoReflect() protoreflect.Message
- func (x *TxRaw) Reset()
- func (x *TxRaw) String() string
- type UnimplementedServiceServer
- func (UnimplementedServiceServer) BroadcastTx(context.Context, *BroadcastTxRequest) (*BroadcastTxResponse, error)
- func (UnimplementedServiceServer) GetBlockWithTxs(context.Context, *GetBlockWithTxsRequest) (*GetBlockWithTxsResponse, error)
- func (UnimplementedServiceServer) GetTx(context.Context, *GetTxRequest) (*GetTxResponse, error)
- func (UnimplementedServiceServer) GetTxsEvent(context.Context, *GetTxsEventRequest) (*GetTxsEventResponse, error)
- func (UnimplementedServiceServer) Simulate(context.Context, *SimulateRequest) (*SimulateResponse, error)
- type UnsafeServiceServer
Constants ¶
This section is empty.
Variables ¶
var ( OrderBy_name = map[int32]string{ 0: "ORDER_BY_UNSPECIFIED", 1: "ORDER_BY_ASC", 2: "ORDER_BY_DESC", } OrderBy_value = map[string]int32{ "ORDER_BY_UNSPECIFIED": 0, "ORDER_BY_ASC": 1, "ORDER_BY_DESC": 2, } )
Enum value maps for OrderBy.
var ( BroadcastMode_name = map[int32]string{ 0: "BROADCAST_MODE_UNSPECIFIED", 1: "BROADCAST_MODE_BLOCK", 2: "BROADCAST_MODE_SYNC", 3: "BROADCAST_MODE_ASYNC", } BroadcastMode_value = map[string]int32{ "BROADCAST_MODE_UNSPECIFIED": 0, "BROADCAST_MODE_BLOCK": 1, "BROADCAST_MODE_SYNC": 2, "BROADCAST_MODE_ASYNC": 3, } )
Enum value maps for BroadcastMode.
var File_cosmos_tx_v1beta1_service_proto protoreflect.FileDescriptor
var File_cosmos_tx_v1beta1_tx_proto protoreflect.FileDescriptor
var Service_ServiceDesc = grpc.ServiceDesc{ ServiceName: "cosmos.tx.v1beta1.Service", HandlerType: (*ServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Simulate", Handler: _Service_Simulate_Handler, }, { MethodName: "GetTx", Handler: _Service_GetTx_Handler, }, { MethodName: "BroadcastTx", Handler: _Service_BroadcastTx_Handler, }, { MethodName: "GetTxsEvent", Handler: _Service_GetTxsEvent_Handler, }, { MethodName: "GetBlockWithTxs", Handler: _Service_GetBlockWithTxs_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "cosmos/tx/v1beta1/service.proto", }
Service_ServiceDesc is the grpc.ServiceDesc for Service service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterServiceServer ¶
func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)
Types ¶
type AuthInfo ¶
type AuthInfo struct { // signer_infos defines the signing modes for the required signers. The number // and order of elements must match the required signers from TxBody's // messages. The first element is the primary signer and the one which pays // the fee. SignerInfos []*SignerInfo `protobuf:"bytes,1,rep,name=signer_infos,json=signerInfos,proto3" json:"signer_infos,omitempty"` // Fee is the fee and gas limit for the transaction. The first signer is the // primary signer and the one which pays the fee. The fee can be calculated // based on the cost of evaluating the body and doing signature verification // of the signers. This can be estimated via simulation. Fee *Fee `protobuf:"bytes,2,opt,name=fee,proto3" json:"fee,omitempty"` // Tip is the optional tip used for meta-transactions. // // Since: cosmos-sdk 0.46 Tip *Tip `protobuf:"bytes,3,opt,name=tip,proto3" json:"tip,omitempty"` // contains filtered or unexported fields }
AuthInfo describes the fee and signer modes that are used to sign a transaction.
func (*AuthInfo) Descriptor
deprecated
func (*AuthInfo) GetSignerInfos ¶
func (x *AuthInfo) GetSignerInfos() []*SignerInfo
func (*AuthInfo) ProtoMessage ¶
func (*AuthInfo) ProtoMessage()
func (*AuthInfo) ProtoReflect ¶
func (x *AuthInfo) ProtoReflect() protoreflect.Message
type AuxSignerData ¶
type AuxSignerData struct { // address is the bech32-encoded address of the auxiliary signer. If using // AuxSignerData across different chains, the bech32 prefix of the target // chain (where the final transaction is broadcasted) should be used. Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // sign_doc is the SIGN_MOD_DIRECT_AUX sign doc that the auxiliary signer // signs. Note: we use the same sign doc even if we're signing with // LEGACY_AMINO_JSON. SignDoc *SignDocDirectAux `protobuf:"bytes,2,opt,name=sign_doc,json=signDoc,proto3" json:"sign_doc,omitempty"` // mode is the signing mode of the single signer Mode v1beta1.SignMode `protobuf:"varint,3,opt,name=mode,proto3,enum=cosmos.tx.signing.v1beta1.SignMode" json:"mode,omitempty"` // sig is the signature of the sign doc. Sig []byte `protobuf:"bytes,4,opt,name=sig,proto3" json:"sig,omitempty"` // contains filtered or unexported fields }
AuxSignerData is the intermediary format that an auxiliary signer (e.g. a tipper) builds and sends to the fee payer (who will build and broadcast the actual tx). AuxSignerData is not a valid tx in itself, and will be rejected by the node if sent directly as-is.
Since: cosmos-sdk 0.46
func (*AuxSignerData) Descriptor
deprecated
func (*AuxSignerData) Descriptor() ([]byte, []int)
Deprecated: Use AuxSignerData.ProtoReflect.Descriptor instead.
func (*AuxSignerData) GetAddress ¶
func (x *AuxSignerData) GetAddress() string
func (*AuxSignerData) GetMode ¶
func (x *AuxSignerData) GetMode() v1beta1.SignMode
func (*AuxSignerData) GetSig ¶
func (x *AuxSignerData) GetSig() []byte
func (*AuxSignerData) GetSignDoc ¶
func (x *AuxSignerData) GetSignDoc() *SignDocDirectAux
func (*AuxSignerData) ProtoMessage ¶
func (*AuxSignerData) ProtoMessage()
func (*AuxSignerData) ProtoReflect ¶
func (x *AuxSignerData) ProtoReflect() protoreflect.Message
func (*AuxSignerData) Reset ¶
func (x *AuxSignerData) Reset()
func (*AuxSignerData) String ¶
func (x *AuxSignerData) String() string
type BroadcastMode ¶
type BroadcastMode int32
BroadcastMode specifies the broadcast mode for the TxService.Broadcast RPC method.
const ( // zero-value for mode ordering BroadcastMode_BROADCAST_MODE_UNSPECIFIED BroadcastMode = 0 // BROADCAST_MODE_BLOCK defines a tx broadcasting mode where the client waits for // the tx to be committed in a block. BroadcastMode_BROADCAST_MODE_BLOCK BroadcastMode = 1 // BROADCAST_MODE_SYNC defines a tx broadcasting mode where the client waits for // a CheckTx execution response only. BroadcastMode_BROADCAST_MODE_SYNC BroadcastMode = 2 // BROADCAST_MODE_ASYNC defines a tx broadcasting mode where the client returns // immediately. BroadcastMode_BROADCAST_MODE_ASYNC BroadcastMode = 3 )
func (BroadcastMode) Descriptor ¶
func (BroadcastMode) Descriptor() protoreflect.EnumDescriptor
func (BroadcastMode) Enum ¶
func (x BroadcastMode) Enum() *BroadcastMode
func (BroadcastMode) EnumDescriptor
deprecated
func (BroadcastMode) EnumDescriptor() ([]byte, []int)
Deprecated: Use BroadcastMode.Descriptor instead.
func (BroadcastMode) Number ¶
func (x BroadcastMode) Number() protoreflect.EnumNumber
func (BroadcastMode) String ¶
func (x BroadcastMode) String() string
func (BroadcastMode) Type ¶
func (BroadcastMode) Type() protoreflect.EnumType
type BroadcastTxRequest ¶
type BroadcastTxRequest struct { // tx_bytes is the raw transaction. TxBytes []byte `protobuf:"bytes,1,opt,name=tx_bytes,json=txBytes,proto3" json:"tx_bytes,omitempty"` Mode BroadcastMode `protobuf:"varint,2,opt,name=mode,proto3,enum=cosmos.tx.v1beta1.BroadcastMode" json:"mode,omitempty"` // contains filtered or unexported fields }
BroadcastTxRequest is the request type for the Service.BroadcastTxRequest RPC method.
func (*BroadcastTxRequest) Descriptor
deprecated
func (*BroadcastTxRequest) Descriptor() ([]byte, []int)
Deprecated: Use BroadcastTxRequest.ProtoReflect.Descriptor instead.
func (*BroadcastTxRequest) GetMode ¶
func (x *BroadcastTxRequest) GetMode() BroadcastMode
func (*BroadcastTxRequest) GetTxBytes ¶
func (x *BroadcastTxRequest) GetTxBytes() []byte
func (*BroadcastTxRequest) ProtoMessage ¶
func (*BroadcastTxRequest) ProtoMessage()
func (*BroadcastTxRequest) ProtoReflect ¶
func (x *BroadcastTxRequest) ProtoReflect() protoreflect.Message
func (*BroadcastTxRequest) Reset ¶
func (x *BroadcastTxRequest) Reset()
func (*BroadcastTxRequest) String ¶
func (x *BroadcastTxRequest) String() string
type BroadcastTxResponse ¶
type BroadcastTxResponse struct { // tx_response is the queried TxResponses. TxResponse *v1beta11.TxResponse `protobuf:"bytes,1,opt,name=tx_response,json=txResponse,proto3" json:"tx_response,omitempty"` // contains filtered or unexported fields }
BroadcastTxResponse is the response type for the Service.BroadcastTx method.
func (*BroadcastTxResponse) Descriptor
deprecated
func (*BroadcastTxResponse) Descriptor() ([]byte, []int)
Deprecated: Use BroadcastTxResponse.ProtoReflect.Descriptor instead.
func (*BroadcastTxResponse) GetTxResponse ¶
func (x *BroadcastTxResponse) GetTxResponse() *v1beta11.TxResponse
func (*BroadcastTxResponse) ProtoMessage ¶
func (*BroadcastTxResponse) ProtoMessage()
func (*BroadcastTxResponse) ProtoReflect ¶
func (x *BroadcastTxResponse) ProtoReflect() protoreflect.Message
func (*BroadcastTxResponse) Reset ¶
func (x *BroadcastTxResponse) Reset()
func (*BroadcastTxResponse) String ¶
func (x *BroadcastTxResponse) String() string
type Fee ¶
type Fee struct { // amount is the amount of coins to be paid as a fee Amount []*v1beta12.Coin `protobuf:"bytes,1,rep,name=amount,proto3" json:"amount,omitempty"` // gas_limit is the maximum gas that can be used in transaction processing // before an out of gas error occurs GasLimit uint64 `protobuf:"varint,2,opt,name=gas_limit,json=gasLimit,proto3" json:"gas_limit,omitempty"` // if unset, the first signer is responsible for paying the fees. If set, the specified account must pay the fees. // the payer must be a tx signer (and thus have signed this field in AuthInfo). // setting this field does *not* change the ordering of required signers for the transaction. Payer string `protobuf:"bytes,3,opt,name=payer,proto3" json:"payer,omitempty"` // if set, the fee payer (either the first signer or the value of the payer field) requests that a fee grant be used // to pay fees instead of the fee payer's own balance. If an appropriate fee grant does not exist or the chain does // not support fee grants, this will fail Granter string `protobuf:"bytes,4,opt,name=granter,proto3" json:"granter,omitempty"` // contains filtered or unexported fields }
Fee includes the amount of coins paid in fees and the maximum gas to be used by the transaction. The ratio yields an effective "gasprice", which must be above some miminum to be accepted into the mempool.
func (*Fee) Descriptor
deprecated
func (*Fee) GetGasLimit ¶
func (*Fee) GetGranter ¶
func (*Fee) ProtoMessage ¶
func (*Fee) ProtoMessage()
func (*Fee) ProtoReflect ¶
func (x *Fee) ProtoReflect() protoreflect.Message
type GetBlockWithTxsRequest ¶
type GetBlockWithTxsRequest struct { // height is the height of the block to query. Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` // pagination defines a pagination for the request. Pagination *v1beta1.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
GetBlockWithTxsRequest is the request type for the Service.GetBlockWithTxs RPC method.
Since: cosmos-sdk 0.45.2
func (*GetBlockWithTxsRequest) Descriptor
deprecated
func (*GetBlockWithTxsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetBlockWithTxsRequest.ProtoReflect.Descriptor instead.
func (*GetBlockWithTxsRequest) GetHeight ¶
func (x *GetBlockWithTxsRequest) GetHeight() int64
func (*GetBlockWithTxsRequest) GetPagination ¶
func (x *GetBlockWithTxsRequest) GetPagination() *v1beta1.PageRequest
func (*GetBlockWithTxsRequest) ProtoMessage ¶
func (*GetBlockWithTxsRequest) ProtoMessage()
func (*GetBlockWithTxsRequest) ProtoReflect ¶
func (x *GetBlockWithTxsRequest) ProtoReflect() protoreflect.Message
func (*GetBlockWithTxsRequest) Reset ¶
func (x *GetBlockWithTxsRequest) Reset()
func (*GetBlockWithTxsRequest) String ¶
func (x *GetBlockWithTxsRequest) String() string
type GetBlockWithTxsResponse ¶
type GetBlockWithTxsResponse struct { // txs are the transactions in the block. Txs []*Tx `protobuf:"bytes,1,rep,name=txs,proto3" json:"txs,omitempty"` BlockId *types.BlockID `protobuf:"bytes,2,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"` Block *types.Block `protobuf:"bytes,3,opt,name=block,proto3" json:"block,omitempty"` // pagination defines a pagination for the response. Pagination *v1beta1.PageResponse `protobuf:"bytes,4,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
GetBlockWithTxsResponse is the response type for the Service.GetBlockWithTxs method.
Since: cosmos-sdk 0.45.2
func (*GetBlockWithTxsResponse) Descriptor
deprecated
func (*GetBlockWithTxsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetBlockWithTxsResponse.ProtoReflect.Descriptor instead.
func (*GetBlockWithTxsResponse) GetBlock ¶
func (x *GetBlockWithTxsResponse) GetBlock() *types.Block
func (*GetBlockWithTxsResponse) GetBlockId ¶
func (x *GetBlockWithTxsResponse) GetBlockId() *types.BlockID
func (*GetBlockWithTxsResponse) GetPagination ¶
func (x *GetBlockWithTxsResponse) GetPagination() *v1beta1.PageResponse
func (*GetBlockWithTxsResponse) GetTxs ¶
func (x *GetBlockWithTxsResponse) GetTxs() []*Tx
func (*GetBlockWithTxsResponse) ProtoMessage ¶
func (*GetBlockWithTxsResponse) ProtoMessage()
func (*GetBlockWithTxsResponse) ProtoReflect ¶
func (x *GetBlockWithTxsResponse) ProtoReflect() protoreflect.Message
func (*GetBlockWithTxsResponse) Reset ¶
func (x *GetBlockWithTxsResponse) Reset()
func (*GetBlockWithTxsResponse) String ¶
func (x *GetBlockWithTxsResponse) String() string
type GetTxRequest ¶
type GetTxRequest struct { // hash is the tx hash to query, encoded as a hex string. Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` // contains filtered or unexported fields }
GetTxRequest is the request type for the Service.GetTx RPC method.
func (*GetTxRequest) Descriptor
deprecated
func (*GetTxRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetTxRequest.ProtoReflect.Descriptor instead.
func (*GetTxRequest) GetHash ¶
func (x *GetTxRequest) GetHash() string
func (*GetTxRequest) ProtoMessage ¶
func (*GetTxRequest) ProtoMessage()
func (*GetTxRequest) ProtoReflect ¶
func (x *GetTxRequest) ProtoReflect() protoreflect.Message
func (*GetTxRequest) Reset ¶
func (x *GetTxRequest) Reset()
func (*GetTxRequest) String ¶
func (x *GetTxRequest) String() string
type GetTxResponse ¶
type GetTxResponse struct { // tx is the queried transaction. Tx *Tx `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"` // tx_response is the queried TxResponses. TxResponse *v1beta11.TxResponse `protobuf:"bytes,2,opt,name=tx_response,json=txResponse,proto3" json:"tx_response,omitempty"` // contains filtered or unexported fields }
GetTxResponse is the response type for the Service.GetTx method.
func (*GetTxResponse) Descriptor
deprecated
func (*GetTxResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetTxResponse.ProtoReflect.Descriptor instead.
func (*GetTxResponse) GetTx ¶
func (x *GetTxResponse) GetTx() *Tx
func (*GetTxResponse) GetTxResponse ¶
func (x *GetTxResponse) GetTxResponse() *v1beta11.TxResponse
func (*GetTxResponse) ProtoMessage ¶
func (*GetTxResponse) ProtoMessage()
func (*GetTxResponse) ProtoReflect ¶
func (x *GetTxResponse) ProtoReflect() protoreflect.Message
func (*GetTxResponse) Reset ¶
func (x *GetTxResponse) Reset()
func (*GetTxResponse) String ¶
func (x *GetTxResponse) String() string
type GetTxsEventRequest ¶
type GetTxsEventRequest struct { // events is the list of transaction event type. Events []string `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"` // pagination defines a pagination for the request. Pagination *v1beta1.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` OrderBy OrderBy `protobuf:"varint,3,opt,name=order_by,json=orderBy,proto3,enum=cosmos.tx.v1beta1.OrderBy" json:"order_by,omitempty"` // contains filtered or unexported fields }
GetTxsEventRequest is the request type for the Service.TxsByEvents RPC method.
func (*GetTxsEventRequest) Descriptor
deprecated
func (*GetTxsEventRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetTxsEventRequest.ProtoReflect.Descriptor instead.
func (*GetTxsEventRequest) GetEvents ¶
func (x *GetTxsEventRequest) GetEvents() []string
func (*GetTxsEventRequest) GetOrderBy ¶
func (x *GetTxsEventRequest) GetOrderBy() OrderBy
func (*GetTxsEventRequest) GetPagination ¶
func (x *GetTxsEventRequest) GetPagination() *v1beta1.PageRequest
func (*GetTxsEventRequest) ProtoMessage ¶
func (*GetTxsEventRequest) ProtoMessage()
func (*GetTxsEventRequest) ProtoReflect ¶
func (x *GetTxsEventRequest) ProtoReflect() protoreflect.Message
func (*GetTxsEventRequest) Reset ¶
func (x *GetTxsEventRequest) Reset()
func (*GetTxsEventRequest) String ¶
func (x *GetTxsEventRequest) String() string
type GetTxsEventResponse ¶
type GetTxsEventResponse struct { // txs is the list of queried transactions. Txs []*Tx `protobuf:"bytes,1,rep,name=txs,proto3" json:"txs,omitempty"` // tx_responses is the list of queried TxResponses. TxResponses []*v1beta11.TxResponse `protobuf:"bytes,2,rep,name=tx_responses,json=txResponses,proto3" json:"tx_responses,omitempty"` // pagination defines a pagination for the response. Pagination *v1beta1.PageResponse `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
GetTxsEventResponse is the response type for the Service.TxsByEvents RPC method.
func (*GetTxsEventResponse) Descriptor
deprecated
func (*GetTxsEventResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetTxsEventResponse.ProtoReflect.Descriptor instead.
func (*GetTxsEventResponse) GetPagination ¶
func (x *GetTxsEventResponse) GetPagination() *v1beta1.PageResponse
func (*GetTxsEventResponse) GetTxResponses ¶
func (x *GetTxsEventResponse) GetTxResponses() []*v1beta11.TxResponse
func (*GetTxsEventResponse) GetTxs ¶
func (x *GetTxsEventResponse) GetTxs() []*Tx
func (*GetTxsEventResponse) ProtoMessage ¶
func (*GetTxsEventResponse) ProtoMessage()
func (*GetTxsEventResponse) ProtoReflect ¶
func (x *GetTxsEventResponse) ProtoReflect() protoreflect.Message
func (*GetTxsEventResponse) Reset ¶
func (x *GetTxsEventResponse) Reset()
func (*GetTxsEventResponse) String ¶
func (x *GetTxsEventResponse) String() string
type ModeInfo ¶
type ModeInfo struct { // sum is the oneof that specifies whether this represents a single or nested // multisig signer // // Types that are assignable to Sum: // *ModeInfo_Single_ // *ModeInfo_Multi_ Sum isModeInfo_Sum `protobuf_oneof:"sum"` // contains filtered or unexported fields }
ModeInfo describes the signing mode of a single or nested multisig signer.
func (*ModeInfo) Descriptor
deprecated
func (*ModeInfo) GetMulti ¶
func (x *ModeInfo) GetMulti() *ModeInfo_Multi
func (*ModeInfo) GetSingle ¶
func (x *ModeInfo) GetSingle() *ModeInfo_Single
func (*ModeInfo) ProtoMessage ¶
func (*ModeInfo) ProtoMessage()
func (*ModeInfo) ProtoReflect ¶
func (x *ModeInfo) ProtoReflect() protoreflect.Message
type ModeInfo_Multi ¶
type ModeInfo_Multi struct { // bitarray specifies which keys within the multisig are signing Bitarray *v1beta11.CompactBitArray `protobuf:"bytes,1,opt,name=bitarray,proto3" json:"bitarray,omitempty"` // mode_infos is the corresponding modes of the signers of the multisig // which could include nested multisig public keys ModeInfos []*ModeInfo `protobuf:"bytes,2,rep,name=mode_infos,json=modeInfos,proto3" json:"mode_infos,omitempty"` // contains filtered or unexported fields }
Multi is the mode info for a multisig public key
func (*ModeInfo_Multi) Descriptor
deprecated
func (*ModeInfo_Multi) Descriptor() ([]byte, []int)
Deprecated: Use ModeInfo_Multi.ProtoReflect.Descriptor instead.
func (*ModeInfo_Multi) GetBitarray ¶
func (x *ModeInfo_Multi) GetBitarray() *v1beta11.CompactBitArray
func (*ModeInfo_Multi) GetModeInfos ¶
func (x *ModeInfo_Multi) GetModeInfos() []*ModeInfo
func (*ModeInfo_Multi) ProtoMessage ¶
func (*ModeInfo_Multi) ProtoMessage()
func (*ModeInfo_Multi) ProtoReflect ¶
func (x *ModeInfo_Multi) ProtoReflect() protoreflect.Message
func (*ModeInfo_Multi) Reset ¶
func (x *ModeInfo_Multi) Reset()
func (*ModeInfo_Multi) String ¶
func (x *ModeInfo_Multi) String() string
type ModeInfo_Multi_ ¶
type ModeInfo_Multi_ struct { // multi represents a nested multisig signer Multi *ModeInfo_Multi `protobuf:"bytes,2,opt,name=multi,proto3,oneof"` }
type ModeInfo_Single ¶
type ModeInfo_Single struct { // mode is the signing mode of the single signer Mode v1beta1.SignMode `protobuf:"varint,1,opt,name=mode,proto3,enum=cosmos.tx.signing.v1beta1.SignMode" json:"mode,omitempty"` // contains filtered or unexported fields }
Single is the mode info for a single signer. It is structured as a message to allow for additional fields such as locale for SIGN_MODE_TEXTUAL in the future
func (*ModeInfo_Single) Descriptor
deprecated
func (*ModeInfo_Single) Descriptor() ([]byte, []int)
Deprecated: Use ModeInfo_Single.ProtoReflect.Descriptor instead.
func (*ModeInfo_Single) GetMode ¶
func (x *ModeInfo_Single) GetMode() v1beta1.SignMode
func (*ModeInfo_Single) ProtoMessage ¶
func (*ModeInfo_Single) ProtoMessage()
func (*ModeInfo_Single) ProtoReflect ¶
func (x *ModeInfo_Single) ProtoReflect() protoreflect.Message
func (*ModeInfo_Single) Reset ¶
func (x *ModeInfo_Single) Reset()
func (*ModeInfo_Single) String ¶
func (x *ModeInfo_Single) String() string
type ModeInfo_Single_ ¶
type ModeInfo_Single_ struct { // single represents a single signer Single *ModeInfo_Single `protobuf:"bytes,1,opt,name=single,proto3,oneof"` }
type OrderBy ¶
type OrderBy int32
OrderBy defines the sorting order
func (OrderBy) Descriptor ¶
func (OrderBy) Descriptor() protoreflect.EnumDescriptor
func (OrderBy) EnumDescriptor
deprecated
func (OrderBy) Number ¶
func (x OrderBy) Number() protoreflect.EnumNumber
func (OrderBy) Type ¶
func (OrderBy) Type() protoreflect.EnumType
type ServiceClient ¶
type ServiceClient interface { // Simulate simulates executing a transaction for estimating gas usage. Simulate(ctx context.Context, in *SimulateRequest, opts ...grpc.CallOption) (*SimulateResponse, error) // GetTx fetches a tx by hash. GetTx(ctx context.Context, in *GetTxRequest, opts ...grpc.CallOption) (*GetTxResponse, error) // BroadcastTx broadcast transaction. BroadcastTx(ctx context.Context, in *BroadcastTxRequest, opts ...grpc.CallOption) (*BroadcastTxResponse, error) // GetTxsEvent fetches txs by event. GetTxsEvent(ctx context.Context, in *GetTxsEventRequest, opts ...grpc.CallOption) (*GetTxsEventResponse, error) // GetBlockWithTxs fetches a block with decoded txs. // // Since: cosmos-sdk 0.45.2 GetBlockWithTxs(ctx context.Context, in *GetBlockWithTxsRequest, opts ...grpc.CallOption) (*GetBlockWithTxsResponse, error) }
ServiceClient is the client API for Service service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewServiceClient ¶
func NewServiceClient(cc grpc.ClientConnInterface) ServiceClient
type ServiceServer ¶
type ServiceServer interface { // Simulate simulates executing a transaction for estimating gas usage. Simulate(context.Context, *SimulateRequest) (*SimulateResponse, error) // GetTx fetches a tx by hash. GetTx(context.Context, *GetTxRequest) (*GetTxResponse, error) // BroadcastTx broadcast transaction. BroadcastTx(context.Context, *BroadcastTxRequest) (*BroadcastTxResponse, error) // GetTxsEvent fetches txs by event. GetTxsEvent(context.Context, *GetTxsEventRequest) (*GetTxsEventResponse, error) // GetBlockWithTxs fetches a block with decoded txs. // // Since: cosmos-sdk 0.45.2 GetBlockWithTxs(context.Context, *GetBlockWithTxsRequest) (*GetBlockWithTxsResponse, error) // contains filtered or unexported methods }
ServiceServer is the server API for Service service. All implementations must embed UnimplementedServiceServer for forward compatibility
type SignDoc ¶
type SignDoc struct { // body_bytes is protobuf serialization of a TxBody that matches the // representation in TxRaw. BodyBytes []byte `protobuf:"bytes,1,opt,name=body_bytes,json=bodyBytes,proto3" json:"body_bytes,omitempty"` // auth_info_bytes is a protobuf serialization of an AuthInfo that matches the // representation in TxRaw. AuthInfoBytes []byte `protobuf:"bytes,2,opt,name=auth_info_bytes,json=authInfoBytes,proto3" json:"auth_info_bytes,omitempty"` // chain_id is the unique identifier of the chain this transaction targets. // It prevents signed transactions from being used on another chain by an // attacker ChainId string `protobuf:"bytes,3,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` // account_number is the account number of the account in state AccountNumber uint64 `protobuf:"varint,4,opt,name=account_number,json=accountNumber,proto3" json:"account_number,omitempty"` // contains filtered or unexported fields }
SignDoc is the type used for generating sign bytes for SIGN_MODE_DIRECT.
func (*SignDoc) Descriptor
deprecated
func (*SignDoc) GetAccountNumber ¶
func (*SignDoc) GetAuthInfoBytes ¶
func (*SignDoc) GetBodyBytes ¶
func (*SignDoc) GetChainId ¶
func (*SignDoc) ProtoMessage ¶
func (*SignDoc) ProtoMessage()
func (*SignDoc) ProtoReflect ¶
func (x *SignDoc) ProtoReflect() protoreflect.Message
type SignDocDirectAux ¶
type SignDocDirectAux struct { // body_bytes is protobuf serialization of a TxBody that matches the // representation in TxRaw. BodyBytes []byte `protobuf:"bytes,1,opt,name=body_bytes,json=bodyBytes,proto3" json:"body_bytes,omitempty"` // public_key is the public key of the signing account. PublicKey *anypb.Any `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` // chain_id is the identifier of the chain this transaction targets. // It prevents signed transactions from being used on another chain by an // attacker. ChainId string `protobuf:"bytes,3,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` // account_number is the account number of the account in state. AccountNumber uint64 `protobuf:"varint,4,opt,name=account_number,json=accountNumber,proto3" json:"account_number,omitempty"` // sequence is the sequence number of the signing account. Sequence uint64 `protobuf:"varint,5,opt,name=sequence,proto3" json:"sequence,omitempty"` // Tip is the optional tip used for meta-transactions. It should be left // empty if the signer is not the tipper for this transaction. Tip *Tip `protobuf:"bytes,6,opt,name=tip,proto3" json:"tip,omitempty"` // contains filtered or unexported fields }
SignDocDirectAux is the type used for generating sign bytes for SIGN_MODE_DIRECT_AUX.
Since: cosmos-sdk 0.46
func (*SignDocDirectAux) Descriptor
deprecated
func (*SignDocDirectAux) Descriptor() ([]byte, []int)
Deprecated: Use SignDocDirectAux.ProtoReflect.Descriptor instead.
func (*SignDocDirectAux) GetAccountNumber ¶
func (x *SignDocDirectAux) GetAccountNumber() uint64
func (*SignDocDirectAux) GetBodyBytes ¶
func (x *SignDocDirectAux) GetBodyBytes() []byte
func (*SignDocDirectAux) GetChainId ¶
func (x *SignDocDirectAux) GetChainId() string
func (*SignDocDirectAux) GetPublicKey ¶
func (x *SignDocDirectAux) GetPublicKey() *anypb.Any
func (*SignDocDirectAux) GetSequence ¶
func (x *SignDocDirectAux) GetSequence() uint64
func (*SignDocDirectAux) GetTip ¶
func (x *SignDocDirectAux) GetTip() *Tip
func (*SignDocDirectAux) ProtoMessage ¶
func (*SignDocDirectAux) ProtoMessage()
func (*SignDocDirectAux) ProtoReflect ¶
func (x *SignDocDirectAux) ProtoReflect() protoreflect.Message
func (*SignDocDirectAux) Reset ¶
func (x *SignDocDirectAux) Reset()
func (*SignDocDirectAux) String ¶
func (x *SignDocDirectAux) String() string
type SignerInfo ¶
type SignerInfo struct { // public_key is the public key of the signer. It is optional for accounts // that already exist in state. If unset, the verifier can use the required \ // signer address for this position and lookup the public key. PublicKey *anypb.Any `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` // mode_info describes the signing mode of the signer and is a nested // structure to support nested multisig pubkey's ModeInfo *ModeInfo `protobuf:"bytes,2,opt,name=mode_info,json=modeInfo,proto3" json:"mode_info,omitempty"` // sequence is the sequence of the account, which describes the // number of committed transactions signed by a given address. It is used to // prevent replay attacks. Sequence uint64 `protobuf:"varint,3,opt,name=sequence,proto3" json:"sequence,omitempty"` // contains filtered or unexported fields }
SignerInfo describes the public key and signing mode of a single top-level signer.
func (*SignerInfo) Descriptor
deprecated
func (*SignerInfo) Descriptor() ([]byte, []int)
Deprecated: Use SignerInfo.ProtoReflect.Descriptor instead.
func (*SignerInfo) GetModeInfo ¶
func (x *SignerInfo) GetModeInfo() *ModeInfo
func (*SignerInfo) GetPublicKey ¶
func (x *SignerInfo) GetPublicKey() *anypb.Any
func (*SignerInfo) GetSequence ¶
func (x *SignerInfo) GetSequence() uint64
func (*SignerInfo) ProtoMessage ¶
func (*SignerInfo) ProtoMessage()
func (*SignerInfo) ProtoReflect ¶
func (x *SignerInfo) ProtoReflect() protoreflect.Message
func (*SignerInfo) Reset ¶
func (x *SignerInfo) Reset()
func (*SignerInfo) String ¶
func (x *SignerInfo) String() string
type SimulateRequest ¶
type SimulateRequest struct { // tx is the transaction to simulate. // Deprecated. Send raw tx bytes instead. // // Deprecated: Do not use. Tx *Tx `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"` // tx_bytes is the raw transaction. // // Since: cosmos-sdk 0.43 TxBytes []byte `protobuf:"bytes,2,opt,name=tx_bytes,json=txBytes,proto3" json:"tx_bytes,omitempty"` // contains filtered or unexported fields }
SimulateRequest is the request type for the Service.Simulate RPC method.
func (*SimulateRequest) Descriptor
deprecated
func (*SimulateRequest) Descriptor() ([]byte, []int)
Deprecated: Use SimulateRequest.ProtoReflect.Descriptor instead.
func (*SimulateRequest) GetTx
deprecated
func (x *SimulateRequest) GetTx() *Tx
Deprecated: Do not use.
func (*SimulateRequest) GetTxBytes ¶
func (x *SimulateRequest) GetTxBytes() []byte
func (*SimulateRequest) ProtoMessage ¶
func (*SimulateRequest) ProtoMessage()
func (*SimulateRequest) ProtoReflect ¶
func (x *SimulateRequest) ProtoReflect() protoreflect.Message
func (*SimulateRequest) Reset ¶
func (x *SimulateRequest) Reset()
func (*SimulateRequest) String ¶
func (x *SimulateRequest) String() string
type SimulateResponse ¶
type SimulateResponse struct { // gas_info is the information about gas used in the simulation. GasInfo *v1beta11.GasInfo `protobuf:"bytes,1,opt,name=gas_info,json=gasInfo,proto3" json:"gas_info,omitempty"` // result is the result of the simulation. Result *v1beta11.Result `protobuf:"bytes,2,opt,name=result,proto3" json:"result,omitempty"` // contains filtered or unexported fields }
SimulateResponse is the response type for the Service.SimulateRPC method.
func (*SimulateResponse) Descriptor
deprecated
func (*SimulateResponse) Descriptor() ([]byte, []int)
Deprecated: Use SimulateResponse.ProtoReflect.Descriptor instead.
func (*SimulateResponse) GetGasInfo ¶
func (x *SimulateResponse) GetGasInfo() *v1beta11.GasInfo
func (*SimulateResponse) GetResult ¶
func (x *SimulateResponse) GetResult() *v1beta11.Result
func (*SimulateResponse) ProtoMessage ¶
func (*SimulateResponse) ProtoMessage()
func (*SimulateResponse) ProtoReflect ¶
func (x *SimulateResponse) ProtoReflect() protoreflect.Message
func (*SimulateResponse) Reset ¶
func (x *SimulateResponse) Reset()
func (*SimulateResponse) String ¶
func (x *SimulateResponse) String() string
type Tip ¶
type Tip struct { // amount is the amount of the tip Amount []*v1beta12.Coin `protobuf:"bytes,1,rep,name=amount,proto3" json:"amount,omitempty"` // tipper is the address of the account paying for the tip Tipper string `protobuf:"bytes,2,opt,name=tipper,proto3" json:"tipper,omitempty"` // contains filtered or unexported fields }
Tip is the tip used for meta-transactions.
Since: cosmos-sdk 0.46
func (*Tip) Descriptor
deprecated
func (*Tip) ProtoMessage ¶
func (*Tip) ProtoMessage()
func (*Tip) ProtoReflect ¶
func (x *Tip) ProtoReflect() protoreflect.Message
type Tx ¶
type Tx struct { // body is the processable content of the transaction Body *TxBody `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"` // auth_info is the authorization related content of the transaction, // specifically signers, signer modes and fee AuthInfo *AuthInfo `protobuf:"bytes,2,opt,name=auth_info,json=authInfo,proto3" json:"auth_info,omitempty"` // signatures is a list of signatures that matches the length and order of // AuthInfo's signer_infos to allow connecting signature meta information like // public key and signing mode by position. Signatures [][]byte `protobuf:"bytes,3,rep,name=signatures,proto3" json:"signatures,omitempty"` // contains filtered or unexported fields }
Tx is the standard type used for broadcasting transactions.
func (*Tx) Descriptor
deprecated
func (*Tx) GetAuthInfo ¶
func (*Tx) GetSignatures ¶
func (*Tx) ProtoMessage ¶
func (*Tx) ProtoMessage()
func (*Tx) ProtoReflect ¶
func (x *Tx) ProtoReflect() protoreflect.Message
type TxBody ¶
type TxBody struct { // messages is a list of messages to be executed. The required signers of // those messages define the number and order of elements in AuthInfo's // signer_infos and Tx's signatures. Each required signer address is added to // the list only the first time it occurs. // By convention, the first required signer (usually from the first message) // is referred to as the primary signer and pays the fee for the whole // transaction. Messages []*anypb.Any `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"` // memo is any arbitrary note/comment to be added to the transaction. // WARNING: in clients, any publicly exposed text should not be called memo, // but should be called `note` instead (see https://github.com/mycodeku/transtionhelper/issues/9122). Memo string `protobuf:"bytes,2,opt,name=memo,proto3" json:"memo,omitempty"` // timeout is the block height after which this transaction will not // be processed by the chain TimeoutHeight uint64 `protobuf:"varint,3,opt,name=timeout_height,json=timeoutHeight,proto3" json:"timeout_height,omitempty"` // extension_options are arbitrary options that can be added by chains // when the default options are not sufficient. If any of these are present // and can't be handled, the transaction will be rejected ExtensionOptions []*anypb.Any `protobuf:"bytes,1023,rep,name=extension_options,json=extensionOptions,proto3" json:"extension_options,omitempty"` // extension_options are arbitrary options that can be added by chains // when the default options are not sufficient. If any of these are present // and can't be handled, they will be ignored NonCriticalExtensionOptions []*anypb.Any `` /* 149-byte string literal not displayed */ // contains filtered or unexported fields }
TxBody is the body of a transaction that all signers sign over.
func (*TxBody) Descriptor
deprecated
func (*TxBody) GetExtensionOptions ¶
func (*TxBody) GetMessages ¶
func (*TxBody) GetNonCriticalExtensionOptions ¶
func (*TxBody) GetTimeoutHeight ¶
func (*TxBody) ProtoMessage ¶
func (*TxBody) ProtoMessage()
func (*TxBody) ProtoReflect ¶
func (x *TxBody) ProtoReflect() protoreflect.Message
type TxRaw ¶
type TxRaw struct { // body_bytes is a protobuf serialization of a TxBody that matches the // representation in SignDoc. BodyBytes []byte `protobuf:"bytes,1,opt,name=body_bytes,json=bodyBytes,proto3" json:"body_bytes,omitempty"` // auth_info_bytes is a protobuf serialization of an AuthInfo that matches the // representation in SignDoc. AuthInfoBytes []byte `protobuf:"bytes,2,opt,name=auth_info_bytes,json=authInfoBytes,proto3" json:"auth_info_bytes,omitempty"` // signatures is a list of signatures that matches the length and order of // AuthInfo's signer_infos to allow connecting signature meta information like // public key and signing mode by position. Signatures [][]byte `protobuf:"bytes,3,rep,name=signatures,proto3" json:"signatures,omitempty"` // contains filtered or unexported fields }
TxRaw is a variant of Tx that pins the signer's exact binary representation of body and auth_info. This is used for signing, broadcasting and verification. The binary `serialize(tx: TxRaw)` is stored in Tendermint and the hash `sha256(serialize(tx: TxRaw))` becomes the "txhash", commonly used as the transaction ID.
func (*TxRaw) Descriptor
deprecated
func (*TxRaw) GetAuthInfoBytes ¶
func (*TxRaw) GetBodyBytes ¶
func (*TxRaw) GetSignatures ¶
func (*TxRaw) ProtoMessage ¶
func (*TxRaw) ProtoMessage()
func (*TxRaw) ProtoReflect ¶
func (x *TxRaw) ProtoReflect() protoreflect.Message
type UnimplementedServiceServer ¶
type UnimplementedServiceServer struct { }
UnimplementedServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedServiceServer) BroadcastTx ¶
func (UnimplementedServiceServer) BroadcastTx(context.Context, *BroadcastTxRequest) (*BroadcastTxResponse, error)
func (UnimplementedServiceServer) GetBlockWithTxs ¶
func (UnimplementedServiceServer) GetBlockWithTxs(context.Context, *GetBlockWithTxsRequest) (*GetBlockWithTxsResponse, error)
func (UnimplementedServiceServer) GetTx ¶
func (UnimplementedServiceServer) GetTx(context.Context, *GetTxRequest) (*GetTxResponse, error)
func (UnimplementedServiceServer) GetTxsEvent ¶
func (UnimplementedServiceServer) GetTxsEvent(context.Context, *GetTxsEventRequest) (*GetTxsEventResponse, error)
func (UnimplementedServiceServer) Simulate ¶
func (UnimplementedServiceServer) Simulate(context.Context, *SimulateRequest) (*SimulateResponse, error)
type UnsafeServiceServer ¶
type UnsafeServiceServer interface {
// contains filtered or unexported methods
}
UnsafeServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ServiceServer will result in compilation errors.