Documentation ¶
Overview ¶
Package transaction is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterTransactionQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterTransactionQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client TransactionQueryClient) error
- func RegisterTransactionQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterTransactionQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server TransactionQueryServer) error
- func RegisterTransactionQueryServer(s grpc.ServiceRegistrar, srv TransactionQueryServer)
- type ContractTransactionsRequest
- func (*ContractTransactionsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ContractTransactionsRequest) GetContract() string
- func (x *ContractTransactionsRequest) GetPage() int32
- func (x *ContractTransactionsRequest) GetPageSize() int32
- func (*ContractTransactionsRequest) ProtoMessage()
- func (x *ContractTransactionsRequest) ProtoReflect() protoreflect.Message
- func (x *ContractTransactionsRequest) Reset()
- func (x *ContractTransactionsRequest) String() string
- type ContractTransactionsResponse
- func (*ContractTransactionsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ContractTransactionsResponse) GetTxs() []*TransactionInfo
- func (*ContractTransactionsResponse) ProtoMessage()
- func (x *ContractTransactionsResponse) ProtoReflect() protoreflect.Message
- func (x *ContractTransactionsResponse) Reset()
- func (x *ContractTransactionsResponse) String() string
- type Transaction
- func (*Transaction) Descriptor() ([]byte, []int)deprecated
- func (x *Transaction) GetApplicationOrder() uint32
- func (x *Transaction) GetEnvelopeXdr() []byte
- func (x *Transaction) GetHash() string
- func (x *Transaction) GetLedger() uint32
- func (x *Transaction) GetResultMetaXdr() []byte
- func (x *Transaction) GetResultXdr() []byte
- func (x *Transaction) GetSourceAddress() string
- func (x *Transaction) GetStatus() string
- func (*Transaction) ProtoMessage()
- func (x *Transaction) ProtoReflect() protoreflect.Message
- func (x *Transaction) Reset()
- func (x *Transaction) String() string
- type TransactionInfo
- func (*TransactionInfo) Descriptor() ([]byte, []int)deprecated
- func (x *TransactionInfo) GetApplicationOrder() uint32
- func (x *TransactionInfo) GetEnvelope() *structpb.Struct
- func (x *TransactionInfo) GetHash() string
- func (x *TransactionInfo) GetLedger() uint32
- func (x *TransactionInfo) GetResult() *structpb.Struct
- func (x *TransactionInfo) GetResultMeta() *structpb.Struct
- func (x *TransactionInfo) GetSourceAddress() string
- func (x *TransactionInfo) GetStatus() string
- func (*TransactionInfo) ProtoMessage()
- func (x *TransactionInfo) ProtoReflect() protoreflect.Message
- func (x *TransactionInfo) Reset()
- func (x *TransactionInfo) String() string
- type TransactionQueryClient
- type TransactionQueryServer
- type TransactionRequest
- func (*TransactionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TransactionRequest) GetHash() string
- func (*TransactionRequest) ProtoMessage()
- func (x *TransactionRequest) ProtoReflect() protoreflect.Message
- func (x *TransactionRequest) Reset()
- func (x *TransactionRequest) String() string
- type TransactionResponse
- func (*TransactionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *TransactionResponse) GetFound() bool
- func (x *TransactionResponse) GetTransaction() *TransactionInfo
- func (*TransactionResponse) ProtoMessage()
- func (x *TransactionResponse) ProtoReflect() protoreflect.Message
- func (x *TransactionResponse) Reset()
- func (x *TransactionResponse) String() string
- type TransactionsAtLedgerHashRequest
- func (*TransactionsAtLedgerHashRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TransactionsAtLedgerHashRequest) GetLedgerHash() string
- func (x *TransactionsAtLedgerHashRequest) GetPage() int32
- func (x *TransactionsAtLedgerHashRequest) GetPageSize() int32
- func (*TransactionsAtLedgerHashRequest) ProtoMessage()
- func (x *TransactionsAtLedgerHashRequest) ProtoReflect() protoreflect.Message
- func (x *TransactionsAtLedgerHashRequest) Reset()
- func (x *TransactionsAtLedgerHashRequest) String() string
- type TransactionsAtLedgerHashResponse
- func (*TransactionsAtLedgerHashResponse) Descriptor() ([]byte, []int)deprecated
- func (x *TransactionsAtLedgerHashResponse) GetTxs() []*TransactionInfo
- func (*TransactionsAtLedgerHashResponse) ProtoMessage()
- func (x *TransactionsAtLedgerHashResponse) ProtoReflect() protoreflect.Message
- func (x *TransactionsAtLedgerHashResponse) Reset()
- func (x *TransactionsAtLedgerHashResponse) String() string
- type TransactionsAtLedgerSeqRequest
- func (*TransactionsAtLedgerSeqRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TransactionsAtLedgerSeqRequest) GetLedger() uint32
- func (x *TransactionsAtLedgerSeqRequest) GetPage() int32
- func (x *TransactionsAtLedgerSeqRequest) GetPageSize() int32
- func (*TransactionsAtLedgerSeqRequest) ProtoMessage()
- func (x *TransactionsAtLedgerSeqRequest) ProtoReflect() protoreflect.Message
- func (x *TransactionsAtLedgerSeqRequest) Reset()
- func (x *TransactionsAtLedgerSeqRequest) String() string
- type TransactionsAtLedgerSeqResponse
- func (*TransactionsAtLedgerSeqResponse) Descriptor() ([]byte, []int)deprecated
- func (x *TransactionsAtLedgerSeqResponse) GetTxs() []*TransactionInfo
- func (*TransactionsAtLedgerSeqResponse) ProtoMessage()
- func (x *TransactionsAtLedgerSeqResponse) ProtoReflect() protoreflect.Message
- func (x *TransactionsAtLedgerSeqResponse) Reset()
- func (x *TransactionsAtLedgerSeqResponse) String() string
- type TransactionsByAddressRequest
- func (*TransactionsByAddressRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TransactionsByAddressRequest) GetAddress() string
- func (x *TransactionsByAddressRequest) GetPage() int32
- func (x *TransactionsByAddressRequest) GetPageSize() int32
- func (*TransactionsByAddressRequest) ProtoMessage()
- func (x *TransactionsByAddressRequest) ProtoReflect() protoreflect.Message
- func (x *TransactionsByAddressRequest) Reset()
- func (x *TransactionsByAddressRequest) String() string
- type TransactionsByAddressResponse
- func (*TransactionsByAddressResponse) Descriptor() ([]byte, []int)deprecated
- func (x *TransactionsByAddressResponse) GetTxs() []*TransactionInfo
- func (*TransactionsByAddressResponse) ProtoMessage()
- func (x *TransactionsByAddressResponse) ProtoReflect() protoreflect.Message
- func (x *TransactionsByAddressResponse) Reset()
- func (x *TransactionsByAddressResponse) String() string
- type UnimplementedTransactionQueryServer
- func (UnimplementedTransactionQueryServer) ContractTransactions(context.Context, *ContractTransactionsRequest) (*ContractTransactionsResponse, error)
- func (UnimplementedTransactionQueryServer) Transaction(context.Context, *TransactionRequest) (*TransactionResponse, error)
- func (UnimplementedTransactionQueryServer) TransactionsAtLedgerHash(context.Context, *TransactionsAtLedgerHashRequest) (*TransactionsAtLedgerHashResponse, error)
- func (UnimplementedTransactionQueryServer) TransactionsAtLedgerSeq(context.Context, *TransactionsAtLedgerSeqRequest) (*TransactionsAtLedgerSeqResponse, error)
- func (UnimplementedTransactionQueryServer) TransactionsByAddress(context.Context, *TransactionsByAddressRequest) (*TransactionsByAddressResponse, error)
- func (UnimplementedTransactionQueryServer) UserContractTransactions(context.Context, *UserContractTransactionsRequest) (*UserContractTransactionsResponse, error)
- type UnsafeTransactionQueryServer
- type UserContractTransactionsRequest
- func (*UserContractTransactionsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UserContractTransactionsRequest) GetAddress() string
- func (x *UserContractTransactionsRequest) GetContract() string
- func (*UserContractTransactionsRequest) ProtoMessage()
- func (x *UserContractTransactionsRequest) ProtoReflect() protoreflect.Message
- func (x *UserContractTransactionsRequest) Reset()
- func (x *UserContractTransactionsRequest) String() string
- type UserContractTransactionsResponse
- func (*UserContractTransactionsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UserContractTransactionsResponse) GetTxs() []*TransactionInfo
- func (*UserContractTransactionsResponse) ProtoMessage()
- func (x *UserContractTransactionsResponse) ProtoReflect() protoreflect.Message
- func (x *UserContractTransactionsResponse) Reset()
- func (x *UserContractTransactionsResponse) String() string
Constants ¶
const ( TransactionQuery_Transaction_FullMethodName = "/transaction.TransactionQuery/Transaction" TransactionQuery_TransactionsByAddress_FullMethodName = "/transaction.TransactionQuery/TransactionsByAddress" TransactionQuery_TransactionsAtLedgerSeq_FullMethodName = "/transaction.TransactionQuery/TransactionsAtLedgerSeq" TransactionQuery_TransactionsAtLedgerHash_FullMethodName = "/transaction.TransactionQuery/TransactionsAtLedgerHash" TransactionQuery_ContractTransactions_FullMethodName = "/transaction.TransactionQuery/ContractTransactions" TransactionQuery_UserContractTransactions_FullMethodName = "/transaction.TransactionQuery/UserContractTransactions" )
Variables ¶
var File_transaction_query_proto protoreflect.FileDescriptor
var File_transaction_transaction_proto protoreflect.FileDescriptor
var TransactionQuery_ServiceDesc = grpc.ServiceDesc{ ServiceName: "transaction.TransactionQuery", HandlerType: (*TransactionQueryServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Transaction", Handler: _TransactionQuery_Transaction_Handler, }, { MethodName: "TransactionsByAddress", Handler: _TransactionQuery_TransactionsByAddress_Handler, }, { MethodName: "TransactionsAtLedgerSeq", Handler: _TransactionQuery_TransactionsAtLedgerSeq_Handler, }, { MethodName: "TransactionsAtLedgerHash", Handler: _TransactionQuery_TransactionsAtLedgerHash_Handler, }, { MethodName: "ContractTransactions", Handler: _TransactionQuery_ContractTransactions_Handler, }, { MethodName: "UserContractTransactions", Handler: _TransactionQuery_UserContractTransactions_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "transaction/query.proto", }
TransactionQuery_ServiceDesc is the grpc.ServiceDesc for TransactionQuery service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterTransactionQueryHandler ¶
func RegisterTransactionQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterTransactionQueryHandler registers the http handlers for service TransactionQuery to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterTransactionQueryHandlerClient ¶
func RegisterTransactionQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client TransactionQueryClient) error
RegisterTransactionQueryHandlerClient registers the http handlers for service TransactionQuery to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "TransactionQueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "TransactionQueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "TransactionQueryClient" to call the correct interceptors.
func RegisterTransactionQueryHandlerFromEndpoint ¶
func RegisterTransactionQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterTransactionQueryHandlerFromEndpoint is same as RegisterTransactionQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterTransactionQueryHandlerServer ¶
func RegisterTransactionQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server TransactionQueryServer) error
RegisterTransactionQueryHandlerServer registers the http handlers for service TransactionQuery to "mux". UnaryRPC :call TransactionQueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterTransactionQueryHandlerFromEndpoint instead.
func RegisterTransactionQueryServer ¶
func RegisterTransactionQueryServer(s grpc.ServiceRegistrar, srv TransactionQueryServer)
Types ¶
type ContractTransactionsRequest ¶
type ContractTransactionsRequest struct { Contract string `protobuf:"bytes,1,opt,name=contract,proto3" json:"contract,omitempty"` Page int32 `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"` PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // contains filtered or unexported fields }
func (*ContractTransactionsRequest) Descriptor
deprecated
func (*ContractTransactionsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ContractTransactionsRequest.ProtoReflect.Descriptor instead.
func (*ContractTransactionsRequest) GetContract ¶
func (x *ContractTransactionsRequest) GetContract() string
func (*ContractTransactionsRequest) GetPage ¶
func (x *ContractTransactionsRequest) GetPage() int32
func (*ContractTransactionsRequest) GetPageSize ¶
func (x *ContractTransactionsRequest) GetPageSize() int32
func (*ContractTransactionsRequest) ProtoMessage ¶
func (*ContractTransactionsRequest) ProtoMessage()
func (*ContractTransactionsRequest) ProtoReflect ¶
func (x *ContractTransactionsRequest) ProtoReflect() protoreflect.Message
func (*ContractTransactionsRequest) Reset ¶
func (x *ContractTransactionsRequest) Reset()
func (*ContractTransactionsRequest) String ¶
func (x *ContractTransactionsRequest) String() string
type ContractTransactionsResponse ¶
type ContractTransactionsResponse struct { Txs []*TransactionInfo `protobuf:"bytes,1,rep,name=txs,proto3" json:"txs,omitempty"` // contains filtered or unexported fields }
func (*ContractTransactionsResponse) Descriptor
deprecated
func (*ContractTransactionsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ContractTransactionsResponse.ProtoReflect.Descriptor instead.
func (*ContractTransactionsResponse) GetTxs ¶
func (x *ContractTransactionsResponse) GetTxs() []*TransactionInfo
func (*ContractTransactionsResponse) ProtoMessage ¶
func (*ContractTransactionsResponse) ProtoMessage()
func (*ContractTransactionsResponse) ProtoReflect ¶
func (x *ContractTransactionsResponse) ProtoReflect() protoreflect.Message
func (*ContractTransactionsResponse) Reset ¶
func (x *ContractTransactionsResponse) Reset()
func (*ContractTransactionsResponse) String ¶
func (x *ContractTransactionsResponse) String() string
type Transaction ¶
type Transaction struct { Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` Ledger uint32 `protobuf:"varint,3,opt,name=ledger,proto3" json:"ledger,omitempty"` ApplicationOrder uint32 `protobuf:"varint,4,opt,name=application_order,json=applicationOrder,proto3" json:"application_order,omitempty"` EnvelopeXdr []byte `protobuf:"bytes,5,opt,name=envelope_xdr,json=envelopeXdr,proto3" json:"envelope_xdr,omitempty"` ResultXdr []byte `protobuf:"bytes,6,opt,name=result_xdr,json=resultXdr,proto3" json:"result_xdr,omitempty"` ResultMetaXdr []byte `protobuf:"bytes,7,opt,name=result_meta_xdr,json=resultMetaXdr,proto3" json:"result_meta_xdr,omitempty"` SourceAddress string `protobuf:"bytes,8,opt,name=source_address,json=sourceAddress,proto3" json:"source_address,omitempty"` // contains filtered or unexported fields }
func (*Transaction) Descriptor
deprecated
func (*Transaction) Descriptor() ([]byte, []int)
Deprecated: Use Transaction.ProtoReflect.Descriptor instead.
func (*Transaction) GetApplicationOrder ¶
func (x *Transaction) GetApplicationOrder() uint32
func (*Transaction) GetEnvelopeXdr ¶
func (x *Transaction) GetEnvelopeXdr() []byte
func (*Transaction) GetHash ¶
func (x *Transaction) GetHash() string
func (*Transaction) GetLedger ¶
func (x *Transaction) GetLedger() uint32
func (*Transaction) GetResultMetaXdr ¶
func (x *Transaction) GetResultMetaXdr() []byte
func (*Transaction) GetResultXdr ¶
func (x *Transaction) GetResultXdr() []byte
func (*Transaction) GetSourceAddress ¶
func (x *Transaction) GetSourceAddress() string
func (*Transaction) GetStatus ¶
func (x *Transaction) GetStatus() 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 TransactionInfo ¶
type TransactionInfo struct { Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` Ledger uint32 `protobuf:"varint,3,opt,name=ledger,proto3" json:"ledger,omitempty"` ApplicationOrder uint32 `protobuf:"varint,4,opt,name=application_order,json=applicationOrder,proto3" json:"application_order,omitempty"` Envelope *structpb.Struct `protobuf:"bytes,5,opt,name=envelope,proto3" json:"envelope,omitempty"` Result *structpb.Struct `protobuf:"bytes,6,opt,name=result,proto3" json:"result,omitempty"` ResultMeta *structpb.Struct `protobuf:"bytes,7,opt,name=result_meta,json=resultMeta,proto3" json:"result_meta,omitempty"` SourceAddress string `protobuf:"bytes,8,opt,name=source_address,json=sourceAddress,proto3" json:"source_address,omitempty"` // contains filtered or unexported fields }
func (*TransactionInfo) Descriptor
deprecated
func (*TransactionInfo) Descriptor() ([]byte, []int)
Deprecated: Use TransactionInfo.ProtoReflect.Descriptor instead.
func (*TransactionInfo) GetApplicationOrder ¶
func (x *TransactionInfo) GetApplicationOrder() uint32
func (*TransactionInfo) GetEnvelope ¶
func (x *TransactionInfo) GetEnvelope() *structpb.Struct
func (*TransactionInfo) GetHash ¶
func (x *TransactionInfo) GetHash() string
func (*TransactionInfo) GetLedger ¶
func (x *TransactionInfo) GetLedger() uint32
func (*TransactionInfo) GetResult ¶
func (x *TransactionInfo) GetResult() *structpb.Struct
func (*TransactionInfo) GetResultMeta ¶
func (x *TransactionInfo) GetResultMeta() *structpb.Struct
func (*TransactionInfo) GetSourceAddress ¶
func (x *TransactionInfo) GetSourceAddress() string
func (*TransactionInfo) GetStatus ¶
func (x *TransactionInfo) GetStatus() string
func (*TransactionInfo) ProtoMessage ¶
func (*TransactionInfo) ProtoMessage()
func (*TransactionInfo) ProtoReflect ¶
func (x *TransactionInfo) ProtoReflect() protoreflect.Message
func (*TransactionInfo) Reset ¶
func (x *TransactionInfo) Reset()
func (*TransactionInfo) String ¶
func (x *TransactionInfo) String() string
type TransactionQueryClient ¶
type TransactionQueryClient interface { // Transaction queries transaction info given transaction hash. Transaction(ctx context.Context, in *TransactionRequest, opts ...grpc.CallOption) (*TransactionResponse, error) // TransactionsByAddress queries all transactions that match the given source // address. TransactionsByAddress(ctx context.Context, in *TransactionsByAddressRequest, opts ...grpc.CallOption) (*TransactionsByAddressResponse, error) // TransactionsAtLedgerSeq queries all transactions that match the given // ledger sequence. TransactionsAtLedgerSeq(ctx context.Context, in *TransactionsAtLedgerSeqRequest, opts ...grpc.CallOption) (*TransactionsAtLedgerSeqResponse, error) // TransactionsAtLedgerHash queries all transactions that match the given // ledger hash. TransactionsAtLedgerHash(ctx context.Context, in *TransactionsAtLedgerHashRequest, opts ...grpc.CallOption) (*TransactionsAtLedgerHashResponse, error) // ContractTransactions queries all transactions that match the given // contract id. ContractTransactions(ctx context.Context, in *ContractTransactionsRequest, opts ...grpc.CallOption) (*ContractTransactionsResponse, error) // UserContractTransactions queries all transactions that match the given // contract id and user address. UserContractTransactions(ctx context.Context, in *UserContractTransactionsRequest, opts ...grpc.CallOption) (*UserContractTransactionsResponse, error) }
TransactionQueryClient is the client API for TransactionQuery 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 NewTransactionQueryClient ¶
func NewTransactionQueryClient(cc grpc.ClientConnInterface) TransactionQueryClient
type TransactionQueryServer ¶
type TransactionQueryServer interface { // Transaction queries transaction info given transaction hash. Transaction(context.Context, *TransactionRequest) (*TransactionResponse, error) // TransactionsByAddress queries all transactions that match the given source // address. TransactionsByAddress(context.Context, *TransactionsByAddressRequest) (*TransactionsByAddressResponse, error) // TransactionsAtLedgerSeq queries all transactions that match the given // ledger sequence. TransactionsAtLedgerSeq(context.Context, *TransactionsAtLedgerSeqRequest) (*TransactionsAtLedgerSeqResponse, error) // TransactionsAtLedgerHash queries all transactions that match the given // ledger hash. TransactionsAtLedgerHash(context.Context, *TransactionsAtLedgerHashRequest) (*TransactionsAtLedgerHashResponse, error) // ContractTransactions queries all transactions that match the given // contract id. ContractTransactions(context.Context, *ContractTransactionsRequest) (*ContractTransactionsResponse, error) // UserContractTransactions queries all transactions that match the given // contract id and user address. UserContractTransactions(context.Context, *UserContractTransactionsRequest) (*UserContractTransactionsResponse, error) // contains filtered or unexported methods }
TransactionQueryServer is the server API for TransactionQuery service. All implementations must embed UnimplementedTransactionQueryServer for forward compatibility.
type TransactionRequest ¶
type TransactionRequest struct { Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` // contains filtered or unexported fields }
func (*TransactionRequest) Descriptor
deprecated
func (*TransactionRequest) Descriptor() ([]byte, []int)
Deprecated: Use TransactionRequest.ProtoReflect.Descriptor instead.
func (*TransactionRequest) GetHash ¶
func (x *TransactionRequest) GetHash() string
func (*TransactionRequest) ProtoMessage ¶
func (*TransactionRequest) ProtoMessage()
func (*TransactionRequest) ProtoReflect ¶
func (x *TransactionRequest) ProtoReflect() protoreflect.Message
func (*TransactionRequest) Reset ¶
func (x *TransactionRequest) Reset()
func (*TransactionRequest) String ¶
func (x *TransactionRequest) String() string
type TransactionResponse ¶
type TransactionResponse struct { Transaction *TransactionInfo `protobuf:"bytes,1,opt,name=transaction,proto3" json:"transaction,omitempty"` Found bool `protobuf:"varint,2,opt,name=found,proto3" json:"found,omitempty"` // contains filtered or unexported fields }
func (*TransactionResponse) Descriptor
deprecated
func (*TransactionResponse) Descriptor() ([]byte, []int)
Deprecated: Use TransactionResponse.ProtoReflect.Descriptor instead.
func (*TransactionResponse) GetFound ¶
func (x *TransactionResponse) GetFound() bool
func (*TransactionResponse) GetTransaction ¶
func (x *TransactionResponse) GetTransaction() *TransactionInfo
func (*TransactionResponse) ProtoMessage ¶
func (*TransactionResponse) ProtoMessage()
func (*TransactionResponse) ProtoReflect ¶
func (x *TransactionResponse) ProtoReflect() protoreflect.Message
func (*TransactionResponse) Reset ¶
func (x *TransactionResponse) Reset()
func (*TransactionResponse) String ¶
func (x *TransactionResponse) String() string
type TransactionsAtLedgerHashRequest ¶
type TransactionsAtLedgerHashRequest struct { LedgerHash string `protobuf:"bytes,1,opt,name=ledger_hash,json=ledgerHash,proto3" json:"ledger_hash,omitempty"` Page int32 `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"` PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // contains filtered or unexported fields }
func (*TransactionsAtLedgerHashRequest) Descriptor
deprecated
func (*TransactionsAtLedgerHashRequest) Descriptor() ([]byte, []int)
Deprecated: Use TransactionsAtLedgerHashRequest.ProtoReflect.Descriptor instead.
func (*TransactionsAtLedgerHashRequest) GetLedgerHash ¶
func (x *TransactionsAtLedgerHashRequest) GetLedgerHash() string
func (*TransactionsAtLedgerHashRequest) GetPage ¶
func (x *TransactionsAtLedgerHashRequest) GetPage() int32
func (*TransactionsAtLedgerHashRequest) GetPageSize ¶
func (x *TransactionsAtLedgerHashRequest) GetPageSize() int32
func (*TransactionsAtLedgerHashRequest) ProtoMessage ¶
func (*TransactionsAtLedgerHashRequest) ProtoMessage()
func (*TransactionsAtLedgerHashRequest) ProtoReflect ¶
func (x *TransactionsAtLedgerHashRequest) ProtoReflect() protoreflect.Message
func (*TransactionsAtLedgerHashRequest) Reset ¶
func (x *TransactionsAtLedgerHashRequest) Reset()
func (*TransactionsAtLedgerHashRequest) String ¶
func (x *TransactionsAtLedgerHashRequest) String() string
type TransactionsAtLedgerHashResponse ¶
type TransactionsAtLedgerHashResponse struct { Txs []*TransactionInfo `protobuf:"bytes,1,rep,name=txs,proto3" json:"txs,omitempty"` // contains filtered or unexported fields }
func (*TransactionsAtLedgerHashResponse) Descriptor
deprecated
func (*TransactionsAtLedgerHashResponse) Descriptor() ([]byte, []int)
Deprecated: Use TransactionsAtLedgerHashResponse.ProtoReflect.Descriptor instead.
func (*TransactionsAtLedgerHashResponse) GetTxs ¶
func (x *TransactionsAtLedgerHashResponse) GetTxs() []*TransactionInfo
func (*TransactionsAtLedgerHashResponse) ProtoMessage ¶
func (*TransactionsAtLedgerHashResponse) ProtoMessage()
func (*TransactionsAtLedgerHashResponse) ProtoReflect ¶
func (x *TransactionsAtLedgerHashResponse) ProtoReflect() protoreflect.Message
func (*TransactionsAtLedgerHashResponse) Reset ¶
func (x *TransactionsAtLedgerHashResponse) Reset()
func (*TransactionsAtLedgerHashResponse) String ¶
func (x *TransactionsAtLedgerHashResponse) String() string
type TransactionsAtLedgerSeqRequest ¶
type TransactionsAtLedgerSeqRequest struct { Ledger uint32 `protobuf:"varint,1,opt,name=ledger,proto3" json:"ledger,omitempty"` Page int32 `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"` PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // contains filtered or unexported fields }
func (*TransactionsAtLedgerSeqRequest) Descriptor
deprecated
func (*TransactionsAtLedgerSeqRequest) Descriptor() ([]byte, []int)
Deprecated: Use TransactionsAtLedgerSeqRequest.ProtoReflect.Descriptor instead.
func (*TransactionsAtLedgerSeqRequest) GetLedger ¶
func (x *TransactionsAtLedgerSeqRequest) GetLedger() uint32
func (*TransactionsAtLedgerSeqRequest) GetPage ¶
func (x *TransactionsAtLedgerSeqRequest) GetPage() int32
func (*TransactionsAtLedgerSeqRequest) GetPageSize ¶
func (x *TransactionsAtLedgerSeqRequest) GetPageSize() int32
func (*TransactionsAtLedgerSeqRequest) ProtoMessage ¶
func (*TransactionsAtLedgerSeqRequest) ProtoMessage()
func (*TransactionsAtLedgerSeqRequest) ProtoReflect ¶
func (x *TransactionsAtLedgerSeqRequest) ProtoReflect() protoreflect.Message
func (*TransactionsAtLedgerSeqRequest) Reset ¶
func (x *TransactionsAtLedgerSeqRequest) Reset()
func (*TransactionsAtLedgerSeqRequest) String ¶
func (x *TransactionsAtLedgerSeqRequest) String() string
type TransactionsAtLedgerSeqResponse ¶
type TransactionsAtLedgerSeqResponse struct { Txs []*TransactionInfo `protobuf:"bytes,1,rep,name=txs,proto3" json:"txs,omitempty"` // contains filtered or unexported fields }
func (*TransactionsAtLedgerSeqResponse) Descriptor
deprecated
func (*TransactionsAtLedgerSeqResponse) Descriptor() ([]byte, []int)
Deprecated: Use TransactionsAtLedgerSeqResponse.ProtoReflect.Descriptor instead.
func (*TransactionsAtLedgerSeqResponse) GetTxs ¶
func (x *TransactionsAtLedgerSeqResponse) GetTxs() []*TransactionInfo
func (*TransactionsAtLedgerSeqResponse) ProtoMessage ¶
func (*TransactionsAtLedgerSeqResponse) ProtoMessage()
func (*TransactionsAtLedgerSeqResponse) ProtoReflect ¶
func (x *TransactionsAtLedgerSeqResponse) ProtoReflect() protoreflect.Message
func (*TransactionsAtLedgerSeqResponse) Reset ¶
func (x *TransactionsAtLedgerSeqResponse) Reset()
func (*TransactionsAtLedgerSeqResponse) String ¶
func (x *TransactionsAtLedgerSeqResponse) String() string
type TransactionsByAddressRequest ¶
type TransactionsByAddressRequest struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Page int32 `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"` PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // contains filtered or unexported fields }
func (*TransactionsByAddressRequest) Descriptor
deprecated
func (*TransactionsByAddressRequest) Descriptor() ([]byte, []int)
Deprecated: Use TransactionsByAddressRequest.ProtoReflect.Descriptor instead.
func (*TransactionsByAddressRequest) GetAddress ¶
func (x *TransactionsByAddressRequest) GetAddress() string
func (*TransactionsByAddressRequest) GetPage ¶
func (x *TransactionsByAddressRequest) GetPage() int32
func (*TransactionsByAddressRequest) GetPageSize ¶
func (x *TransactionsByAddressRequest) GetPageSize() int32
func (*TransactionsByAddressRequest) ProtoMessage ¶
func (*TransactionsByAddressRequest) ProtoMessage()
func (*TransactionsByAddressRequest) ProtoReflect ¶
func (x *TransactionsByAddressRequest) ProtoReflect() protoreflect.Message
func (*TransactionsByAddressRequest) Reset ¶
func (x *TransactionsByAddressRequest) Reset()
func (*TransactionsByAddressRequest) String ¶
func (x *TransactionsByAddressRequest) String() string
type TransactionsByAddressResponse ¶
type TransactionsByAddressResponse struct { Txs []*TransactionInfo `protobuf:"bytes,1,rep,name=txs,proto3" json:"txs,omitempty"` // contains filtered or unexported fields }
func (*TransactionsByAddressResponse) Descriptor
deprecated
func (*TransactionsByAddressResponse) Descriptor() ([]byte, []int)
Deprecated: Use TransactionsByAddressResponse.ProtoReflect.Descriptor instead.
func (*TransactionsByAddressResponse) GetTxs ¶
func (x *TransactionsByAddressResponse) GetTxs() []*TransactionInfo
func (*TransactionsByAddressResponse) ProtoMessage ¶
func (*TransactionsByAddressResponse) ProtoMessage()
func (*TransactionsByAddressResponse) ProtoReflect ¶
func (x *TransactionsByAddressResponse) ProtoReflect() protoreflect.Message
func (*TransactionsByAddressResponse) Reset ¶
func (x *TransactionsByAddressResponse) Reset()
func (*TransactionsByAddressResponse) String ¶
func (x *TransactionsByAddressResponse) String() string
type UnimplementedTransactionQueryServer ¶
type UnimplementedTransactionQueryServer struct{}
UnimplementedTransactionQueryServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedTransactionQueryServer) ContractTransactions ¶
func (UnimplementedTransactionQueryServer) ContractTransactions(context.Context, *ContractTransactionsRequest) (*ContractTransactionsResponse, error)
func (UnimplementedTransactionQueryServer) Transaction ¶
func (UnimplementedTransactionQueryServer) Transaction(context.Context, *TransactionRequest) (*TransactionResponse, error)
func (UnimplementedTransactionQueryServer) TransactionsAtLedgerHash ¶
func (UnimplementedTransactionQueryServer) TransactionsAtLedgerHash(context.Context, *TransactionsAtLedgerHashRequest) (*TransactionsAtLedgerHashResponse, error)
func (UnimplementedTransactionQueryServer) TransactionsAtLedgerSeq ¶
func (UnimplementedTransactionQueryServer) TransactionsAtLedgerSeq(context.Context, *TransactionsAtLedgerSeqRequest) (*TransactionsAtLedgerSeqResponse, error)
func (UnimplementedTransactionQueryServer) TransactionsByAddress ¶
func (UnimplementedTransactionQueryServer) TransactionsByAddress(context.Context, *TransactionsByAddressRequest) (*TransactionsByAddressResponse, error)
func (UnimplementedTransactionQueryServer) UserContractTransactions ¶
func (UnimplementedTransactionQueryServer) UserContractTransactions(context.Context, *UserContractTransactionsRequest) (*UserContractTransactionsResponse, error)
type UnsafeTransactionQueryServer ¶
type UnsafeTransactionQueryServer interface {
// contains filtered or unexported methods
}
UnsafeTransactionQueryServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TransactionQueryServer will result in compilation errors.
type UserContractTransactionsRequest ¶
type UserContractTransactionsRequest struct { Contract string `protobuf:"bytes,1,opt,name=contract,proto3" json:"contract,omitempty"` Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` // contains filtered or unexported fields }
func (*UserContractTransactionsRequest) Descriptor
deprecated
func (*UserContractTransactionsRequest) Descriptor() ([]byte, []int)
Deprecated: Use UserContractTransactionsRequest.ProtoReflect.Descriptor instead.
func (*UserContractTransactionsRequest) GetAddress ¶
func (x *UserContractTransactionsRequest) GetAddress() string
func (*UserContractTransactionsRequest) GetContract ¶
func (x *UserContractTransactionsRequest) GetContract() string
func (*UserContractTransactionsRequest) ProtoMessage ¶
func (*UserContractTransactionsRequest) ProtoMessage()
func (*UserContractTransactionsRequest) ProtoReflect ¶
func (x *UserContractTransactionsRequest) ProtoReflect() protoreflect.Message
func (*UserContractTransactionsRequest) Reset ¶
func (x *UserContractTransactionsRequest) Reset()
func (*UserContractTransactionsRequest) String ¶
func (x *UserContractTransactionsRequest) String() string
type UserContractTransactionsResponse ¶
type UserContractTransactionsResponse struct { Txs []*TransactionInfo `protobuf:"bytes,1,rep,name=txs,proto3" json:"txs,omitempty"` // contains filtered or unexported fields }
func (*UserContractTransactionsResponse) Descriptor
deprecated
func (*UserContractTransactionsResponse) Descriptor() ([]byte, []int)
Deprecated: Use UserContractTransactionsResponse.ProtoReflect.Descriptor instead.
func (*UserContractTransactionsResponse) GetTxs ¶
func (x *UserContractTransactionsResponse) GetTxs() []*TransactionInfo
func (*UserContractTransactionsResponse) ProtoMessage ¶
func (*UserContractTransactionsResponse) ProtoMessage()
func (*UserContractTransactionsResponse) ProtoReflect ¶
func (x *UserContractTransactionsResponse) ProtoReflect() protoreflect.Message
func (*UserContractTransactionsResponse) Reset ¶
func (x *UserContractTransactionsResponse) Reset()
func (*UserContractTransactionsResponse) String ¶
func (x *UserContractTransactionsResponse) String() string