Documentation ¶
Index ¶
- Variables
- func RegisterTransactionServiceServer(s grpc.ServiceRegistrar, srv TransactionServiceServer)
- type Annotated
- func (*Annotated) Descriptor() ([]byte, []int)deprecated
- func (x *Annotated) GetArgs() string
- func (x *Annotated) GetExtrinsicIndex() int64
- func (x *Annotated) GetHash() string
- func (x *Annotated) GetIsSigned() bool
- func (x *Annotated) GetMethod() string
- func (x *Annotated) GetSection() string
- func (*Annotated) ProtoMessage()
- func (x *Annotated) ProtoReflect() protoreflect.Message
- func (x *Annotated) Reset()
- func (x *Annotated) String() string
- type CallArg
- func (*CallArg) Descriptor() ([]byte, []int)deprecated
- func (x *CallArg) GetMethod() string
- func (x *CallArg) GetSection() string
- func (x *CallArg) GetValue() string
- func (*CallArg) ProtoMessage()
- func (x *CallArg) ProtoReflect() protoreflect.Message
- func (x *CallArg) Reset()
- func (x *CallArg) String() string
- type GetAnnotatedByHeightRequest
- func (*GetAnnotatedByHeightRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetAnnotatedByHeightRequest) GetHeight() int64
- func (*GetAnnotatedByHeightRequest) ProtoMessage()
- func (x *GetAnnotatedByHeightRequest) ProtoReflect() protoreflect.Message
- func (x *GetAnnotatedByHeightRequest) Reset()
- func (x *GetAnnotatedByHeightRequest) String() string
- type GetAnnotatedByHeightResponse
- func (*GetAnnotatedByHeightResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetAnnotatedByHeightResponse) GetTransactions() []*Annotated
- func (*GetAnnotatedByHeightResponse) ProtoMessage()
- func (x *GetAnnotatedByHeightResponse) ProtoReflect() protoreflect.Message
- func (x *GetAnnotatedByHeightResponse) Reset()
- func (x *GetAnnotatedByHeightResponse) String() string
- type GetByHeightRequest
- func (*GetByHeightRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetByHeightRequest) GetHeight() int64
- func (*GetByHeightRequest) ProtoMessage()
- func (x *GetByHeightRequest) ProtoReflect() protoreflect.Message
- func (x *GetByHeightRequest) Reset()
- func (x *GetByHeightRequest) String() string
- type GetByHeightResponse
- func (*GetByHeightResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetByHeightResponse) GetTransactions() []*Transaction
- func (*GetByHeightResponse) ProtoMessage()
- func (x *GetByHeightResponse) ProtoReflect() protoreflect.Message
- func (x *GetByHeightResponse) Reset()
- func (x *GetByHeightResponse) String() string
- type Transaction
- func (*Transaction) Descriptor() ([]byte, []int)deprecated
- func (x *Transaction) GetArgs() string
- func (x *Transaction) GetCallArgs() []*CallArg
- func (x *Transaction) GetEpoch() string
- func (x *Transaction) GetEvents() []*eventpb.Event
- func (x *Transaction) GetExtrinsicIndex() int64
- func (x *Transaction) GetHash() string
- func (x *Transaction) GetIsSignedTransaction() bool
- func (x *Transaction) GetIsSuccess() bool
- func (x *Transaction) GetMethod() string
- func (x *Transaction) GetNonce() int64
- func (x *Transaction) GetPartialFee() string
- func (x *Transaction) GetRaw() string
- func (x *Transaction) GetSection() string
- func (x *Transaction) GetSignature() string
- func (x *Transaction) GetSigner() string
- func (x *Transaction) GetTime() string
- func (x *Transaction) GetTip() string
- func (*Transaction) ProtoMessage()
- func (x *Transaction) ProtoReflect() protoreflect.Message
- func (x *Transaction) Reset()
- func (x *Transaction) String() string
- type TransactionServiceClient
- type TransactionServiceServer
- type UnimplementedTransactionServiceServer
- type UnsafeTransactionServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_grpc_transaction_transactionpb_transaction_proto protoreflect.FileDescriptor
var TransactionService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "transaction.TransactionService", HandlerType: (*TransactionServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetByHeight", Handler: _TransactionService_GetByHeight_Handler, }, { MethodName: "GetAnnotatedByHeight", Handler: _TransactionService_GetAnnotatedByHeight_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "grpc/transaction/transactionpb/transaction.proto", }
TransactionService_ServiceDesc is the grpc.ServiceDesc for TransactionService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterTransactionServiceServer ¶
func RegisterTransactionServiceServer(s grpc.ServiceRegistrar, srv TransactionServiceServer)
Types ¶
type Annotated ¶
type Annotated struct { ExtrinsicIndex int64 `protobuf:"varint,1,opt,name=extrinsic_index,json=extrinsicIndex,proto3" json:"extrinsic_index,omitempty"` Hash string `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` Method string `protobuf:"bytes,3,opt,name=method,proto3" json:"method,omitempty"` Section string `protobuf:"bytes,4,opt,name=section,proto3" json:"section,omitempty"` IsSigned bool `protobuf:"varint,5,opt,name=is_signed,json=isSigned,proto3" json:"is_signed,omitempty"` Args string `protobuf:"bytes,6,opt,name=args,proto3" json:"args,omitempty"` // contains filtered or unexported fields }
func (*Annotated) Descriptor
deprecated
func (*Annotated) GetExtrinsicIndex ¶
func (*Annotated) GetIsSigned ¶
func (*Annotated) GetSection ¶
func (*Annotated) ProtoMessage ¶
func (*Annotated) ProtoMessage()
func (*Annotated) ProtoReflect ¶
func (x *Annotated) ProtoReflect() protoreflect.Message
type CallArg ¶
type CallArg struct { Method string `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"` Section string `protobuf:"bytes,2,opt,name=section,proto3" json:"section,omitempty"` Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*CallArg) Descriptor
deprecated
func (*CallArg) GetSection ¶
func (*CallArg) ProtoMessage ¶
func (*CallArg) ProtoMessage()
func (*CallArg) ProtoReflect ¶
func (x *CallArg) ProtoReflect() protoreflect.Message
type GetAnnotatedByHeightRequest ¶
type GetAnnotatedByHeightRequest struct { Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` // contains filtered or unexported fields }
func (*GetAnnotatedByHeightRequest) Descriptor
deprecated
func (*GetAnnotatedByHeightRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAnnotatedByHeightRequest.ProtoReflect.Descriptor instead.
func (*GetAnnotatedByHeightRequest) GetHeight ¶
func (x *GetAnnotatedByHeightRequest) GetHeight() int64
func (*GetAnnotatedByHeightRequest) ProtoMessage ¶
func (*GetAnnotatedByHeightRequest) ProtoMessage()
func (*GetAnnotatedByHeightRequest) ProtoReflect ¶
func (x *GetAnnotatedByHeightRequest) ProtoReflect() protoreflect.Message
func (*GetAnnotatedByHeightRequest) Reset ¶
func (x *GetAnnotatedByHeightRequest) Reset()
func (*GetAnnotatedByHeightRequest) String ¶
func (x *GetAnnotatedByHeightRequest) String() string
type GetAnnotatedByHeightResponse ¶
type GetAnnotatedByHeightResponse struct { Transactions []*Annotated `protobuf:"bytes,1,rep,name=transactions,proto3" json:"transactions,omitempty"` // contains filtered or unexported fields }
func (*GetAnnotatedByHeightResponse) Descriptor
deprecated
func (*GetAnnotatedByHeightResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetAnnotatedByHeightResponse.ProtoReflect.Descriptor instead.
func (*GetAnnotatedByHeightResponse) GetTransactions ¶
func (x *GetAnnotatedByHeightResponse) GetTransactions() []*Annotated
func (*GetAnnotatedByHeightResponse) ProtoMessage ¶
func (*GetAnnotatedByHeightResponse) ProtoMessage()
func (*GetAnnotatedByHeightResponse) ProtoReflect ¶
func (x *GetAnnotatedByHeightResponse) ProtoReflect() protoreflect.Message
func (*GetAnnotatedByHeightResponse) Reset ¶
func (x *GetAnnotatedByHeightResponse) Reset()
func (*GetAnnotatedByHeightResponse) String ¶
func (x *GetAnnotatedByHeightResponse) String() string
type GetByHeightRequest ¶
type GetByHeightRequest struct { Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` // contains filtered or unexported fields }
func (*GetByHeightRequest) Descriptor
deprecated
func (*GetByHeightRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetByHeightRequest.ProtoReflect.Descriptor instead.
func (*GetByHeightRequest) GetHeight ¶
func (x *GetByHeightRequest) GetHeight() int64
func (*GetByHeightRequest) ProtoMessage ¶
func (*GetByHeightRequest) ProtoMessage()
func (*GetByHeightRequest) ProtoReflect ¶
func (x *GetByHeightRequest) ProtoReflect() protoreflect.Message
func (*GetByHeightRequest) Reset ¶
func (x *GetByHeightRequest) Reset()
func (*GetByHeightRequest) String ¶
func (x *GetByHeightRequest) String() string
type GetByHeightResponse ¶
type GetByHeightResponse struct { Transactions []*Transaction `protobuf:"bytes,1,rep,name=transactions,proto3" json:"transactions,omitempty"` // contains filtered or unexported fields }
func (*GetByHeightResponse) Descriptor
deprecated
func (*GetByHeightResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetByHeightResponse.ProtoReflect.Descriptor instead.
func (*GetByHeightResponse) GetTransactions ¶
func (x *GetByHeightResponse) GetTransactions() []*Transaction
func (*GetByHeightResponse) ProtoMessage ¶
func (*GetByHeightResponse) ProtoMessage()
func (*GetByHeightResponse) ProtoReflect ¶
func (x *GetByHeightResponse) ProtoReflect() protoreflect.Message
func (*GetByHeightResponse) Reset ¶
func (x *GetByHeightResponse) Reset()
func (*GetByHeightResponse) String ¶
func (x *GetByHeightResponse) String() string
type Transaction ¶
type Transaction struct { ExtrinsicIndex int64 `protobuf:"varint,1,opt,name=extrinsic_index,json=extrinsicIndex,proto3" json:"extrinsic_index,omitempty"` Hash string `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` Time string `protobuf:"bytes,3,opt,name=time,proto3" json:"time,omitempty"` Signature string `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty"` Signer string `protobuf:"bytes,5,opt,name=signer,proto3" json:"signer,omitempty"` Nonce int64 `protobuf:"varint,6,opt,name=nonce,proto3" json:"nonce,omitempty"` Method string `protobuf:"bytes,7,opt,name=method,proto3" json:"method,omitempty"` Section string `protobuf:"bytes,8,opt,name=section,proto3" json:"section,omitempty"` Args string `protobuf:"bytes,9,opt,name=args,proto3" json:"args,omitempty"` IsSuccess bool `protobuf:"varint,10,opt,name=is_success,json=isSuccess,proto3" json:"is_success,omitempty"` PartialFee string `protobuf:"bytes,11,opt,name=partial_fee,json=partialFee,proto3" json:"partial_fee,omitempty"` Tip string `protobuf:"bytes,12,opt,name=tip,proto3" json:"tip,omitempty"` Raw string `protobuf:"bytes,13,opt,name=raw,proto3" json:"raw,omitempty"` Events []*eventpb.Event `protobuf:"bytes,14,rep,name=events,proto3" json:"events,omitempty"` IsSignedTransaction bool `protobuf:"varint,15,opt,name=is_signed_transaction,json=isSignedTransaction,proto3" json:"is_signed_transaction,omitempty"` CallArgs []*CallArg `protobuf:"bytes,16,rep,name=callArgs,proto3" json:"callArgs,omitempty"` Epoch string `protobuf:"bytes,17,opt,name=epoch,proto3" json:"epoch,omitempty"` // contains filtered or unexported fields }
func (*Transaction) Descriptor
deprecated
func (*Transaction) Descriptor() ([]byte, []int)
Deprecated: Use Transaction.ProtoReflect.Descriptor instead.
func (*Transaction) GetArgs ¶
func (x *Transaction) GetArgs() string
func (*Transaction) GetCallArgs ¶
func (x *Transaction) GetCallArgs() []*CallArg
func (*Transaction) GetEpoch ¶
func (x *Transaction) GetEpoch() string
func (*Transaction) GetEvents ¶
func (x *Transaction) GetEvents() []*eventpb.Event
func (*Transaction) GetExtrinsicIndex ¶
func (x *Transaction) GetExtrinsicIndex() int64
func (*Transaction) GetHash ¶
func (x *Transaction) GetHash() string
func (*Transaction) GetIsSignedTransaction ¶
func (x *Transaction) GetIsSignedTransaction() bool
func (*Transaction) GetIsSuccess ¶
func (x *Transaction) GetIsSuccess() bool
func (*Transaction) GetMethod ¶
func (x *Transaction) GetMethod() string
func (*Transaction) GetNonce ¶
func (x *Transaction) GetNonce() int64
func (*Transaction) GetPartialFee ¶
func (x *Transaction) GetPartialFee() string
func (*Transaction) GetRaw ¶
func (x *Transaction) GetRaw() string
func (*Transaction) GetSection ¶
func (x *Transaction) GetSection() string
func (*Transaction) GetSignature ¶
func (x *Transaction) GetSignature() string
func (*Transaction) GetSigner ¶
func (x *Transaction) GetSigner() string
func (*Transaction) GetTime ¶
func (x *Transaction) GetTime() string
func (*Transaction) GetTip ¶
func (x *Transaction) GetTip() string
func (*Transaction) ProtoMessage ¶
func (*Transaction) ProtoMessage()
func (*Transaction) ProtoReflect ¶
func (x *Transaction) ProtoReflect() protoreflect.Message
func (*Transaction) Reset ¶
func (x *Transaction) Reset()
func (*Transaction) String ¶
func (x *Transaction) String() string
type TransactionServiceClient ¶
type TransactionServiceClient interface { GetByHeight(ctx context.Context, in *GetByHeightRequest, opts ...grpc.CallOption) (*GetByHeightResponse, error) GetAnnotatedByHeight(ctx context.Context, in *GetAnnotatedByHeightRequest, opts ...grpc.CallOption) (*GetAnnotatedByHeightResponse, error) }
TransactionServiceClient is the client API for TransactionService 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 NewTransactionServiceClient ¶
func NewTransactionServiceClient(cc grpc.ClientConnInterface) TransactionServiceClient
type TransactionServiceServer ¶
type TransactionServiceServer interface { GetByHeight(context.Context, *GetByHeightRequest) (*GetByHeightResponse, error) GetAnnotatedByHeight(context.Context, *GetAnnotatedByHeightRequest) (*GetAnnotatedByHeightResponse, error) // contains filtered or unexported methods }
TransactionServiceServer is the server API for TransactionService service. All implementations must embed UnimplementedTransactionServiceServer for forward compatibility
type UnimplementedTransactionServiceServer ¶
type UnimplementedTransactionServiceServer struct { }
UnimplementedTransactionServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedTransactionServiceServer) GetAnnotatedByHeight ¶
func (UnimplementedTransactionServiceServer) GetAnnotatedByHeight(context.Context, *GetAnnotatedByHeightRequest) (*GetAnnotatedByHeightResponse, error)
func (UnimplementedTransactionServiceServer) GetByHeight ¶
func (UnimplementedTransactionServiceServer) GetByHeight(context.Context, *GetByHeightRequest) (*GetByHeightResponse, error)
type UnsafeTransactionServiceServer ¶
type UnsafeTransactionServiceServer interface {
// contains filtered or unexported methods
}
UnsafeTransactionServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TransactionServiceServer will result in compilation errors.