api_wallet

package
v0.0.0-...-5a53b6d Latest Latest
Warning

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

Go to latest
Published: May 3, 2026 License: MIT Imports: 44 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DerivedAddress

type DerivedAddress struct {
	Address string
	Index   uint32
	Used    bool
}

DerivedAddress represents an address derived from a wallet seed

type Server

type Server struct {
	// contains filtered or unexported fields
}

func New

New creates a new Server and starts the balance update loop

func (*Server) BumpFee

BumpFee implements RBF (Replace-By-Fee) for unconfirmed transactions. Uses Bitcoin Core's bumpfee command with automatic fee estimation.

func (*Server) CheckChequeFunding

CheckChequeFunding implements walletv1connect.WalletServiceHandler.

func (*Server) CreateBackup

CreateBackup implements walletv1connect.WalletServiceHandler.

func (*Server) CreateBitcoinCoreWallet

CreateBitcoinCoreWallet implements walletv1connect.WalletServiceHandler. Test endpoint to verify descriptor import to Bitcoin Core.

func (*Server) CreateCheque

CreateCheque implements walletv1connect.WalletServiceHandler.

func (*Server) CreateSidechainDeposit

CreateSidechainDeposit implements walletv1connect.WalletServiceHandler.

func (*Server) DeleteCheque

DeleteCheque implements walletv1connect.WalletServiceHandler.

func (*Server) GetBalance

GetBalance implements drivechainv1connect.DrivechainServiceHandler.

func (*Server) GetCheque

GetCheque implements walletv1connect.WalletServiceHandler.

func (*Server) GetChequePrivateKey

GetChequePrivateKey implements walletv1connect.WalletServiceHandler.

func (*Server) GetCoinSelectionStrategy

GetCoinSelectionStrategy implements walletv1connect.WalletServiceHandler.

func (*Server) GetNewAddress

GetNewAddress implements drivechainv1connect.DrivechainServiceHandler.

func (*Server) GetStats

GetStats implements walletv1connect.WalletServiceHandler.

func (*Server) GetTransactionDetails

GetTransactionDetails implements walletv1connect.WalletServiceHandler. Returns enriched transaction details with resolved input values/addresses.

func (*Server) GetUTXODistribution

GetUTXODistribution implements walletv1connect.WalletServiceHandler. Returns UTXO distribution data for chart visualization.

func (*Server) GetUTXOMetadata

GetUTXOMetadata implements walletv1connect.WalletServiceHandler.

func (*Server) IsWalletUnlocked

func (s *Server) IsWalletUnlocked(ctx context.Context, c *connect.Request[emptypb.Empty]) (*connect.Response[emptypb.Empty], error)

IsWalletUnlocked implements walletv1connect.WalletServiceHandler.

func (*Server) ListCheques

ListCheques implements walletv1connect.WalletServiceHandler.

func (*Server) ListReceiveAddresses

ListReceiveAddresses implements walletv1connect.WalletServiceHandler.

func (*Server) ListSidechainDeposits

ListSidechainDeposits implements walletv1connect.WalletServiceHandler.

func (*Server) ListTransactions

ListTransactions implements drivechainv1connect.DrivechainServiceHandler.

func (*Server) ListUnspent

ListUnspent implements walletv1connect.WalletServiceHandler.

func (*Server) LockWallet

LockWallet implements walletv1connect.WalletServiceHandler.

func (*Server) RestoreBackup

RestoreBackup implements walletv1connect.WalletServiceHandler.

func (*Server) SelectCoins

SelectCoins implements walletv1connect.WalletServiceHandler.

func (*Server) SendTransaction

SendTransaction implements drivechainv1connect.DrivechainServiceHandler.

func (*Server) SetCoinSelectionStrategy

SetCoinSelectionStrategy implements walletv1connect.WalletServiceHandler.

func (*Server) SetUTXOMetadata

SetUTXOMetadata implements walletv1connect.WalletServiceHandler.

func (*Server) SignMessage

SignMessage implements walletv1connect.WalletServiceHandler.

func (*Server) SweepCheque

SweepCheque implements walletv1connect.WalletServiceHandler. Sweeps a cheque using its WIF private key to the destination address.

func (*Server) UnlockWallet

UnlockWallet implements walletv1connect.WalletServiceHandler.

func (*Server) ValidateBackup

ValidateBackup implements walletv1connect.WalletServiceHandler.

func (*Server) VerifyMessage

VerifyMessage implements walletv1connect.WalletServiceHandler.

Jump to

Keyboard shortcuts

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