Versions in this module Expand all Collapse all v0 v0.0.18 Apr 21, 2021 v0.0.17 Apr 20, 2021 v0.0.16 Apr 18, 2021 v0.0.15 Apr 18, 2021 Changes in this version + var D log.LevelPrinter = log.GetLogPrinterSet(subsystem) + var E log.LevelPrinter = log.GetLogPrinterSet(subsystem) + var ErrClientAlreadyConnected = errors.New("websocket client has already connected") + var ErrClientDisconnect = errors.New("the client has been disconnected") + var ErrClientNotConnected = errors.New("the client was never connected") + var ErrClientShutdown = errors.New("the client has been shutdown") + var ErrInvalidAuth = errors.New("authentication failure") + var ErrInvalidEndpoint = errors.New("the endpoint either does not support websockets or does not exist") + var ErrNotWebsocketClient = errors.New("client is not configured for websockets") + var ErrWebsocketsRequired = errors.New(...) + var F log.LevelPrinter = log.GetLogPrinterSet(subsystem) + var I log.LevelPrinter = log.GetLogPrinterSet(subsystem) + var T log.LevelPrinter = log.GetLogPrinterSet(subsystem) + var W log.LevelPrinter = log.GetLogPrinterSet(subsystem) + type AddNodeCommand string + const ANAdd + const ANOneTry + const ANRemove + func (cmd AddNodeCommand) String() string + type Client struct + func New(config *ConnConfig, ntfnHandlers *NotificationHandlers, quit qu.C) (*Client, error) + func (c *Client) AddMultisigAddress(requiredSigs int, addresses []btcaddr.Address, account string) (btcaddr.Address, error) + func (c *Client) AddMultisigAddressAsync(requiredSigs int, addresses []btcaddr.Address, account string) FutureAddMultisigAddressResult + func (c *Client) AddNode(host string, command AddNodeCommand) (e error) + func (c *Client) AddNodeAsync(host string, command AddNodeCommand) FutureAddNodeResult + func (c *Client) AddWitnessAddress(address string) (btcaddr.Address, error) + func (c *Client) AddWitnessAddressAsync(address string) FutureAddWitnessAddressResult + func (c *Client) Connect(tries int) (e error) + func (c *Client) CreateEncryptedWallet(passphrase string) (e error) + func (c *Client) CreateEncryptedWalletAsync(passphrase string) FutureCreateEncryptedWalletResult + func (c *Client) CreateMultisig(requiredSigs int, addresses []btcaddr.Address) (*btcjson.CreateMultiSigResult, error) + func (c *Client) CreateMultisigAsync(requiredSigs int, addresses []btcaddr.Address) FutureCreateMultisigResult + func (c *Client) CreateNewAccount(account string) (e error) + func (c *Client) CreateNewAccountAsync(account string) FutureCreateNewAccountResult + func (c *Client) CreateRawTransaction(inputs []btcjson.TransactionInput, amounts map[btcaddr.Address]amt.Amount, ...) (*wire.MsgTx, error) + func (c *Client) CreateRawTransactionAsync(inputs []btcjson.TransactionInput, amounts map[btcaddr.Address]amt.Amount, ...) FutureCreateRawTransactionResult + func (c *Client) DebugLevel(levelSpec string) (string, error) + func (c *Client) DebugLevelAsync(levelSpec string) FutureDebugLevelResult + func (c *Client) DecodeRawTransaction(serializedTx []byte) (*btcjson.TxRawResult, error) + func (c *Client) DecodeRawTransactionAsync(serializedTx []byte) FutureDecodeRawTransactionResult + func (c *Client) DecodeScript(serializedScript []byte) (*btcjson.DecodeScriptResult, error) + func (c *Client) DecodeScriptAsync(serializedScript []byte) FutureDecodeScriptResult + func (c *Client) Disconnect() + func (c *Client) Disconnected() bool + func (c *Client) DumpPrivKey(address btcaddr.Address) (*util.WIF, error) + func (c *Client) DumpPrivKeyAsync(address btcaddr.Address) FutureDumpPrivKeyResult + func (c *Client) EstimateFee(numBlocks int64) (float64, error) + func (c *Client) EstimateFeeAsync(numBlocks int64) FutureEstimateFeeResult + func (c *Client) ExportWatchingWallet(account string) ([]byte, []byte, error) + func (c *Client) ExportWatchingWalletAsync(account string) FutureExportWatchingWalletResult + func (c *Client) Generate(numBlocks uint32) ([]*chainhash.Hash, error) + func (c *Client) GenerateAsync(numBlocks uint32) FutureGenerateResult + func (c *Client) GetAccount(address btcaddr.Address) (string, error) + func (c *Client) GetAccountAddress(account string) (btcaddr.Address, error) + func (c *Client) GetAccountAddressAsync(account string) FutureGetAccountAddressResult + func (c *Client) GetAccountAsync(address btcaddr.Address) FutureGetAccountResult + func (c *Client) GetAddedNodeInfo(peer string) ([]btcjson.GetAddedNodeInfoResult, error) + func (c *Client) GetAddedNodeInfoAsync(peer string) FutureGetAddedNodeInfoResult + func (c *Client) GetAddedNodeInfoNoDNS(peer string) ([]string, error) + func (c *Client) GetAddedNodeInfoNoDNSAsync(peer string) FutureGetAddedNodeInfoNoDNSResult + func (c *Client) GetAddressesByAccount(account string) ([]btcaddr.Address, error) + func (c *Client) GetAddressesByAccountAsync(account string) FutureGetAddressesByAccountResult + func (c *Client) GetBalance(account string) (amt.Amount, error) + func (c *Client) GetBalanceAsync(account string) FutureGetBalanceResult + func (c *Client) GetBalanceMinConf(account string, minConfirms int) (amt.Amount, error) + func (c *Client) GetBalanceMinConfAsync(account string, minConfirms int) FutureGetBalanceResult + func (c *Client) GetBestBlock() (*chainhash.Hash, int32, error) + func (c *Client) GetBestBlockAsync() FutureGetBestBlockResult + func (c *Client) GetBestBlockHash() (*chainhash.Hash, error) + func (c *Client) GetBestBlockHashAsync() FutureGetBestBlockHashResult + func (c *Client) GetBlock(blockHash *chainhash.Hash) (*wire.Block, error) + func (c *Client) GetBlockAsync(blockHash *chainhash.Hash) FutureGetBlockResult + func (c *Client) GetBlockChainInfo() (*btcjson.GetBlockChainInfoResult, error) + func (c *Client) GetBlockChainInfoAsync() FutureGetBlockChainInfoResult + func (c *Client) GetBlockCount() (int64, error) + func (c *Client) GetBlockCountAsync() FutureGetBlockCountResult + func (c *Client) GetBlockHash(blockHeight int64) (*chainhash.Hash, error) + func (c *Client) GetBlockHashAsync(blockHeight int64) FutureGetBlockHashResult + func (c *Client) GetBlockHeader(blockHash *chainhash.Hash) (*wire.BlockHeader, error) + func (c *Client) GetBlockHeaderAsync(blockHash *chainhash.Hash) FutureGetBlockHeaderResult + func (c *Client) GetBlockHeaderVerbose(blockHash *chainhash.Hash) (*btcjson.GetBlockHeaderVerboseResult, error) + func (c *Client) GetBlockHeaderVerboseAsync(blockHash *chainhash.Hash) FutureGetBlockHeaderVerboseResult + func (c *Client) GetBlockVerbose(blockHash *chainhash.Hash) (*btcjson.GetBlockVerboseResult, error) + func (c *Client) GetBlockVerboseAsync(blockHash *chainhash.Hash) FutureGetBlockVerboseResult + func (c *Client) GetBlockVerboseTx(blockHash *chainhash.Hash) (*btcjson.GetBlockVerboseResult, error) + func (c *Client) GetBlockVerboseTxAsync(blockHash *chainhash.Hash) FutureGetBlockVerboseResult + func (c *Client) GetCFilter(blockHash *chainhash.Hash, filterType wire.FilterType) (*wire.MsgCFilter, error) + func (c *Client) GetCFilterAsync(blockHash *chainhash.Hash, filterType wire.FilterType) FutureGetCFilterResult + func (c *Client) GetCFilterHeader(blockHash *chainhash.Hash, filterType wire.FilterType) (*wire.MsgCFHeaders, error) + func (c *Client) GetCFilterHeaderAsync(blockHash *chainhash.Hash, filterType wire.FilterType) FutureGetCFilterHeaderResult + func (c *Client) GetConnectionCount() (int64, error) + func (c *Client) GetConnectionCountAsync() FutureGetConnectionCountResult + func (c *Client) GetCurrentNet() (wire.BitcoinNet, error) + func (c *Client) GetCurrentNetAsync() FutureGetCurrentNetResult + func (c *Client) GetDifficulty(algo string) (float64, error) + func (c *Client) GetDifficultyAsync(algo string) FutureGetDifficultyResult + func (c *Client) GetGenerate() (bool, error) + func (c *Client) GetGenerateAsync() FutureGetGenerateResult + func (c *Client) GetHashesPerSec() (int64, error) + func (c *Client) GetHashesPerSecAsync() FutureGetHashesPerSecResult + func (c *Client) GetHeaders(blockLocators []chainhash.Hash, hashStop *chainhash.Hash) ([]wire.BlockHeader, error) + func (c *Client) GetHeadersAsync(blockLocators []chainhash.Hash, hashStop *chainhash.Hash) FutureGetHeadersResult + func (c *Client) GetInfo() (*btcjson.InfoWalletResult, error) + func (c *Client) GetInfoAsync() FutureGetInfoResult + func (c *Client) GetMempoolEntry(txHash string) (*btcjson.GetMempoolEntryResult, error) + func (c *Client) GetMempoolEntryAsync(txHash string) FutureGetMempoolEntryResult + func (c *Client) GetMiningInfo() (*btcjson.GetMiningInfoResult, error) + func (c *Client) GetMiningInfoAsync() FutureGetMiningInfoResult + func (c *Client) GetNetTotals() (*btcjson.GetNetTotalsResult, error) + func (c *Client) GetNetTotalsAsync() FutureGetNetTotalsResult + func (c *Client) GetNetworkHashPS() (int64, error) + func (c *Client) GetNetworkHashPS2(blocks int) (int64, error) + func (c *Client) GetNetworkHashPS2Async(blocks int) FutureGetNetworkHashPS + func (c *Client) GetNetworkHashPS3(blocks, height int) (int64, error) + func (c *Client) GetNetworkHashPS3Async(blocks, height int) FutureGetNetworkHashPS + func (c *Client) GetNetworkHashPSAsync() FutureGetNetworkHashPS + func (c *Client) GetNewAddress(account string) (btcaddr.Address, error) + func (c *Client) GetNewAddressAsync(account string) FutureGetNewAddressResult + func (c *Client) GetPeerInfo() ([]btcjson.GetPeerInfoResult, error) + func (c *Client) GetPeerInfoAsync() FutureGetPeerInfoResult + func (c *Client) GetRawChangeAddress(account string) (btcaddr.Address, error) + func (c *Client) GetRawChangeAddressAsync(account string) FutureGetRawChangeAddressResult + func (c *Client) GetRawMempool() ([]*chainhash.Hash, error) + func (c *Client) GetRawMempoolAsync() FutureGetRawMempoolResult + func (c *Client) GetRawMempoolVerbose() (map[string]btcjson.GetRawMempoolVerboseResult, error) + func (c *Client) GetRawMempoolVerboseAsync() FutureGetRawMempoolVerboseResult + func (c *Client) GetRawTransaction(txHash *chainhash.Hash) (*util.Tx, error) + func (c *Client) GetRawTransactionAsync(txHash *chainhash.Hash) FutureGetRawTransactionResult + func (c *Client) GetRawTransactionVerbose(txHash *chainhash.Hash) (*btcjson.TxRawResult, error) + func (c *Client) GetRawTransactionVerboseAsync(txHash *chainhash.Hash) FutureGetRawTransactionVerboseResult + func (c *Client) GetReceivedByAccount(account string) (amt.Amount, error) + func (c *Client) GetReceivedByAccountAsync(account string) FutureGetReceivedByAccountResult + func (c *Client) GetReceivedByAccountMinConf(account string, minConfirms int) (amt.Amount, error) + func (c *Client) GetReceivedByAccountMinConfAsync(account string, minConfirms int) FutureGetReceivedByAccountResult + func (c *Client) GetReceivedByAddress(address btcaddr.Address) (amt.Amount, error) + func (c *Client) GetReceivedByAddressAsync(address btcaddr.Address) FutureGetReceivedByAddressResult + func (c *Client) GetReceivedByAddressMinConf(address btcaddr.Address, minConfirms int) (amt.Amount, error) + func (c *Client) GetReceivedByAddressMinConfAsync(address btcaddr.Address, minConfirms int) FutureGetReceivedByAddressResult + func (c *Client) GetTransaction(txHash *chainhash.Hash) (*btcjson.GetTransactionResult, error) + func (c *Client) GetTransactionAsync(txHash *chainhash.Hash) FutureGetTransactionResult + func (c *Client) GetTxOut(txHash *chainhash.Hash, index uint32, mempool bool) (*btcjson.GetTxOutResult, error) + func (c *Client) GetTxOutAsync(txHash *chainhash.Hash, index uint32, mempool bool) FutureGetTxOutResult + func (c *Client) GetUnconfirmedBalance(account string) (amt.Amount, error) + func (c *Client) GetUnconfirmedBalanceAsync(account string) FutureGetUnconfirmedBalanceResult + func (c *Client) GetWork() (*btcjson.GetWorkResult, error) + func (c *Client) GetWorkAsync() FutureGetWork + func (c *Client) GetWorkSubmit(data string) (bool, error) + func (c *Client) GetWorkSubmitAsync(data string) FutureGetWorkSubmit + func (c *Client) ImportAddress(address string) (e error) + func (c *Client) ImportAddressAsync(address string) FutureImportAddressResult + func (c *Client) ImportAddressRescan(address string, account string, rescan bool) (e error) + func (c *Client) ImportAddressRescanAsync(address string, account string, rescan bool) FutureImportAddressResult + func (c *Client) ImportPrivKey(privKeyWIF *util.WIF) (e error) + func (c *Client) ImportPrivKeyAsync(privKeyWIF *util.WIF) FutureImportPrivKeyResult + func (c *Client) ImportPrivKeyLabel(privKeyWIF *util.WIF, label string) (e error) + func (c *Client) ImportPrivKeyLabelAsync(privKeyWIF *util.WIF, label string) FutureImportPrivKeyResult + func (c *Client) ImportPrivKeyRescan(privKeyWIF *util.WIF, label string, rescan bool) (e error) + func (c *Client) ImportPrivKeyRescanAsync(privKeyWIF *util.WIF, label string, rescan bool) FutureImportPrivKeyResult + func (c *Client) ImportPubKey(pubKey string) (e error) + func (c *Client) ImportPubKeyAsync(pubKey string) FutureImportPubKeyResult + func (c *Client) ImportPubKeyRescan(pubKey string, rescan bool) (e error) + func (c *Client) ImportPubKeyRescanAsync(pubKey string, rescan bool) FutureImportPubKeyResult + func (c *Client) InvalidateBlock(blockHash *chainhash.Hash) (e error) + func (c *Client) InvalidateBlockAsync(blockHash *chainhash.Hash) FutureInvalidateBlockResult + func (c *Client) KeyPoolRefill() (e error) + func (c *Client) KeyPoolRefillAsync() FutureKeyPoolRefillResult + func (c *Client) KeyPoolRefillSize(newSize uint) (e error) + func (c *Client) KeyPoolRefillSizeAsync(newSize uint) FutureKeyPoolRefillResult + func (c *Client) ListAccounts() (map[string]amt.Amount, error) + func (c *Client) ListAccountsAsync() FutureListAccountsResult + func (c *Client) ListAccountsMinConf(minConfirms int) (map[string]amt.Amount, error) + func (c *Client) ListAccountsMinConfAsync(minConfirms int) FutureListAccountsResult + func (c *Client) ListAddressTransactions(addresses []btcaddr.Address, account string) ([]btcjson.ListTransactionsResult, error) + func (c *Client) ListAddressTransactionsAsync(addresses []btcaddr.Address, account string) FutureListAddressTransactionsResult + func (c *Client) ListLockUnspent() ([]*wire.OutPoint, error) + func (c *Client) ListLockUnspentAsync() FutureListLockUnspentResult + func (c *Client) ListReceivedByAccount() ([]btcjson.ListReceivedByAccountResult, error) + func (c *Client) ListReceivedByAccountAsync() FutureListReceivedByAccountResult + func (c *Client) ListReceivedByAccountIncludeEmpty(minConfirms int, includeEmpty bool) ([]btcjson.ListReceivedByAccountResult, error) + func (c *Client) ListReceivedByAccountIncludeEmptyAsync(minConfirms int, includeEmpty bool) FutureListReceivedByAccountResult + func (c *Client) ListReceivedByAccountMinConf(minConfirms int) ([]btcjson.ListReceivedByAccountResult, error) + func (c *Client) ListReceivedByAccountMinConfAsync(minConfirms int) FutureListReceivedByAccountResult + func (c *Client) ListReceivedByAddress() ([]btcjson.ListReceivedByAddressResult, error) + func (c *Client) ListReceivedByAddressAsync() FutureListReceivedByAddressResult + func (c *Client) ListReceivedByAddressIncludeEmpty(minConfirms int, includeEmpty bool) ([]btcjson.ListReceivedByAddressResult, error) + func (c *Client) ListReceivedByAddressIncludeEmptyAsync(minConfirms int, includeEmpty bool) FutureListReceivedByAddressResult + func (c *Client) ListReceivedByAddressMinConf(minConfirms int) ([]btcjson.ListReceivedByAddressResult, error) + func (c *Client) ListReceivedByAddressMinConfAsync(minConfirms int) FutureListReceivedByAddressResult + func (c *Client) ListSinceBlock(blockHash *chainhash.Hash) (*btcjson.ListSinceBlockResult, error) + func (c *Client) ListSinceBlockAsync(blockHash *chainhash.Hash) FutureListSinceBlockResult + func (c *Client) ListSinceBlockMinConf(blockHash *chainhash.Hash, minConfirms int) (*btcjson.ListSinceBlockResult, error) + func (c *Client) ListSinceBlockMinConfAsync(blockHash *chainhash.Hash, minConfirms int) FutureListSinceBlockResult + func (c *Client) ListTransactions(account string) ([]btcjson.ListTransactionsResult, error) + func (c *Client) ListTransactionsAsync(account string) FutureListTransactionsResult + func (c *Client) ListTransactionsCount(account string, count int) ([]btcjson.ListTransactionsResult, error) + func (c *Client) ListTransactionsCountAsync(account string, count int) FutureListTransactionsResult + func (c *Client) ListTransactionsCountFrom(account string, count, from int) ([]btcjson.ListTransactionsResult, error) + func (c *Client) ListTransactionsCountFromAsync(account string, count, from int) FutureListTransactionsResult + func (c *Client) ListUnspent() ([]btcjson.ListUnspentResult, error) + func (c *Client) ListUnspentAsync() FutureListUnspentResult + func (c *Client) ListUnspentMin(minConf int) ([]btcjson.ListUnspentResult, error) + func (c *Client) ListUnspentMinAsync(minConf int) FutureListUnspentResult + func (c *Client) ListUnspentMinMax(minConf, maxConf int) ([]btcjson.ListUnspentResult, error) + func (c *Client) ListUnspentMinMaxAddresses(minConf, maxConf int, addrs []btcaddr.Address) ([]btcjson.ListUnspentResult, error) + func (c *Client) ListUnspentMinMaxAddressesAsync(minConf, maxConf int, addrs []btcaddr.Address) FutureListUnspentResult + func (c *Client) ListUnspentMinMaxAsync(minConf, maxConf int) FutureListUnspentResult + func (c *Client) LoadTxFilter(reload bool, addresses []btcaddr.Address, outPoints []wire.OutPoint) (e error) + func (c *Client) LoadTxFilterAsync(reload bool, addresses []btcaddr.Address, outPoints []wire.OutPoint) FutureLoadTxFilterResult + func (c *Client) LockUnspent(unlock bool, ops []*wire.OutPoint) (e error) + func (c *Client) LockUnspentAsync(unlock bool, ops []*wire.OutPoint) FutureLockUnspentResult + func (c *Client) Move(fromAccount, toAccount string, amount amt.Amount) (bool, error) + func (c *Client) MoveAsync(fromAccount, toAccount string, amount amt.Amount) FutureMoveResult + func (c *Client) MoveComment(fromAccount, toAccount string, amount amt.Amount, minConf int, comment string) (bool, error) + func (c *Client) MoveCommentAsync(fromAccount, toAccount string, amount amt.Amount, minConfirms int, ...) FutureMoveResult + func (c *Client) MoveMinConf(fromAccount, toAccount string, amount amt.Amount, minConf int) (bool, error) + func (c *Client) MoveMinConfAsync(fromAccount, toAccount string, amount amt.Amount, minConfirms int) FutureMoveResult + func (c *Client) NextID() uint64 + func (c *Client) Node(command btcjson.NodeSubCmd, host string, connectSubCmd *string) (e error) + func (c *Client) NodeAsync(command btcjson.NodeSubCmd, host string, connectSubCmd *string) FutureNodeResult + func (c *Client) NotifyBlocks() (e error) + func (c *Client) NotifyBlocksAsync() FutureNotifyBlocksResult + func (c *Client) NotifyNewTransactions(verbose bool) (e error) + func (c *Client) NotifyNewTransactionsAsync(verbose bool) FutureNotifyNewTransactionsResult + func (c *Client) NotifyReceived(addresses []btcaddr.Address) (e error) + func (c *Client) NotifyReceivedAsync(addresses []btcaddr.Address) FutureNotifyReceivedResult + func (c *Client) NotifySpent(outpoints []*wire.OutPoint) (e error) + func (c *Client) NotifySpentAsync(outpoints []*wire.OutPoint) FutureNotifySpentResult + func (c *Client) Ping() (e error) + func (c *Client) PingAsync() FuturePingResult + func (c *Client) RawRequest(method string, params []js.RawMessage) (js.RawMessage, error) + func (c *Client) RawRequestAsync(method string, params []js.RawMessage) FutureRawResult + func (c *Client) RenameAccount(oldAccount, newAccount string) (e error) + func (c *Client) RenameAccountAsync(oldAccount, newAccount string) FutureRenameAccountResult + func (c *Client) Rescan(startBlock *chainhash.Hash, addresses []btcaddr.Address, ...) (e error) + func (c *Client) RescanAsync(startBlock *chainhash.Hash, addresses []btcaddr.Address, ...) FutureRescanResult + func (c *Client) RescanBlocks(blockHashes []chainhash.Hash) ([]btcjson.RescannedBlock, error) + func (c *Client) RescanBlocksAsync(blockHashes []chainhash.Hash) FutureRescanBlocksResult + func (c *Client) RescanEndBlockAsync(startBlock *chainhash.Hash, addresses []btcaddr.Address, ...) FutureRescanResult + func (c *Client) RescanEndHeight(startBlock *chainhash.Hash, addresses []btcaddr.Address, ...) (e error) + func (c *Client) SearchRawTransactions(address btcaddr.Address, skip, count int, reverse bool, filterAddrs []string) ([]*wire.MsgTx, error) + func (c *Client) SearchRawTransactionsAsync(address btcaddr.Address, skip, count int, reverse bool, filterAddrs []string) FutureSearchRawTransactionsResult + func (c *Client) SearchRawTransactionsVerbose(address btcaddr.Address, skip, count int, includePrevOut, reverse bool, ...) ([]*btcjson.SearchRawTransactionsResult, error) + func (c *Client) SearchRawTransactionsVerboseAsync(address btcaddr.Address, skip, count int, includePrevOut, reverse bool, ...) FutureSearchRawTransactionsVerboseResult + func (c *Client) SendFrom(fromAccount string, toAddress btcaddr.Address, amount amt.Amount) (*chainhash.Hash, error) + func (c *Client) SendFromAsync(fromAccount string, toAddress btcaddr.Address, amount amt.Amount) FutureSendFromResult + func (c *Client) SendFromComment(fromAccount string, toAddress btcaddr.Address, amount amt.Amount, ...) (*chainhash.Hash, error) + func (c *Client) SendFromCommentAsync(fromAccount string, toAddress btcaddr.Address, amount amt.Amount, ...) FutureSendFromResult + func (c *Client) SendFromMinConf(fromAccount string, toAddress btcaddr.Address, amount amt.Amount, ...) (*chainhash.Hash, error) + func (c *Client) SendFromMinConfAsync(fromAccount string, toAddress btcaddr.Address, amount amt.Amount, ...) FutureSendFromResult + func (c *Client) SendMany(fromAccount string, amounts map[btcaddr.Address]amt.Amount) (*chainhash.Hash, error) + func (c *Client) SendManyAsync(fromAccount string, amounts map[btcaddr.Address]amt.Amount) FutureSendManyResult + func (c *Client) SendManyComment(fromAccount string, amounts map[btcaddr.Address]amt.Amount, minConfirms int, ...) (*chainhash.Hash, error) + func (c *Client) SendManyCommentAsync(fromAccount string, amounts map[btcaddr.Address]amt.Amount, minConfirms int, ...) FutureSendManyResult + func (c *Client) SendManyMinConf(fromAccount string, amounts map[btcaddr.Address]amt.Amount, minConfirms int) (*chainhash.Hash, error) + func (c *Client) SendManyMinConfAsync(fromAccount string, amounts map[btcaddr.Address]amt.Amount, minConfirms int) FutureSendManyResult + func (c *Client) SendRawTransaction(tx *wire.MsgTx, allowHighFees bool) (*chainhash.Hash, error) + func (c *Client) SendRawTransactionAsync(tx *wire.MsgTx, allowHighFees bool) FutureSendRawTransactionResult + func (c *Client) SendToAddress(address btcaddr.Address, amount amt.Amount) (*chainhash.Hash, error) + func (c *Client) SendToAddressAsync(address btcaddr.Address, amount amt.Amount) FutureSendToAddressResult + func (c *Client) SendToAddressComment(address btcaddr.Address, amount amt.Amount, comment, commentTo string) (*chainhash.Hash, error) + func (c *Client) SendToAddressCommentAsync(address btcaddr.Address, amount amt.Amount, comment, commentTo string) FutureSendToAddressResult + func (c *Client) Session() (*btcjson.SessionResult, error) + func (c *Client) SessionAsync() FutureSessionResult + func (c *Client) SetAccount(address btcaddr.Address, account string) (e error) + func (c *Client) SetAccountAsync(address btcaddr.Address, account string) FutureSetAccountResult + func (c *Client) SetGenerate(enable bool, numCPUs int) (e error) + func (c *Client) SetGenerateAsync(enable bool, numCPUs int) FutureSetGenerateResult + func (c *Client) SetTxFee(fee amt.Amount) (e error) + func (c *Client) SetTxFeeAsync(fee amt.Amount) FutureSetTxFeeResult + func (c *Client) Shutdown() + func (c *Client) SignMessage(address btcaddr.Address, message string) (string, error) + func (c *Client) SignMessageAsync(address btcaddr.Address, message string) FutureSignMessageResult + func (c *Client) SignRawTransaction(tx *wire.MsgTx) (*wire.MsgTx, bool, error) + func (c *Client) SignRawTransaction2(tx *wire.MsgTx, inputs []btcjson.RawTxInput) (*wire.MsgTx, bool, error) + func (c *Client) SignRawTransaction2Async(tx *wire.MsgTx, inputs []btcjson.RawTxInput) FutureSignRawTransactionResult + func (c *Client) SignRawTransaction3(tx *wire.MsgTx, inputs []btcjson.RawTxInput, privKeysWIF []string) (*wire.MsgTx, bool, error) + func (c *Client) SignRawTransaction3Async(tx *wire.MsgTx, inputs []btcjson.RawTxInput, privKeysWIF []string) FutureSignRawTransactionResult + func (c *Client) SignRawTransaction4(tx *wire.MsgTx, inputs []btcjson.RawTxInput, privKeysWIF []string, ...) (*wire.MsgTx, bool, error) + func (c *Client) SignRawTransaction4Async(tx *wire.MsgTx, inputs []btcjson.RawTxInput, privKeysWIF []string, ...) FutureSignRawTransactionResult + func (c *Client) SignRawTransactionAsync(tx *wire.MsgTx) FutureSignRawTransactionResult + func (c *Client) SubmitBlock(block *block.Block, options *btcjson.SubmitBlockOptions) (e error) + func (c *Client) SubmitBlockAsync(block *block.Block, options *btcjson.SubmitBlockOptions) FutureSubmitBlockResult + func (c *Client) ValidateAddress(address btcaddr.Address) (*btcjson.ValidateAddressWalletResult, error) + func (c *Client) ValidateAddressAsync(address btcaddr.Address) FutureValidateAddressResult + func (c *Client) VerifyChain() (bool, error) + func (c *Client) VerifyChainAsync() FutureVerifyChainResult + func (c *Client) VerifyChainBlocks(checkLevel, numBlocks int32) (bool, error) + func (c *Client) VerifyChainBlocksAsync(checkLevel, numBlocks int32) FutureVerifyChainResult + func (c *Client) VerifyChainLevel(checkLevel int32) (bool, error) + func (c *Client) VerifyChainLevelAsync(checkLevel int32) FutureVerifyChainResult + func (c *Client) VerifyMessage(address btcaddr.Address, signature, message string) (bool, error) + func (c *Client) VerifyMessageAsync(address btcaddr.Address, signature, message string) FutureVerifyMessageResult + func (c *Client) Version() (map[string]btcjson.VersionResult, error) + func (c *Client) VersionAsync() FutureVersionResult + func (c *Client) WaitForShutdown() + func (c *Client) WalletLock() (e error) + func (c *Client) WalletLockAsync() FutureWalletLockResult + func (c *Client) WalletPassphrase(passphrase string, timeoutSecs int64) (e error) + func (c *Client) WalletPassphraseChange(old, new string) (e error) + func (c *Client) WalletPassphraseChangeAsync(old, new string) FutureWalletPassphraseChangeResult + type ConnConfig struct + Certificates []byte + DisableAutoReconnect bool + DisableConnectOnNew bool + EnableBCInfoHacks bool + Endpoint string + HTTPPostMode bool + Host string + Pass string + Proxy string + ProxyPass string + ProxyUser string + TLS bool + User string + type FutureAddMultisigAddressResult chan *response + func (r FutureAddMultisigAddressResult) Receive() (btcaddr.Address, error) + type FutureAddNodeResult chan *response + func (r FutureAddNodeResult) Receive() (e error) + type FutureAddWitnessAddressResult chan *response + func (r FutureAddWitnessAddressResult) Receive() (btcaddr.Address, error) + type FutureCreateEncryptedWalletResult chan *response + func (r FutureCreateEncryptedWalletResult) Receive() (e error) + type FutureCreateMultisigResult chan *response + func (r FutureCreateMultisigResult) Receive() (*btcjson.CreateMultiSigResult, error) + type FutureCreateNewAccountResult chan *response + func (r FutureCreateNewAccountResult) Receive() (e error) + type FutureCreateRawTransactionResult chan *response + func (r FutureCreateRawTransactionResult) Receive() (*wire.MsgTx, error) + type FutureDebugLevelResult chan *response + func (r FutureDebugLevelResult) Receive() (string, error) + type FutureDecodeRawTransactionResult chan *response + func (r FutureDecodeRawTransactionResult) Receive() (*btcjson.TxRawResult, error) + type FutureDecodeScriptResult chan *response + func (r FutureDecodeScriptResult) Receive() (*btcjson.DecodeScriptResult, error) + type FutureDumpPrivKeyResult chan *response + func (r FutureDumpPrivKeyResult) Receive() (*util.WIF, error) + type FutureEstimateFeeResult chan *response + func (r FutureEstimateFeeResult) Receive() (float64, error) + type FutureExportWatchingWalletResult chan *response + func (r FutureExportWatchingWalletResult) Receive() ([]byte, []byte, error) + type FutureGenerateResult chan *response + func (r FutureGenerateResult) Receive() ([]*chainhash.Hash, error) + type FutureGetAccountAddressResult chan *response + func (r FutureGetAccountAddressResult) Receive() (btcaddr.Address, error) + type FutureGetAccountResult chan *response + func (r FutureGetAccountResult) Receive() (string, error) + type FutureGetAddedNodeInfoNoDNSResult chan *response + func (r FutureGetAddedNodeInfoNoDNSResult) Receive() ([]string, error) + type FutureGetAddedNodeInfoResult chan *response + func (r FutureGetAddedNodeInfoResult) Receive() ([]btcjson.GetAddedNodeInfoResult, error) + type FutureGetAddressesByAccountResult chan *response + func (r FutureGetAddressesByAccountResult) Receive() ([]btcaddr.Address, error) + type FutureGetBalanceParseResult chan *response + func (r FutureGetBalanceParseResult) Receive() (amt.Amount, error) + type FutureGetBalanceResult chan *response + func (r FutureGetBalanceResult) Receive() (amt.Amount, error) + type FutureGetBestBlockHashResult chan *response + func (r FutureGetBestBlockHashResult) Receive() (*chainhash.Hash, error) + type FutureGetBestBlockResult chan *response + func (r FutureGetBestBlockResult) Receive() (*chainhash.Hash, int32, error) + type FutureGetBlockChainInfoResult chan *response + func (r FutureGetBlockChainInfoResult) Receive() (*btcjson.GetBlockChainInfoResult, error) + type FutureGetBlockCountResult chan *response + func (r FutureGetBlockCountResult) Receive() (int64, error) + type FutureGetBlockHashResult chan *response + func (r FutureGetBlockHashResult) Receive() (*chainhash.Hash, error) + type FutureGetBlockHeaderResult chan *response + func (r FutureGetBlockHeaderResult) Receive() (*wire.BlockHeader, error) + type FutureGetBlockHeaderVerboseResult chan *response + func (r FutureGetBlockHeaderVerboseResult) Receive() (*btcjson.GetBlockHeaderVerboseResult, error) + type FutureGetBlockResult chan *response + func (r FutureGetBlockResult) Receive() (*wire.Block, error) + type FutureGetBlockVerboseResult chan *response + func (r FutureGetBlockVerboseResult) Receive() (*btcjson.GetBlockVerboseResult, error) + type FutureGetCFilterHeaderResult chan *response + func (r FutureGetCFilterHeaderResult) Receive() (*wire.MsgCFHeaders, error) + type FutureGetCFilterResult chan *response + func (r FutureGetCFilterResult) Receive() (*wire.MsgCFilter, error) + type FutureGetConnectionCountResult chan *response + func (r FutureGetConnectionCountResult) Receive() (int64, error) + type FutureGetCurrentNetResult chan *response + func (r FutureGetCurrentNetResult) Receive() (wire.BitcoinNet, error) + type FutureGetDifficultyResult chan *response + func (r FutureGetDifficultyResult) Receive() (float64, error) + type FutureGetGenerateResult chan *response + func (r FutureGetGenerateResult) Receive() (bool, error) + type FutureGetHashesPerSecResult chan *response + func (r FutureGetHashesPerSecResult) Receive() (int64, error) + type FutureGetHeadersResult chan *response + func (r FutureGetHeadersResult) Receive() ([]wire.BlockHeader, error) + type FutureGetInfoResult chan *response + func (r FutureGetInfoResult) Receive() (*btcjson.InfoWalletResult, error) + type FutureGetMempoolEntryResult chan *response + func (r FutureGetMempoolEntryResult) Receive() (*btcjson.GetMempoolEntryResult, error) + type FutureGetMiningInfoResult chan *response + func (r FutureGetMiningInfoResult) Receive() (*btcjson.GetMiningInfoResult, error) + type FutureGetNetTotalsResult chan *response + func (r FutureGetNetTotalsResult) Receive() (*btcjson.GetNetTotalsResult, error) + type FutureGetNetworkHashPS chan *response + func (r FutureGetNetworkHashPS) Receive() (int64, error) + type FutureGetNewAddressResult chan *response + func (r FutureGetNewAddressResult) Receive() (btcaddr.Address, error) + type FutureGetPeerInfoResult chan *response + func (r FutureGetPeerInfoResult) Receive() ([]btcjson.GetPeerInfoResult, error) + type FutureGetRawChangeAddressResult chan *response + func (r FutureGetRawChangeAddressResult) Receive() (btcaddr.Address, error) + type FutureGetRawMempoolResult chan *response + func (r FutureGetRawMempoolResult) Receive() ([]*chainhash.Hash, error) + type FutureGetRawMempoolVerboseResult chan *response + func (r FutureGetRawMempoolVerboseResult) Receive() (map[string]btcjson.GetRawMempoolVerboseResult, error) + type FutureGetRawTransactionResult chan *response + func (r FutureGetRawTransactionResult) Receive() (*util.Tx, error) + type FutureGetRawTransactionVerboseResult chan *response + func (r FutureGetRawTransactionVerboseResult) Receive() (*btcjson.TxRawResult, error) + type FutureGetReceivedByAccountResult chan *response + func (r FutureGetReceivedByAccountResult) Receive() (amt.Amount, error) + type FutureGetReceivedByAddressResult chan *response + func (r FutureGetReceivedByAddressResult) Receive() (amt.Amount, error) + type FutureGetTransactionResult chan *response + func (r FutureGetTransactionResult) Receive() (*btcjson.GetTransactionResult, error) + type FutureGetTxOutResult chan *response + func (r FutureGetTxOutResult) Receive() (*btcjson.GetTxOutResult, error) + type FutureGetUnconfirmedBalanceResult chan *response + func (r FutureGetUnconfirmedBalanceResult) Receive() (amt.Amount, error) + type FutureGetWork chan *response + func (r FutureGetWork) Receive() (*btcjson.GetWorkResult, error) + type FutureGetWorkSubmit chan *response + func (r FutureGetWorkSubmit) Receive() (bool, error) + type FutureImportAddressResult chan *response + func (r FutureImportAddressResult) Receive() (e error) + type FutureImportPrivKeyResult chan *response + func (r FutureImportPrivKeyResult) Receive() (e error) + type FutureImportPubKeyResult chan *response + func (r FutureImportPubKeyResult) Receive() (e error) + type FutureInvalidateBlockResult chan *response + func (r FutureInvalidateBlockResult) Receive() (e error) + type FutureKeyPoolRefillResult chan *response + func (r FutureKeyPoolRefillResult) Receive() (e error) + type FutureListAccountsResult chan *response + func (r FutureListAccountsResult) Receive() (map[string]amt.Amount, error) + type FutureListAddressTransactionsResult chan *response + func (r FutureListAddressTransactionsResult) Receive() ([]btcjson.ListTransactionsResult, error) + type FutureListLockUnspentResult chan *response + func (r FutureListLockUnspentResult) Receive() ([]*wire.OutPoint, error) + type FutureListReceivedByAccountResult chan *response + func (r FutureListReceivedByAccountResult) Receive() ([]btcjson.ListReceivedByAccountResult, error) + type FutureListReceivedByAddressResult chan *response + func (r FutureListReceivedByAddressResult) Receive() ([]btcjson.ListReceivedByAddressResult, error) + type FutureListSinceBlockResult chan *response + func (r FutureListSinceBlockResult) Receive() (*btcjson.ListSinceBlockResult, error) + type FutureListTransactionsResult chan *response + func (r FutureListTransactionsResult) Receive() ([]btcjson.ListTransactionsResult, error) + type FutureListUnspentResult chan *response + func (r FutureListUnspentResult) Receive() ([]btcjson.ListUnspentResult, error) + type FutureLoadTxFilterResult chan *response + func (r FutureLoadTxFilterResult) Receive() (e error) + type FutureLockUnspentResult chan *response + func (r FutureLockUnspentResult) Receive() (e error) + type FutureMoveResult chan *response + func (r FutureMoveResult) Receive() (bool, error) + type FutureNodeResult chan *response + func (r FutureNodeResult) Receive() (e error) + type FutureNotifyBlocksResult chan *response + func (r FutureNotifyBlocksResult) Receive() (e error) + type FutureNotifyNewTransactionsResult chan *response + func (r FutureNotifyNewTransactionsResult) Receive() (e error) + type FutureNotifyReceivedResult chan *response + func (r FutureNotifyReceivedResult) Receive() (e error) + type FutureNotifySpentResult chan *response + func (r FutureNotifySpentResult) Receive() (e error) + type FuturePingResult chan *response + func (r FuturePingResult) Receive() (e error) + type FutureRawResult chan *response + func (r FutureRawResult) Receive() (js.RawMessage, error) + type FutureRenameAccountResult chan *response + func (r FutureRenameAccountResult) Receive() (e error) + type FutureRescanBlocksResult chan *response + func (r FutureRescanBlocksResult) Receive() ([]btcjson.RescannedBlock, error) + type FutureRescanResult chan *response + func (r FutureRescanResult) Receive() (e error) + type FutureSearchRawTransactionsResult chan *response + func (r FutureSearchRawTransactionsResult) Receive() ([]*wire.MsgTx, error) + type FutureSearchRawTransactionsVerboseResult chan *response + func (r FutureSearchRawTransactionsVerboseResult) Receive() ([]*btcjson.SearchRawTransactionsResult, error) + type FutureSendFromResult chan *response + func (r FutureSendFromResult) Receive() (*chainhash.Hash, error) + type FutureSendManyResult chan *response + func (r FutureSendManyResult) Receive() (*chainhash.Hash, error) + type FutureSendRawTransactionResult chan *response + func (r FutureSendRawTransactionResult) Receive() (*chainhash.Hash, error) + type FutureSendToAddressResult chan *response + func (r FutureSendToAddressResult) Receive() (*chainhash.Hash, error) + type FutureSessionResult chan *response + func (r FutureSessionResult) Receive() (*btcjson.SessionResult, error) + type FutureSetAccountResult chan *response + func (r FutureSetAccountResult) Receive() (e error) + type FutureSetGenerateResult chan *response + func (r FutureSetGenerateResult) Receive() (e error) + type FutureSetTxFeeResult chan *response + func (r FutureSetTxFeeResult) Receive() (e error) + type FutureSignMessageResult chan *response + func (r FutureSignMessageResult) Receive() (string, error) + type FutureSignRawTransactionResult chan *response + func (r FutureSignRawTransactionResult) Receive() (*wire.MsgTx, bool, error) + type FutureSubmitBlockResult chan *response + func (r FutureSubmitBlockResult) Receive() (e error) + type FutureValidateAddressResult chan *response + func (r FutureValidateAddressResult) Receive() (*btcjson.ValidateAddressWalletResult, error) + type FutureVerifyChainResult chan *response + func (r FutureVerifyChainResult) Receive() (bool, error) + type FutureVerifyMessageResult chan *response + func (r FutureVerifyMessageResult) Receive() (bool, error) + type FutureVersionResult chan *response + func (r FutureVersionResult) Receive() (map[string]btcjson.VersionResult, error) + type FutureWalletLockResult chan *response + func (r FutureWalletLockResult) Receive() (e error) + type FutureWalletPassphraseChangeResult chan *response + func (r FutureWalletPassphraseChangeResult) Receive() (e error) + type NotificationHandlers struct + OnAccountBalance func(account string, balance amt.Amount, confirmed bool) + OnBlockConnected func(hash *chainhash.Hash, height int32, t time.Time) + OnBlockDisconnected func(hash *chainhash.Hash, height int32, t time.Time) + OnClientConnected func() + OnFilteredBlockConnected func(height int32, header *wire.BlockHeader, txs []*util.Tx) + OnFilteredBlockDisconnected func(height int32, header *wire.BlockHeader) + OnPodConnected func(connected bool) + OnRecvTx func(transaction *util.Tx, details *btcjson.BlockDetails) + OnRedeemingTx func(transaction *util.Tx, details *btcjson.BlockDetails) + OnRelevantTxAccepted func(transaction []byte) + OnRescanFinished func(hash *chainhash.Hash, height int32, blkTime time.Time) + OnRescanProgress func(hash *chainhash.Hash, height int32, blkTime time.Time) + OnTxAccepted func(hash *chainhash.Hash, amount amt.Amount) + OnTxAcceptedVerbose func(txDetails *btcjson.TxRawResult) + OnUnknownNotification func(method string, params []js.RawMessage) + OnWalletLockState func(locked bool) + type SigHashType string + const SigHashAll + const SigHashAllAnyoneCanPay + const SigHashNone + const SigHashNoneAnyoneCanPay + const SigHashSingle + const SigHashSingleAnyoneCanPay + func (s SigHashType) String() string