# Packages
Package integration implements CLI integration tests.
# Functions
AddPrivateKey adds a private key to a *wallet.Wallet.
AddPrivateKeyToFile adds a private key to a wallet based on filename.
AddressesToStrings converts []cipher.Address to []string.
CheckWalletBalance returns the total and individual balances of addresses in a wallet file.
CreateRawTxn creates a transaction from a set of addresses contained in a loaded *wallet.Wallet.
CreateRawTxnFromAddress creates a transaction from a specific address in a wallet.
CreateRawTxnFromWallet creates a transaction from any address or combination of addresses in a wallet.
FormatAddressesAsJoinedArray converts []cipher.Address to strings and concatenates them with a comma.
FormatAddressesAsJSON converts []cipher.Address to strings and formats the array into a standard JSON object wrapper.
GenerateAddressesInFile generates addresses in given wallet file.
GenerateWallet generates a new wallet with filename walletFile, label, seed and number of addresses.
GetBalanceOfAddresses returns the total and individual balances of a set of addresses.
GetWalletOutputs returns unspent outputs associated with all addresses in a wallet.Wallet.
GetWalletOutputsFromFile returns unspent outputs associated with all addresses in a wallet file.
LoadConfig loads config from environment, prior to parsing CLI flags.
MakeAlphanumericSeed creates a random seed with AlphaNumericSeedLength bytes and hex encodes it.
NewCLI creates a cli instance.
NewPasswordReader creats a PasswordReader instance, reads password from the input bytes first, if it's empty, then read from terminal.
NewTransaction creates a transaction.
# Constants
AlphaNumericSeedLength is the size of generated alphanumeric seeds, in bytes.
# Variables
ErrAddress is returned if an address is invalid.
ErrJSONMarshal is returned if JSON marshaling failed.
ErrTemporaryInsufficientBalance is returned if a wallet does not have enough balance for a spend, but will have enough after unconfirmed transactions confirm.
ErrWalletName is returned if the wallet file name is invalid.
Version is the CLI Version.
# Structs
AddressBalances represents an address's balance.
AddrHistory represents a transactional event for an address.
Balance represents an coin and hours balance.
BalanceResult represents an set of addresses' balances.
Config cli's configuration struct.
ConfigStatus contains the configuration parameters loaded by the cli.
OutputsResult the output json format.
PasswordFromTerm reads password from terminal.
SendAmount represents an amount to send to an address.
StatusResult is printed by cli status command.
TxnResult wraps readable.TransactionWithStatus.
WalletEntry represents an enty in a wallet file.
WalletLoadError is returned if a wallet could not be loaded.
WalletSaveError is returned if a wallet could not be saved.
# Interfaces
GetOutputser implements unspent output querying.
PasswordReader is an interface for getting password.
# Type aliases
PasswordFromBytes represents an implementation of PasswordReader, which reads password from the bytes itself.