Documentation ¶
Overview ¶
Package lwallet implements logic of the wallet It is not a complete wallet and only provides basic testing capabilities for rpc currently
Index ¶
- func AddToWallet(txn *tx.Tx, blockhash util.Hash, extInfo map[string]string)
- func CheckFinalTx(txn *tx.Tx) bool
- func CommitTransaction(txNew *tx.Tx, extInfo map[string]string) error
- func CreateMultiSigRedeemScript(requiredNum int, keys []string) (res *script.Script, err error)
- func CreateTransaction(recipients []*wallet.Recipient, changePosInOut *int, sign bool) (*tx.Tx, amount.Amount, error)
- func FundTransaction(fundTx *tx.Tx, setSubtractFeeFromOutputs *set.Set, ...) (int, amount.Amount, error)
- func GetAccountName(keyHash []byte) string
- func GetKeyPair(pubKeyHash []byte) *crypto.KeyPair
- func GetKeyPairs(pubKeyHashList [][]byte) []*crypto.KeyPair
- func GetMiningAddress() (string, error)
- func GetNewAddress(account string, isLegacyAddr bool) (string, error)
- func GetScript(scriptHash []byte) *script.Script
- func IsMine(sc *script.Script) bool
- func IsWalletEnable() bool
- func RemoveFromWallet(txn *tx.Tx)
- func SetFeeRate(feePaid int64, byteSize int64)
- type TxnCoin
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckFinalTx ¶
func CreateMultiSigRedeemScript ¶ added in v0.0.4
func CreateTransaction ¶
func FundTransaction ¶
func GetAccountName ¶
func GetKeyPair ¶
func GetKeyPairs ¶
func GetMiningAddress ¶
func IsWalletEnable ¶
func IsWalletEnable() bool
func RemoveFromWallet ¶
func SetFeeRate ¶
Types ¶
type TxnCoin ¶
func AvailableCoins ¶
Click to show internal directories.
Click to hide internal directories.