Versions in this module Expand all Collapse all v0 v0.1.0 Dec 10, 2023 Changes in this version + const MethodAutoRefresh + const MethodGetAddress + const MethodGetHeight + const MethodGetTransfers + const MethodMakeIntegratedAddress + type AutoRefreshParams struct + Enable bool + Period uint + type Client struct + func NewClient(cfg *Config, parentLogger *slog.Logger) *Client + func (cli *Client) AutoRefresh(ctx context.Context, p *AutoRefreshParams) error + func (cli *Client) Close() error + func (cli *Client) GetAddress(ctx context.Context, p *GetAddressParams) (*GetAddressResult, error) + func (cli *Client) GetHeight(ctx context.Context) (*GetHeightResult, error) + func (cli *Client) GetTransfers(ctx context.Context, p *GetTransfersParams) (*GetTransfersResult, error) + func (cli *Client) MakeIntegratedAddress(ctx context.Context, p *MakeIntegratedAddressParams) (*MakeIntegratedAddressResult, error) + func (cli *Client) WatchTransfers(ctx context.Context, cfg *Config) + func (cli *Client) XfersCh() <-chan *GetTransfersResult + type Config struct + Daemon DaemonConfig + DisablePool bool + PollInterval uint + RecoveryHeight uint64 + TrackNSF bool + URL string + func (cfg *Config) ApplyDefaults(def *Config) + func (cfg *Config) Validate() error + type Daemon struct + func NewDaemon(cfg *DaemonConfig, parentLogger *slog.Logger) *Daemon + func (d *Daemon) Run(ctx context.Context) + type DaemonConfig struct + BindPort uint16 + Enable bool + ExecutablePath string + LogPath string + NodeURL string + Stagenet bool + WalletPath string + func (cfg *DaemonConfig) ApplyDefaults(def *DaemonConfig) + func (cfg *DaemonConfig) ToCmd(ctx context.Context) *exec.Cmd + func (cfg *DaemonConfig) Validate() error + type GetAddressParams struct + AccountIndex uint + AddressIndex []uint + type GetAddressResult struct + Address string + Addresses []struct{ ... } + type GetHeightResult struct + Height uint64 + type GetTransfersParams struct + AccountIndex uint + AllAccounts bool + Failed bool + FilterByHeight bool + In bool + MaxHeight uint64 + MinHeight uint64 + Out bool + Pending bool + Pool bool + SubaddrIndices []uint + type GetTransfersResult struct + Failed []*Transfer + In []*Transfer + MaxHeight uint64 + Out []*Transfer + Pending []*Transfer + Pool []*Transfer + type MakeIntegratedAddressParams struct + PaymentID string + StandardAddress string + type MakeIntegratedAddressResult struct + IntegratedAddress string + PaymentID string + type Quantity struct + func MustNewQuantity(s string) *Quantity + func NewQuantity(s string) (*Quantity, error) + func NewQuantityFrom(other *Quantity) *Quantity + func NewQuantityFromAtomic(v uint64) *Quantity + func (q *Quantity) Cmp(other *Quantity) int + func (q *Quantity) IsZero() bool + func (q *Quantity) MarshalText() ([]byte, error) + func (q *Quantity) Set(other *Quantity) *Quantity + func (q *Quantity) String() string + func (q *Quantity) UnmarshalText(s []byte) error + func (q *Quantity) UnmarshalYAML(value *yaml.Node) error + type Transfer struct + Address string + Amount uint64 + Confirmations uint64 + DoubleSpendSeen bool + Fee uint64 + Height uint64 + Locked bool + Note string + PaymentID string + SubaddrIndex struct{ ... } + SubaddrIndices []struct{ ... } + SuggestedConfirmationsThreshold uint64 + Timestamp uint64 + TxID string + Type string + UnlockTime uint64 + func (xfer *Transfer) AmountXMR() *Quantity + func (xfer *Transfer) FeeXMR() *Quantity