Documentation
¶
Index ¶
- Constants
- Variables
- func GenerateMnemonic() (string, error)
- func Init(walletConfig Config) error
- func Initialized() bool
- func UpdateConfig(walletConfig Config)
- type AuthHandler
- type Config
- type Json
- type Notification
- type Session
- type Subaccount
- type TransactionNotification
- type Wallet
- func (wallet *Wallet) ApplyTransaction(txHex string) error
- func (wallet *Wallet) BumpTransactionFee(txId string, satPerVbyte float64) (string, error)
- func (wallet *Wallet) Connect() error
- func (wallet *Wallet) CurrentSubaccount() (uint64, error)
- func (wallet *Wallet) Disconnect() error
- func (wallet *Wallet) GetBalance() (*onchain.Balance, error)
- func (wallet *Wallet) GetOutputs(address string) ([]*onchain.Output, error)
- func (wallet *Wallet) GetSendFee(args onchain.WalletSendArgs) (send uint64, fee uint64, err error)
- func (wallet *Wallet) GetSubaccount(pointer uint64) (*Subaccount, error)
- func (wallet *Wallet) GetSubaccountBalance(subaccount uint64) (*onchain.Balance, error)
- func (wallet *Wallet) GetSubaccounts(refresh bool) ([]*Subaccount, error)
- func (wallet *Wallet) GetTransactions(limit, offset uint64) ([]*onchain.WalletTransaction, error)
- func (wallet *Wallet) GetWalletInfo() onchain.WalletInfo
- func (wallet *Wallet) NewAddress() (string, error)
- func (wallet *Wallet) Ready() bool
- func (wallet *Wallet) SendToAddress(args onchain.WalletSendArgs) (tx string, err error)
- func (wallet *Wallet) SetSubaccount(subaccount *uint64) (*uint64, error)
- func (wallet *Wallet) Sync() error
Constants ¶
View Source
const DefaultAutoConsolidateThreshold = uint64(200)
View Source
const GapLimit = 100
View Source
const MaxInputs = uint64(256)
Variables ¶
View Source
var ErrSubAccountNotSet = errors.New("subaccount not set")
View Source
var TransactionNotifier = utils.ForwardChannel(make(chan TransactionNotification), 0, false)
Functions ¶
func GenerateMnemonic ¶
func Initialized ¶
func Initialized() bool
func UpdateConfig ¶
func UpdateConfig(walletConfig Config)
Types ¶
type AuthHandler ¶
type AuthHandler = *C.struct_GA_auth_handler
type Config ¶
type Notification ¶
type Notification string
type Session ¶
type Session = *C.struct_GA_session
type Subaccount ¶
type TransactionNotification ¶
type Wallet ¶
type Wallet struct { onchain.WalletInfo // contains filtered or unexported fields }
func (*Wallet) ApplyTransaction ¶ added in v2.8.1
func (*Wallet) BumpTransactionFee ¶ added in v2.5.0
func (*Wallet) CurrentSubaccount ¶
func (*Wallet) Disconnect ¶
func (*Wallet) GetOutputs ¶
func (*Wallet) GetSendFee ¶
func (*Wallet) GetSubaccount ¶
func (wallet *Wallet) GetSubaccount(pointer uint64) (*Subaccount, error)
func (*Wallet) GetSubaccountBalance ¶
func (*Wallet) GetSubaccounts ¶
func (wallet *Wallet) GetSubaccounts(refresh bool) ([]*Subaccount, error)
func (*Wallet) GetTransactions ¶
func (wallet *Wallet) GetTransactions(limit, offset uint64) ([]*onchain.WalletTransaction, error)
func (*Wallet) GetWalletInfo ¶
func (wallet *Wallet) GetWalletInfo() onchain.WalletInfo
func (*Wallet) NewAddress ¶
func (*Wallet) SendToAddress ¶
func (wallet *Wallet) SendToAddress(args onchain.WalletSendArgs) (tx string, err error)
func (*Wallet) SetSubaccount ¶
Click to show internal directories.
Click to hide internal directories.