electroncompat

package
v0.0.0-...-8fc50dc Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2026 License: EUPL-1.2 Imports: 1 Imported by: 0

Documentation

Overview

Package electroncompat provides Go implementations for services that were previously implemented as Electron IPC handlers. These services bridge the frontend Angular application with the Go backend.

Migration from Electron: The original application used Electron's IPC for communication between the renderer (UI) and main (backend) processes. With the migration to Wails v3, these services are now implemented as Go structs with methods that Wails automatically exposes to the frontend via generated bindings.

Services in this package:

  • Node: Blockchain node operations (start/stop, queries, transactions)
  • Wallet: Wallet management (create, import, send, receive)
  • Setting: Application settings persistence
  • Ledger: Hardware wallet (Ledger) integration
  • DB: Key-value storage for application data
  • Analytics: Usage tracking and metrics
  • Connections: RPC connection management
  • Shakedex: Decentralized exchange operations
  • Claim: Airdrop and claim proof generation
  • Logger: Structured logging
  • Hip2: HIP-2 DNS protocol support

Index

Constants

This section is empty.

Variables

View Source
var ErrNotImplemented = errors.New("not implemented")

ErrNotImplemented is returned when a method stub is called that hasn't been fully implemented yet.

Functions

This section is empty.

Types

type AnalyticsService

type AnalyticsService struct{}

AnalyticsService provides usage tracking operations. This corresponds to the Analytics IPC service from the Electron app.

func NewAnalyticsService

func NewAnalyticsService() *AnalyticsService

NewAnalyticsService creates a new AnalyticsService instance.

func (*AnalyticsService) GetOptIn

func (s *AnalyticsService) GetOptIn() (bool, error)

GetOptIn returns whether analytics are enabled.

func (*AnalyticsService) ScreenView

func (s *AnalyticsService) ScreenView(screen string) error

ScreenView tracks a screen view.

func (*AnalyticsService) SetOptIn

func (s *AnalyticsService) SetOptIn(optIn bool) error

SetOptIn sets whether analytics are enabled.

func (*AnalyticsService) Track

func (s *AnalyticsService) Track(event string, properties map[string]any) error

Track tracks an event.

type ClaimService

type ClaimService struct{}

ClaimService provides airdrop and claim proof operations. This corresponds to the Claim IPC service from the Electron app.

func NewClaimService

func NewClaimService() *ClaimService

NewClaimService creates a new ClaimService instance.

func (*ClaimService) AirdropGenerateProofs

func (s *ClaimService) AirdropGenerateProofs(address string) ([]map[string]any, error)

AirdropGenerateProofs generates airdrop proofs for an address.

type ConnectionType

type ConnectionType string

ConnectionType represents the type of connection.

const (
	// ConnectionLocal uses a local node.
	ConnectionLocal ConnectionType = "local"
	// ConnectionP2P uses P2P networking.
	ConnectionP2P ConnectionType = "p2p"
	// ConnectionCustom uses a custom RPC endpoint.
	ConnectionCustom ConnectionType = "custom"
)

type ConnectionsService

type ConnectionsService struct{}

ConnectionsService provides RPC connection management. This corresponds to the Connections IPC service from the Electron app.

func NewConnectionsService

func NewConnectionsService() *ConnectionsService

NewConnectionsService creates a new ConnectionsService instance.

func (*ConnectionsService) GetConnection

func (s *ConnectionsService) GetConnection() (map[string]any, error)

GetConnection returns the current connection settings.

func (*ConnectionsService) GetCustomRPC

func (s *ConnectionsService) GetCustomRPC() (map[string]any, error)

GetCustomRPC returns custom RPC settings.

func (*ConnectionsService) SetConnection

func (s *ConnectionsService) SetConnection(settings map[string]any) error

SetConnection sets the connection settings.

func (*ConnectionsService) SetConnectionType

func (s *ConnectionsService) SetConnectionType(connType ConnectionType) error

SetConnectionType sets the connection type.

type DBService

type DBService struct{}

DBService provides key-value storage operations. This corresponds to the DB IPC service from the Electron app.

func NewDBService

func NewDBService() *DBService

NewDBService creates a new DBService instance.

func (*DBService) Close

func (s *DBService) Close() error

Close closes the database.

func (*DBService) Del

func (s *DBService) Del(key string) error

Del deletes a value by key.

func (*DBService) Get

func (s *DBService) Get(key string) (any, error)

Get retrieves a value by key.

func (*DBService) GetUserDir

func (s *DBService) GetUserDir() (string, error)

GetUserDir returns the user data directory.

func (*DBService) Open

func (s *DBService) Open(name string) error

Open opens a database.

func (*DBService) Put

func (s *DBService) Put(key string, value any) error

Put stores a value by key.

type Hip2Service

type Hip2Service struct{}

Hip2Service provides HIP-2 DNS protocol operations. This corresponds to the Hip2 IPC service from the Electron app. HIP-2 defines how to resolve Handshake names to payment addresses.

func NewHip2Service

func NewHip2Service() *Hip2Service

NewHip2Service creates a new Hip2Service instance.

func (*Hip2Service) FetchAddress

func (s *Hip2Service) FetchAddress(name string) (string, error)

FetchAddress fetches an address for a name using HIP-2.

func (*Hip2Service) GetPort

func (s *Hip2Service) GetPort() (int, error)

GetPort returns the HIP-2 server port.

func (*Hip2Service) SetPort

func (s *Hip2Service) SetPort(port int) error

SetPort sets the HIP-2 server port.

func (*Hip2Service) SetServers

func (s *Hip2Service) SetServers(servers []string) error

SetServers sets the HIP-2 resolver servers.

type LedgerService

type LedgerService struct{}

LedgerService provides Ledger hardware wallet integration. This corresponds to the Ledger IPC service from the Electron app.

func NewLedgerService

func NewLedgerService() *LedgerService

NewLedgerService creates a new LedgerService instance.

func (*LedgerService) GetAppVersion

func (s *LedgerService) GetAppVersion() (string, error)

GetAppVersion returns the Handshake app version on the Ledger.

func (*LedgerService) GetXPub

func (s *LedgerService) GetXPub(path string) (string, error)

GetXPub returns the extended public key from the Ledger device.

type LoggerService

type LoggerService struct{}

LoggerService provides structured logging operations. This corresponds to the Logger IPC service from the Electron app.

func NewLoggerService

func NewLoggerService() *LoggerService

NewLoggerService creates a new LoggerService instance.

func (*LoggerService) Download

func (s *LoggerService) Download() ([]byte, error)

Download downloads log files.

func (*LoggerService) Error

func (s *LoggerService) Error(message string, args ...any) error

Error logs an error message.

func (*LoggerService) Info

func (s *LoggerService) Info(message string, args ...any) error

Info logs an info message.

func (*LoggerService) Log

func (s *LoggerService) Log(level, message string, args ...any) error

Log logs a generic message.

func (*LoggerService) Warn

func (s *LoggerService) Warn(message string, args ...any) error

Warn logs a warning message.

type NodeService

type NodeService struct{}

NodeService provides blockchain node operations. This corresponds to the Node IPC service from the Electron app.

func NewNodeService

func NewNodeService() *NodeService

NewNodeService creates a new NodeService instance.

func (*NodeService) BroadcastRawTx

func (s *NodeService) BroadcastRawTx(tx string) (string, error)

BroadcastRawTx broadcasts a raw transaction.

func (*NodeService) GenerateToAddress

func (s *NodeService) GenerateToAddress(address string, blocks int) error

GenerateToAddress generates blocks to an address (regtest mode).

func (*NodeService) GetAPIKey

func (s *NodeService) GetAPIKey() (string, error)

GetAPIKey returns the node API key.

func (*NodeService) GetAverageBlockTime

func (s *NodeService) GetAverageBlockTime() (float64, error)

GetAverageBlockTime returns the average block time.

func (*NodeService) GetBlockByHeight

func (s *NodeService) GetBlockByHeight(height int) (map[string]any, error)

GetBlockByHeight returns a block by height.

func (*NodeService) GetCoin

func (s *NodeService) GetCoin(hash string, index int) (map[string]any, error)

GetCoin returns a coin by outpoint.

func (*NodeService) GetDNSSECProof

func (s *NodeService) GetDNSSECProof(name string) (string, error)

GetDNSSECProof returns a DNSSEC proof for a name.

func (*NodeService) GetDir

func (s *NodeService) GetDir() (string, error)

GetDir returns the node data directory.

func (*NodeService) GetFees

func (s *NodeService) GetFees() (map[string]any, error)

GetFees returns current fee estimates.

func (*NodeService) GetHNSPrice

func (s *NodeService) GetHNSPrice() (float64, error)

GetHNSPrice returns the current HNS price.

func (*NodeService) GetInfo

func (s *NodeService) GetInfo() (map[string]any, error)

GetInfo returns node information.

func (*NodeService) GetMTP

func (s *NodeService) GetMTP() (int64, error)

GetMTP returns the median time past.

func (*NodeService) GetNameByHash

func (s *NodeService) GetNameByHash(hash string) (string, error)

GetNameByHash returns a name by its hash.

func (*NodeService) GetNameInfo

func (s *NodeService) GetNameInfo(name string) (map[string]any, error)

GetNameInfo returns information about a name.

func (*NodeService) GetNoDns

func (s *NodeService) GetNoDns() (bool, error)

GetNoDns returns whether DNS is disabled.

func (*NodeService) GetSpvMode

func (s *NodeService) GetSpvMode() (bool, error)

GetSpvMode returns whether SPV mode is enabled.

func (*NodeService) GetTXByAddresses

func (s *NodeService) GetTXByAddresses(addresses []string) ([]map[string]any, error)

GetTXByAddresses returns transactions for addresses.

func (*NodeService) GetTx

func (s *NodeService) GetTx(hash string) (map[string]any, error)

GetTx returns a transaction by hash.

func (*NodeService) Reset

func (s *NodeService) Reset() error

Reset resets the blockchain node data.

func (*NodeService) SendRawAirdrop

func (s *NodeService) SendRawAirdrop(proof string) error

SendRawAirdrop sends a raw airdrop proof.

func (*NodeService) SendRawClaim

func (s *NodeService) SendRawClaim(claim string) error

SendRawClaim sends a raw claim.

func (*NodeService) SetAPIKey

func (s *NodeService) SetAPIKey(key string) error

SetAPIKey sets the node API key.

func (*NodeService) SetNoDns

func (s *NodeService) SetNoDns(noDns bool) error

SetNoDns sets whether DNS is disabled.

func (*NodeService) SetNodeDir

func (s *NodeService) SetNodeDir(dir string) error

SetNodeDir sets the node data directory.

func (*NodeService) SetSpvMode

func (s *NodeService) SetSpvMode(spv bool) error

SetSpvMode sets whether SPV mode is enabled.

func (*NodeService) Start

func (s *NodeService) Start() error

Start starts the blockchain node.

func (*NodeService) Stop

func (s *NodeService) Stop() error

Stop stops the blockchain node.

func (*NodeService) TestCustomRPCClient

func (s *NodeService) TestCustomRPCClient(host string, port int, apiKey string) error

TestCustomRPCClient tests a custom RPC connection.

func (*NodeService) VerifyMessageWithName

func (s *NodeService) VerifyMessageWithName(name, signature, message string) (bool, error)

VerifyMessageWithName verifies a signed message.

type NotImplementedError

type NotImplementedError struct {
	Service string
	Method  string
}

NotImplementedError wraps an operation name for methods that are stubs.

func (*NotImplementedError) Error

func (e *NotImplementedError) Error() string

type SettingService

type SettingService struct{}

SettingService provides application settings operations. This corresponds to the Setting IPC service from the Electron app.

func NewSettingService

func NewSettingService() *SettingService

NewSettingService creates a new SettingService instance.

func (*SettingService) GetCustomLocale

func (s *SettingService) GetCustomLocale() (map[string]string, error)

GetCustomLocale returns custom locale overrides.

func (*SettingService) GetExplorer

func (s *SettingService) GetExplorer() (string, error)

GetExplorer returns the configured block explorer URL.

func (*SettingService) GetLatestRelease

func (s *SettingService) GetLatestRelease() (map[string]any, error)

GetLatestRelease returns the latest release info.

func (*SettingService) GetLocale

func (s *SettingService) GetLocale() (string, error)

GetLocale returns the current locale setting.

func (*SettingService) SetCustomLocale

func (s *SettingService) SetCustomLocale(locale map[string]string) error

SetCustomLocale sets custom locale overrides.

func (*SettingService) SetExplorer

func (s *SettingService) SetExplorer(url string) error

SetExplorer sets the block explorer URL.

func (*SettingService) SetLocale

func (s *SettingService) SetLocale(locale string) error

SetLocale sets the locale.

type ShakedexService

type ShakedexService struct{}

ShakedexService provides decentralized exchange operations. This corresponds to the Shakedex IPC service from the Electron app.

func NewShakedexService

func NewShakedexService() *ShakedexService

NewShakedexService creates a new ShakedexService instance.

func (*ShakedexService) DownloadProofs

func (s *ShakedexService) DownloadProofs(auctionID string) ([]byte, error)

DownloadProofs downloads auction proofs.

func (*ShakedexService) FinalizeCancel

func (s *ShakedexService) FinalizeCancel(name, passphrase string) (map[string]any, error)

FinalizeCancel finalizes a cancellation.

func (*ShakedexService) FinalizeLock

func (s *ShakedexService) FinalizeLock(name, passphrase string) (map[string]any, error)

FinalizeLock finalizes a transfer lock.

func (*ShakedexService) FinalizeSwap

func (s *ShakedexService) FinalizeSwap(fulfillmentID string) (map[string]any, error)

FinalizeSwap finalizes a swap.

func (*ShakedexService) FulfillSwap

func (s *ShakedexService) FulfillSwap(offerID string, fundingAddr string) (map[string]any, error)

FulfillSwap fulfills a swap offer.

func (*ShakedexService) GetBestBid

func (s *ShakedexService) GetBestBid(auctionID string) (map[string]any, error)

GetBestBid returns the best bid for an auction.

func (*ShakedexService) GetExchangeAuctions

func (s *ShakedexService) GetExchangeAuctions() ([]map[string]any, error)

GetExchangeAuctions returns exchange auctions.

func (*ShakedexService) GetFeeInfo

func (s *ShakedexService) GetFeeInfo() (map[string]any, error)

GetFeeInfo returns fee information.

func (*ShakedexService) GetFulfillments

func (s *ShakedexService) GetFulfillments() ([]map[string]any, error)

GetFulfillments returns swap fulfillments.

func (*ShakedexService) GetListings

func (s *ShakedexService) GetListings() ([]map[string]any, error)

GetListings returns active listings.

func (*ShakedexService) LaunchAuction

func (s *ShakedexService) LaunchAuction(name string, params map[string]any) (map[string]any, error)

LaunchAuction launches a name auction.

func (*ShakedexService) ListAuction

func (s *ShakedexService) ListAuction(name string, startPrice, endPrice int64, duration int) (map[string]any, error)

ListAuction lists a name for auction.

func (*ShakedexService) RestoreOneFill

func (s *ShakedexService) RestoreOneFill(fillID string) error

RestoreOneFill restores a fill.

func (*ShakedexService) RestoreOneListing

func (s *ShakedexService) RestoreOneListing(listingID string) error

RestoreOneListing restores a listing.

func (*ShakedexService) TransferCancel

func (s *ShakedexService) TransferCancel(name, passphrase string) (map[string]any, error)

TransferCancel cancels a transfer lock.

func (*ShakedexService) TransferLock

func (s *ShakedexService) TransferLock(name, passphrase string) (map[string]any, error)

TransferLock creates a transfer lock.

type WalletService

type WalletService struct{}

WalletService provides wallet management operations. This corresponds to the Wallet IPC service from the Electron app.

func NewWalletService

func NewWalletService() *WalletService

NewWalletService creates a new WalletService instance.

func (*WalletService) AddSharedKey

func (s *WalletService) AddSharedKey(walletID, account, key string) error

AddSharedKey adds a shared key.

func (*WalletService) Backup

func (s *WalletService) Backup(walletID, path string) error

Backup creates a wallet backup.

func (*WalletService) CancelTransfer

func (s *WalletService) CancelTransfer(walletID, passphrase, name string) (map[string]any, error)

CancelTransfer cancels a name transfer.

func (*WalletService) ClaimPaidTransfer

func (s *WalletService) ClaimPaidTransfer(walletID, passphrase, hex string) (map[string]any, error)

ClaimPaidTransfer claims a paid transfer.

func (*WalletService) CreateClaim

func (s *WalletService) CreateClaim(walletID, passphrase, name string) (map[string]any, error)

CreateClaim creates a DNSSEC claim.

func (*WalletService) CreateNewWallet

func (s *WalletService) CreateNewWallet(id, passphrase string) (map[string]any, error)

CreateNewWallet creates a new wallet.

func (*WalletService) DeepClean

func (s *WalletService) DeepClean(walletID string) error

DeepClean performs a deep clean of the wallet.

func (*WalletService) EncryptWallet

func (s *WalletService) EncryptWallet(walletID, passphrase string) error

EncryptWallet encrypts the wallet.

func (*WalletService) EstimateMaxSend

func (s *WalletService) EstimateMaxSend(walletID, account string, rate int) (int64, error)

EstimateMaxSend estimates the maximum sendable amount.

func (*WalletService) EstimateTxFee

func (s *WalletService) EstimateTxFee(rate int) (int64, error)

EstimateTxFee estimates the transaction fee.

func (*WalletService) FinalizeAll

func (s *WalletService) FinalizeAll(walletID, passphrase string) (map[string]any, error)

FinalizeAll finalizes all transfers.

func (*WalletService) FinalizeMany

func (s *WalletService) FinalizeMany(walletID, passphrase string, names []string) (map[string]any, error)

FinalizeMany finalizes multiple transfers.

func (*WalletService) FinalizeTransfer

func (s *WalletService) FinalizeTransfer(walletID, passphrase, name string) (map[string]any, error)

FinalizeTransfer finalizes a name transfer.

func (*WalletService) FinalizeWithPayment

func (s *WalletService) FinalizeWithPayment(walletID, passphrase, name string, fundingAddr string, nameRecvAddr string, price int64) (map[string]any, error)

FinalizeWithPayment finalizes a transfer with payment.

func (*WalletService) FindNonce

func (s *WalletService) FindNonce(name, address string, value int64) (string, error)

FindNonce finds a nonce for a name.

func (*WalletService) FindNonceCancel

func (s *WalletService) FindNonceCancel() error

FindNonceCancel cancels a nonce search.

func (*WalletService) GenerateReceivingAddress

func (s *WalletService) GenerateReceivingAddress(walletID, account string) (string, error)

GenerateReceivingAddress generates a new receiving address.

func (*WalletService) GetAPIKey

func (s *WalletService) GetAPIKey() (string, error)

GetAPIKey returns the wallet API key.

func (*WalletService) GetAccountInfo

func (s *WalletService) GetAccountInfo(walletID, account string) (map[string]any, error)

GetAccountInfo returns account information.

func (*WalletService) GetAuctionInfo

func (s *WalletService) GetAuctionInfo(name string) (map[string]any, error)

GetAuctionInfo returns auction information for a name.

func (*WalletService) GetBids

func (s *WalletService) GetBids(walletID string, own bool) ([]map[string]any, error)

GetBids returns bids for a name.

func (*WalletService) GetBlind

func (s *WalletService) GetBlind(value int64, nonce string) (string, error)

GetBlind returns a blind for a bid.

func (*WalletService) GetCoin

func (s *WalletService) GetCoin(hash string, index int) (map[string]any, error)

GetCoin returns a coin by outpoint.

func (*WalletService) GetMasterHDKey

func (s *WalletService) GetMasterHDKey(walletID, passphrase string) (map[string]any, error)

GetMasterHDKey returns the master HD key.

func (*WalletService) GetNames

func (s *WalletService) GetNames(walletID string) ([]map[string]any, error)

GetNames returns names owned by the wallet.

func (*WalletService) GetNonce

func (s *WalletService) GetNonce(walletID, name, address string, bid int64) (map[string]any, error)

GetNonce gets a nonce.

func (*WalletService) GetPendingTransactions

func (s *WalletService) GetPendingTransactions(walletID string) ([]map[string]any, error)

GetPendingTransactions returns pending transactions.

func (*WalletService) GetStats

func (s *WalletService) GetStats(walletID string) (map[string]any, error)

GetStats returns wallet statistics.

func (*WalletService) GetTX

func (s *WalletService) GetTX(hash string) (map[string]any, error)

GetTX returns a wallet transaction.

func (*WalletService) GetTransactionHistory

func (s *WalletService) GetTransactionHistory(walletID string) ([]map[string]any, error)

GetTransactionHistory returns transaction history.

func (*WalletService) GetWalletInfo

func (s *WalletService) GetWalletInfo(id string) (map[string]any, error)

GetWalletInfo returns wallet information.

func (*WalletService) HasAddress

func (s *WalletService) HasAddress(walletID, address string) (bool, error)

HasAddress checks if an address belongs to the wallet.

func (*WalletService) ImportName

func (s *WalletService) ImportName(walletID, name string, height int) error

ImportName imports a name.

func (*WalletService) ImportNonce

func (s *WalletService) ImportNonce(walletID, name, address string, value int64) error

ImportNonce imports a nonce.

func (*WalletService) ImportSeed

func (s *WalletService) ImportSeed(id, passphrase, mnemonic string) error

ImportSeed imports a wallet from seed.

func (*WalletService) IsLocked

func (s *WalletService) IsLocked(walletID string) (bool, error)

IsLocked checks if the wallet is locked.

func (*WalletService) IsReady

func (s *WalletService) IsReady() (bool, error)

IsReady checks if the wallet is ready.

func (*WalletService) ListWallets

func (s *WalletService) ListWallets() ([]string, error)

ListWallets lists all wallets.

func (*WalletService) LoadTransaction

func (s *WalletService) LoadTransaction(walletID, hex string) (map[string]any, error)

LoadTransaction loads a transaction from hex.

func (*WalletService) Lock

func (s *WalletService) Lock(walletID string) error

Lock locks the wallet.

func (*WalletService) RPCGetWalletInfo

func (s *WalletService) RPCGetWalletInfo(walletID string) (map[string]any, error)

RPCGetWalletInfo gets wallet info via RPC.

func (*WalletService) RemoveSharedKey

func (s *WalletService) RemoveSharedKey(walletID, account, key string) error

RemoveSharedKey removes a shared key.

func (*WalletService) RemoveWalletById

func (s *WalletService) RemoveWalletById(id string) error

RemoveWalletById removes a wallet.

func (*WalletService) RenewAll

func (s *WalletService) RenewAll(walletID, passphrase string) (map[string]any, error)

RenewAll renews all names.

func (*WalletService) RenewMany

func (s *WalletService) RenewMany(walletID, passphrase string, names []string) (map[string]any, error)

RenewMany renews multiple names.

func (*WalletService) Rescan

func (s *WalletService) Rescan(height int) error

Rescan rescans the blockchain.

func (*WalletService) Reset

func (s *WalletService) Reset() error

Reset resets the wallet database.

func (*WalletService) RevealSeed

func (s *WalletService) RevealSeed(walletID, passphrase string) (string, error)

RevealSeed reveals the wallet seed.

func (*WalletService) RevokeName

func (s *WalletService) RevokeName(walletID, passphrase, name string) (map[string]any, error)

RevokeName revokes a name.

func (*WalletService) Send

func (s *WalletService) Send(walletID, passphrase, address string, value int64) (map[string]any, error)

Send sends HNS to an address.

func (*WalletService) SendBid

func (s *WalletService) SendBid(walletID, passphrase, name string, bid, lockup int64) (map[string]any, error)

SendBid sends a BID transaction.

func (*WalletService) SendClaim

func (s *WalletService) SendClaim(walletID, passphrase, name string) (map[string]any, error)

SendClaim sends a DNSSEC claim.

func (*WalletService) SendOpen

func (s *WalletService) SendOpen(walletID, passphrase, name string) (map[string]any, error)

SendOpen sends an OPEN transaction for a name.

func (*WalletService) SendRedeem

func (s *WalletService) SendRedeem(walletID, passphrase, name string) (map[string]any, error)

SendRedeem sends a REDEEM transaction.

func (*WalletService) SendRedeemAll

func (s *WalletService) SendRedeemAll(walletID, passphrase string) (map[string]any, error)

SendRedeemAll redeems all names.

func (*WalletService) SendRegister

func (s *WalletService) SendRegister(walletID, passphrase, name string) (map[string]any, error)

SendRegister sends a REGISTER transaction.

func (*WalletService) SendRegisterAll

func (s *WalletService) SendRegisterAll(walletID, passphrase string) (map[string]any, error)

SendRegisterAll registers all won auctions.

func (*WalletService) SendRenewal

func (s *WalletService) SendRenewal(walletID, passphrase, name string) (map[string]any, error)

SendRenewal sends a RENEW transaction.

func (*WalletService) SendReveal

func (s *WalletService) SendReveal(walletID, passphrase, name string) (map[string]any, error)

SendReveal sends a REVEAL transaction.

func (*WalletService) SendRevealAll

func (s *WalletService) SendRevealAll(walletID, passphrase string) (map[string]any, error)

SendRevealAll reveals all bids.

func (*WalletService) SendTransfer

func (s *WalletService) SendTransfer(walletID, passphrase, name, address string) (map[string]any, error)

SendTransfer initiates a name transfer.

func (*WalletService) SendUpdate

func (s *WalletService) SendUpdate(walletID, passphrase, name string, data map[string]any) (map[string]any, error)

SendUpdate sends an UPDATE transaction.

func (*WalletService) SetAPIKey

func (s *WalletService) SetAPIKey(key string) error

SetAPIKey sets the wallet API key.

func (*WalletService) SetPassphrase

func (s *WalletService) SetPassphrase(walletID, oldPassphrase, newPassphrase string) error

SetPassphrase sets or changes the wallet passphrase.

func (*WalletService) SignMessageWithName

func (s *WalletService) SignMessageWithName(walletID, passphrase, name, message string) (string, error)

SignMessageWithName signs a message with a name's key.

func (*WalletService) Start

func (s *WalletService) Start() error

Start starts the wallet service.

func (*WalletService) TransferMany

func (s *WalletService) TransferMany(walletID, passphrase string, names []string, address string) (map[string]any, error)

TransferMany transfers multiple names.

func (*WalletService) Unlock

func (s *WalletService) Unlock(walletID, passphrase string, timeout int) error

Unlock unlocks the wallet.

func (*WalletService) UpdateAccountDepth

func (s *WalletService) UpdateAccountDepth(walletID, account string, depth int) error

UpdateAccountDepth updates the account lookahead depth.

func (*WalletService) Zap

func (s *WalletService) Zap(walletID, account string, age int) error

Zap zaps pending transactions.

Jump to

Keyboard shortcuts

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