dzsdk

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Serviceability *serviceability.Client
	Telemetry      *telemetry.Client
}

func New

func New(log *slog.Logger, endpoint string, opts ...Option) (*Client, error)

type Config

type Config struct {
	Endpoint                string
	Signer                  *solana.PrivateKey
	ServiceabilityProgramID solana.PublicKey
	TelemetryProgramID      solana.PublicKey
}

type Option

type Option func(*Config)

func WithServiceabilityProgramID

func WithServiceabilityProgramID(programID string) Option

Configure the serviceability program ID.

func WithSigner

func WithSigner(signer *solana.PrivateKey) Option

Configures the client with a private key for signing transactions.

func WithTelemetryProgramID

func WithTelemetryProgramID(programID string) Option

Configure the telemetry program ID.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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