sdk

package module
v0.0.0-...-86db3f4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 16, 2025 License: Apache-2.0 Imports: 17 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleError

func HandleError(err error)

Types

type ClientOption

type ClientOption func(*UtxorpcClient)

func WithBaseUrl

func WithBaseUrl(baseUrl string) ClientOption

func WithHeaders

func WithHeaders(headers map[string]string) ClientOption

func WithHttpClient

func WithHttpClient(httpClient connect.HTTPClient) ClientOption

type QueryServiceClient

type QueryServiceClient = queryconnect.QueryServiceClient

func NewQueryServiceClient

func NewQueryServiceClient(u *UtxorpcClient) QueryServiceClient

type SubmitServiceClient

type SubmitServiceClient = submitconnect.SubmitServiceClient

type SyncServiceClient

type SyncServiceClient = syncconnect.SyncServiceClient

func NewSyncServiceClient

func NewSyncServiceClient(u *UtxorpcClient) SyncServiceClient

type UtxorpcClient

type UtxorpcClient struct {
	Query  QueryServiceClient
	Submit SubmitServiceClient
	Sync   SyncServiceClient
	Watch  WatchServiceClient
	// contains filtered or unexported fields
}

func NewClient

func NewClient(options ...ClientOption) *UtxorpcClient

func (*UtxorpcClient) AddHeadersToRequest

func (u *UtxorpcClient) AddHeadersToRequest(req connect.AnyRequest)

func (*UtxorpcClient) EvalTx

func (*UtxorpcClient) EvalTxWithContext

func (*UtxorpcClient) FetchBlock

func (*UtxorpcClient) FetchBlockWithContext

func (*UtxorpcClient) HTTPClient

func (u *UtxorpcClient) HTTPClient() connect.HTTPClient

func (*UtxorpcClient) Headers

func (u *UtxorpcClient) Headers() map[string]string

func (*UtxorpcClient) NewQueryServiceClient

func (u *UtxorpcClient) NewQueryServiceClient() QueryServiceClient

func (*UtxorpcClient) NewSubmitServiceClient

func (u *UtxorpcClient) NewSubmitServiceClient() SubmitServiceClient

func (*UtxorpcClient) NewSyncServiceClient

func (u *UtxorpcClient) NewSyncServiceClient() SyncServiceClient

func (*UtxorpcClient) NewWatchServiceClient

func (u *UtxorpcClient) NewWatchServiceClient() WatchServiceClient

func (*UtxorpcClient) QueryService

func (u *UtxorpcClient) QueryService() QueryServiceClient

func (*UtxorpcClient) ReadData

func (*UtxorpcClient) ReadDataWithContext

func (*UtxorpcClient) ReadGenesis

func (*UtxorpcClient) ReadGenesisWithContext

func (*UtxorpcClient) ReadMempoolWithContext

func (*UtxorpcClient) ReadParams

func (*UtxorpcClient) ReadParamsWithContext

func (*UtxorpcClient) ReadTip

func (*UtxorpcClient) ReadTipWithContext

func (*UtxorpcClient) ReadTx

func (*UtxorpcClient) ReadTxWithContext

func (*UtxorpcClient) ReadUtxos

func (*UtxorpcClient) ReadUtxosWithContext

func (*UtxorpcClient) RemoveHeader

func (u *UtxorpcClient) RemoveHeader(key string)

func (*UtxorpcClient) SearchUtxos

func (*UtxorpcClient) SearchUtxosWithContext

func (*UtxorpcClient) SetHeader

func (u *UtxorpcClient) SetHeader(key, value string)

func (*UtxorpcClient) SetHeaders

func (u *UtxorpcClient) SetHeaders(headers map[string]string)

func (*UtxorpcClient) SetURL

func (u *UtxorpcClient) SetURL(baseUrl string)

func (*UtxorpcClient) SubmitTx

func (*UtxorpcClient) SubmitTxWithContext

func (*UtxorpcClient) URL

func (u *UtxorpcClient) URL() string

type WatchServiceClient

type WatchServiceClient = watchconnect.WatchServiceClient

func NewWatchServiceClient

func NewWatchServiceClient(u *UtxorpcClient) WatchServiceClient

Directories

Path Synopsis
examples
query command
submit command
sync command

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL