Documentation ¶
Index ¶
- Constants
- func NewAdminServiceHandler(svc AdminServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)
- func NewContractServiceHandler(svc ContractServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)
- func NewEnterpriseServiceHandler(svc EnterpriseServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)
- func NewViewerServiceHandler(svc ViewerServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)
- func NewWalletServiceHandler(svc WalletServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)
- type AdminServiceClient
- type AdminServiceHandler
- type ContractServiceClient
- type ContractServiceHandler
- type EnterpriseServiceClient
- type EnterpriseServiceHandler
- type UnimplementedAdminServiceHandler
- func (UnimplementedAdminServiceHandler) Keygen(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error)
- func (UnimplementedAdminServiceHandler) Mempool(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error)
- func (UnimplementedAdminServiceHandler) Sign(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error)
- func (UnimplementedAdminServiceHandler) Vote(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error)
- type UnimplementedContractServiceHandler
- func (UnimplementedContractServiceHandler) Deposit(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error)
- func (UnimplementedContractServiceHandler) TxCommit(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error)
- func (UnimplementedContractServiceHandler) TxMake(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error)
- func (UnimplementedContractServiceHandler) TxSend(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error)
- func (UnimplementedContractServiceHandler) TxSign(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error)
- type UnimplementedEnterpriseServiceHandler
- type UnimplementedViewerServiceHandler
- func (UnimplementedViewerServiceHandler) GetAccount(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Account], error)
- func (UnimplementedViewerServiceHandler) GetBestBlock(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error)
- func (UnimplementedViewerServiceHandler) GetBlock(context.Context, *connect_go.Request[types.SingleBytes]) (*connect_go.Response[types.Block], error)
- func (UnimplementedViewerServiceHandler) GetBlockList(context.Context, *connect_go.Request[types.ListParams]) (*connect_go.Response[types.BlockHeaderList], error)
- func (UnimplementedViewerServiceHandler) GetBlockStream(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error)
- func (UnimplementedViewerServiceHandler) GetChainInfo(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.ChainInfo], error)
- func (UnimplementedViewerServiceHandler) GetContract(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error)
- func (UnimplementedViewerServiceHandler) GetEventList(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.EventList], error)
- func (UnimplementedViewerServiceHandler) GetEventStream(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error)
- func (UnimplementedViewerServiceHandler) GetMetric(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error)
- func (UnimplementedViewerServiceHandler) GetNFT(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error)
- func (UnimplementedViewerServiceHandler) GetName(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error)
- func (UnimplementedViewerServiceHandler) GetNodeState(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error)
- func (UnimplementedViewerServiceHandler) GetReceipt(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Receipt], error)
- func (UnimplementedViewerServiceHandler) GetReceiptInBlock(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error)
- func (UnimplementedViewerServiceHandler) GetToken(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error)
- func (UnimplementedViewerServiceHandler) GetTx(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Tx], error)
- func (UnimplementedViewerServiceHandler) GetTxInBlock(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.TxInBlock], error)
- func (UnimplementedViewerServiceHandler) Ping(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error)
- func (UnimplementedViewerServiceHandler) QueryContract(context.Context, *connect_go.Request[types.Query]) (*connect_go.Response[types.SingleBytes], error)
- type UnimplementedWalletServiceHandler
- type ViewerServiceClient
- type ViewerServiceHandler
- type WalletServiceClient
- type WalletServiceHandler
Constants ¶
const (
// AdminServiceName is the fully-qualified name of the AdminService service.
AdminServiceName = "types.AdminService"
)
const (
// ContractServiceName is the fully-qualified name of the ContractService service.
ContractServiceName = "types.ContractService"
)
const (
// EnterpriseServiceName is the fully-qualified name of the EnterpriseService service.
EnterpriseServiceName = "types.EnterpriseService"
)
const (
// ViewerServiceName is the fully-qualified name of the ViewerService service.
ViewerServiceName = "types.ViewerService"
)
const (
// WalletServiceName is the fully-qualified name of the WalletService service.
WalletServiceName = "types.WalletService"
)
Variables ¶
This section is empty.
Functions ¶
func NewAdminServiceHandler ¶
func NewAdminServiceHandler(svc AdminServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)
NewAdminServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.
By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.
func NewContractServiceHandler ¶
func NewContractServiceHandler(svc ContractServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)
NewContractServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.
By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.
func NewEnterpriseServiceHandler ¶
func NewEnterpriseServiceHandler(svc EnterpriseServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)
NewEnterpriseServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.
By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.
func NewViewerServiceHandler ¶
func NewViewerServiceHandler(svc ViewerServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)
NewViewerServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.
By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.
func NewWalletServiceHandler ¶
func NewWalletServiceHandler(svc WalletServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)
NewWalletServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.
By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.
Types ¶
type AdminServiceClient ¶
type AdminServiceClient interface { Keygen(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error) Mempool(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error) Sign(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error) Vote(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error) }
AdminServiceClient is a client for the types.AdminService service.
func NewAdminServiceClient ¶
func NewAdminServiceClient(httpClient connect_go.HTTPClient, baseURL string, opts ...connect_go.ClientOption) AdminServiceClient
NewAdminServiceClient constructs a client for the types.AdminService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.
The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).
type AdminServiceHandler ¶
type AdminServiceHandler interface { Keygen(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error) Mempool(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error) Sign(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error) Vote(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error) }
AdminServiceHandler is an implementation of the types.AdminService service.
type ContractServiceClient ¶
type ContractServiceClient interface { TxMake(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error) TxSign(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error) TxSend(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error) // all in one TxCommit(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error) Deposit(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error) }
ContractServiceClient is a client for the types.ContractService service.
func NewContractServiceClient ¶
func NewContractServiceClient(httpClient connect_go.HTTPClient, baseURL string, opts ...connect_go.ClientOption) ContractServiceClient
NewContractServiceClient constructs a client for the types.ContractService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.
The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).
type ContractServiceHandler ¶
type ContractServiceHandler interface { TxMake(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error) TxSign(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error) TxSend(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error) // all in one TxCommit(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error) Deposit(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error) }
ContractServiceHandler is an implementation of the types.ContractService service.
type EnterpriseServiceClient ¶
type EnterpriseServiceClient interface { }
EnterpriseServiceClient is a client for the types.EnterpriseService service.
func NewEnterpriseServiceClient ¶
func NewEnterpriseServiceClient(httpClient connect_go.HTTPClient, baseURL string, opts ...connect_go.ClientOption) EnterpriseServiceClient
NewEnterpriseServiceClient constructs a client for the types.EnterpriseService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.
The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).
type EnterpriseServiceHandler ¶
type EnterpriseServiceHandler interface { }
EnterpriseServiceHandler is an implementation of the types.EnterpriseService service.
type UnimplementedAdminServiceHandler ¶
type UnimplementedAdminServiceHandler struct{}
UnimplementedAdminServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedAdminServiceHandler) Keygen ¶
func (UnimplementedAdminServiceHandler) Keygen(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error)
func (UnimplementedAdminServiceHandler) Mempool ¶
func (UnimplementedAdminServiceHandler) Mempool(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error)
func (UnimplementedAdminServiceHandler) Sign ¶
func (UnimplementedAdminServiceHandler) Sign(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error)
func (UnimplementedAdminServiceHandler) Vote ¶
func (UnimplementedAdminServiceHandler) Vote(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error)
type UnimplementedContractServiceHandler ¶
type UnimplementedContractServiceHandler struct{}
UnimplementedContractServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedContractServiceHandler) Deposit ¶
func (UnimplementedContractServiceHandler) Deposit(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error)
func (UnimplementedContractServiceHandler) TxCommit ¶
func (UnimplementedContractServiceHandler) TxCommit(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error)
func (UnimplementedContractServiceHandler) TxMake ¶
func (UnimplementedContractServiceHandler) TxMake(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error)
func (UnimplementedContractServiceHandler) TxSend ¶
func (UnimplementedContractServiceHandler) TxSend(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error)
func (UnimplementedContractServiceHandler) TxSign ¶
func (UnimplementedContractServiceHandler) TxSign(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error)
type UnimplementedEnterpriseServiceHandler ¶
type UnimplementedEnterpriseServiceHandler struct{}
UnimplementedEnterpriseServiceHandler returns CodeUnimplemented from all methods.
type UnimplementedViewerServiceHandler ¶
type UnimplementedViewerServiceHandler struct{}
UnimplementedViewerServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedViewerServiceHandler) GetAccount ¶
func (UnimplementedViewerServiceHandler) GetAccount(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Account], error)
func (UnimplementedViewerServiceHandler) GetBestBlock ¶
func (UnimplementedViewerServiceHandler) GetBestBlock(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error)
func (UnimplementedViewerServiceHandler) GetBlock ¶
func (UnimplementedViewerServiceHandler) GetBlock(context.Context, *connect_go.Request[types.SingleBytes]) (*connect_go.Response[types.Block], error)
func (UnimplementedViewerServiceHandler) GetBlockList ¶
func (UnimplementedViewerServiceHandler) GetBlockList(context.Context, *connect_go.Request[types.ListParams]) (*connect_go.Response[types.BlockHeaderList], error)
func (UnimplementedViewerServiceHandler) GetBlockStream ¶
func (UnimplementedViewerServiceHandler) GetBlockStream(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error)
func (UnimplementedViewerServiceHandler) GetChainInfo ¶
func (UnimplementedViewerServiceHandler) GetChainInfo(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.ChainInfo], error)
func (UnimplementedViewerServiceHandler) GetContract ¶
func (UnimplementedViewerServiceHandler) GetContract(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error)
func (UnimplementedViewerServiceHandler) GetEventList ¶
func (UnimplementedViewerServiceHandler) GetEventList(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.EventList], error)
func (UnimplementedViewerServiceHandler) GetEventStream ¶
func (UnimplementedViewerServiceHandler) GetEventStream(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error)
func (UnimplementedViewerServiceHandler) GetMetric ¶
func (UnimplementedViewerServiceHandler) GetMetric(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error)
func (UnimplementedViewerServiceHandler) GetNFT ¶
func (UnimplementedViewerServiceHandler) GetNFT(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error)
func (UnimplementedViewerServiceHandler) GetName ¶
func (UnimplementedViewerServiceHandler) GetName(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error)
func (UnimplementedViewerServiceHandler) GetNodeState ¶
func (UnimplementedViewerServiceHandler) GetNodeState(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error)
func (UnimplementedViewerServiceHandler) GetReceipt ¶
func (UnimplementedViewerServiceHandler) GetReceipt(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Receipt], error)
func (UnimplementedViewerServiceHandler) GetReceiptInBlock ¶
func (UnimplementedViewerServiceHandler) GetReceiptInBlock(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error)
func (UnimplementedViewerServiceHandler) GetToken ¶
func (UnimplementedViewerServiceHandler) GetToken(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error)
func (UnimplementedViewerServiceHandler) GetTx ¶
func (UnimplementedViewerServiceHandler) GetTx(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Tx], error)
func (UnimplementedViewerServiceHandler) GetTxInBlock ¶
func (UnimplementedViewerServiceHandler) GetTxInBlock(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.TxInBlock], error)
func (UnimplementedViewerServiceHandler) Ping ¶
func (UnimplementedViewerServiceHandler) Ping(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error)
func (UnimplementedViewerServiceHandler) QueryContract ¶
func (UnimplementedViewerServiceHandler) QueryContract(context.Context, *connect_go.Request[types.Query]) (*connect_go.Response[types.SingleBytes], error)
type UnimplementedWalletServiceHandler ¶
type UnimplementedWalletServiceHandler struct{}
UnimplementedWalletServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedWalletServiceHandler) Export ¶
func (UnimplementedWalletServiceHandler) Export(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error)
func (UnimplementedWalletServiceHandler) Import ¶
func (UnimplementedWalletServiceHandler) Import(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error)
type ViewerServiceClient ¶
type ViewerServiceClient interface { // server status Ping(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error) GetChainInfo(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.ChainInfo], error) GetNodeState(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error) GetMetric(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error) GetBestBlock(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error) // block GetBlock(context.Context, *connect_go.Request[types.SingleBytes]) (*connect_go.Response[types.Block], error) GetBlockList(context.Context, *connect_go.Request[types.ListParams]) (*connect_go.Response[types.BlockHeaderList], error) GetBlockStream(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error) // tx GetTx(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Tx], error) GetTxInBlock(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.TxInBlock], error) // receipt GetReceipt(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Receipt], error) GetReceiptInBlock(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error) // event GetEventList(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.EventList], error) GetEventStream(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error) // contract GetContract(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error) QueryContract(context.Context, *connect_go.Request[types.Query]) (*connect_go.Response[types.SingleBytes], error) // account GetAccount(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Account], error) GetName(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error) // token GetToken(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error) // nft GetNFT(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error) }
ViewerServiceClient is a client for the types.ViewerService service.
func NewViewerServiceClient ¶
func NewViewerServiceClient(httpClient connect_go.HTTPClient, baseURL string, opts ...connect_go.ClientOption) ViewerServiceClient
NewViewerServiceClient constructs a client for the types.ViewerService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.
The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).
type ViewerServiceHandler ¶
type ViewerServiceHandler interface { // server status Ping(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error) GetChainInfo(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.ChainInfo], error) GetNodeState(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error) GetMetric(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error) GetBestBlock(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error) // block GetBlock(context.Context, *connect_go.Request[types.SingleBytes]) (*connect_go.Response[types.Block], error) GetBlockList(context.Context, *connect_go.Request[types.ListParams]) (*connect_go.Response[types.BlockHeaderList], error) GetBlockStream(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error) // tx GetTx(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Tx], error) GetTxInBlock(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.TxInBlock], error) // receipt GetReceipt(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Receipt], error) GetReceiptInBlock(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error) // event GetEventList(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.EventList], error) GetEventStream(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error) // contract GetContract(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error) QueryContract(context.Context, *connect_go.Request[types.Query]) (*connect_go.Response[types.SingleBytes], error) // account GetAccount(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Account], error) GetName(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error) // token GetToken(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error) // nft GetNFT(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error) }
ViewerServiceHandler is an implementation of the types.ViewerService service.
type WalletServiceClient ¶
type WalletServiceClient interface { Import(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error) Export(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error) }
WalletServiceClient is a client for the types.WalletService service.
func NewWalletServiceClient ¶
func NewWalletServiceClient(httpClient connect_go.HTTPClient, baseURL string, opts ...connect_go.ClientOption) WalletServiceClient
NewWalletServiceClient constructs a client for the types.WalletService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.
The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).
type WalletServiceHandler ¶
type WalletServiceHandler interface { Import(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error) Export(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error) }
WalletServiceHandler is an implementation of the types.WalletService service.