Versions in this module Expand all Collapse all v0 v0.9.1 Apr 30, 2019 v0.9.0 Apr 29, 2019 Changes in this version + var ErrClientAlreadyConnected = errors.New(...) + 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(...) + var ErrNotWebsocketClient = errors.New(...) + var ErrWebsocketsRequired = errors.New(...) + var Log = cl.NewSubSystem("rpc/client", ll.DEFAULT) + func UseLogger(logger *cl.SubSystem) + type AddNodeCommand string + const ANAdd + const ANOneTry + const ANRemove + func (cmd AddNodeCommand) String() string + type Client struct + func New(config *ConnConfig, ntfnHandlers *NotificationHandlers) (*Client, error) + func (c *Client) AddMultisigAddress(requiredSigs int, addresses []util.Address, account string) (util.Address, error) + func (c *Client) AddMultisigAddressAsync(requiredSigs int, addresses []util.Address, account string) FutureAddMultisigAddressResult + func (c *Client) AddNode(host string, command AddNodeCommand) error + func (c *Client) AddNodeAsync(host string, command AddNodeCommand) FutureAddNodeResult + func (c *Client) AddWitnessAddress(address string) (util.Address, error) + func (c *Client) AddWitnessAddressAsync(address string) FutureAddWitnessAddressResult + func (c *Client) Connect(tries int) error + func (c *Client) CreateEncryptedWallet(passphrase string) error + func (c *Client) CreateEncryptedWalletAsync(passphrase string) FutureCreateEncryptedWalletResult + func (c *Client) CreateMultisig(requiredSigs int, addresses []util.Address) (*json.CreateMultiSigResult, error) + func (c *Client) CreateMultisigAsync(requiredSigs int, addresses []util.Address) FutureCreateMultisigResult + func (c *Client) CreateNewAccount(account string) error + func (c *Client) CreateNewAccountAsync(account string) FutureCreateNewAccountResult + func (c *Client) CreateRawTransaction(inputs []json.TransactionInput, amounts map[util.Address]util.Amount, ...) (*wire.MsgTx, error) + func (c *Client) CreateRawTransactionAsync(inputs []json.TransactionInput, amounts map[util.Address]util.Amount, ...) FutureCreateRawTransactionResult + func (c *Client) DebugLevel(levelSpec string) (string, error) + func (c *Client) DebugLevelAsync(levelSpec string) FutureDebugLevelResult + func (c *Client) DecodeRawTransaction(serializedTx []byte) (*json.TxRawResult, error) + func (c *Client) DecodeRawTransactionAsync(serializedTx []byte) FutureDecodeRawTransactionResult + func (c *Client) DecodeScript(serializedScript []byte) (*json.DecodeScriptResult, error) + func (c *Client) DecodeScriptAsync(serializedScript []byte) FutureDecodeScriptResult + func (c *Client) Disconnect() + func (c *Client) Disconnected() bool + func (c *Client) DumpPrivKey(address util.Address) (*util.WIF, error) + func (c *Client) DumpPrivKeyAsync(address util.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 util.Address) (string, error) + func (c *Client) GetAccountAddress(account string) (util.Address, error) + func (c *Client) GetAccountAddressAsync(account string) FutureGetAccountAddressResult + func (c *Client) GetAccountAsync(address util.Address) FutureGetAccountResult + func (c *Client) GetAddedNodeInfo(peer string) ([]json.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) ([]util.Address, error) + func (c *Client) GetAddressesByAccountAsync(account string) FutureGetAddressesByAccountResult + func (c *Client) GetBalance(account string) (util.Amount, error) + func (c *Client) GetBalanceAsync(account string) FutureGetBalanceResult + func (c *Client) GetBalanceMinConf(account string, minConfirms int) (util.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.MsgBlock, error) + func (c *Client) GetBlockAsync(blockHash *chainhash.Hash) FutureGetBlockResult + func (c *Client) GetBlockChainInfo() (*json.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) (*json.GetBlockHeaderVerboseResult, error) + func (c *Client) GetBlockHeaderVerboseAsync(blockHash *chainhash.Hash) FutureGetBlockHeaderVerboseResult + func (c *Client) GetBlockVerbose(blockHash *chainhash.Hash) (*json.GetBlockVerboseResult, error) + func (c *Client) GetBlockVerboseAsync(blockHash *chainhash.Hash) FutureGetBlockVerboseResult + func (c *Client) GetBlockVerboseTx(blockHash *chainhash.Hash) (*json.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() (*json.InfoWalletResult, error) + func (c *Client) GetInfoAsync() FutureGetInfoResult + func (c *Client) GetMempoolEntry(txHash string) (*json.GetMempoolEntryResult, error) + func (c *Client) GetMempoolEntryAsync(txHash string) FutureGetMempoolEntryResult + func (c *Client) GetMiningInfo() (*json.GetMiningInfoResult, error) + func (c *Client) GetMiningInfoAsync() FutureGetMiningInfoResult + func (c *Client) GetNetTotals() (*json.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) (util.Address, error) + func (c *Client) GetNewAddressAsync(account string) FutureGetNewAddressResult + func (c *Client) GetPeerInfo() ([]json.GetPeerInfoResult, error) + func (c *Client) GetPeerInfoAsync() FutureGetPeerInfoResult + func (c *Client) GetRawChangeAddress(account string) (util.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]json.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) (*json.TxRawResult, error) + func (c *Client) GetRawTransactionVerboseAsync(txHash *chainhash.Hash) FutureGetRawTransactionVerboseResult + func (c *Client) GetReceivedByAccount(account string) (util.Amount, error) + func (c *Client) GetReceivedByAccountAsync(account string) FutureGetReceivedByAccountResult + func (c *Client) GetReceivedByAccountMinConf(account string, minConfirms int) (util.Amount, error) + func (c *Client) GetReceivedByAccountMinConfAsync(account string, minConfirms int) FutureGetReceivedByAccountResult + func (c *Client) GetReceivedByAddress(address util.Address) (util.Amount, error) + func (c *Client) GetReceivedByAddressAsync(address util.Address) FutureGetReceivedByAddressResult + func (c *Client) GetReceivedByAddressMinConf(address util.Address, minConfirms int) (util.Amount, error) + func (c *Client) GetReceivedByAddressMinConfAsync(address util.Address, minConfirms int) FutureGetReceivedByAddressResult + func (c *Client) GetTransaction(txHash *chainhash.Hash) (*json.GetTransactionResult, error) + func (c *Client) GetTransactionAsync(txHash *chainhash.Hash) FutureGetTransactionResult + func (c *Client) GetTxOut(txHash *chainhash.Hash, index uint32, mempool bool) (*json.GetTxOutResult, error) + func (c *Client) GetTxOutAsync(txHash *chainhash.Hash, index uint32, mempool bool) FutureGetTxOutResult + func (c *Client) GetUnconfirmedBalance(account string) (util.Amount, error) + func (c *Client) GetUnconfirmedBalanceAsync(account string) FutureGetUnconfirmedBalanceResult + func (c *Client) GetWork() (*json.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) error + func (c *Client) ImportAddressAsync(address string) FutureImportAddressResult + func (c *Client) ImportAddressRescan(address string, account string, rescan bool) error + func (c *Client) ImportAddressRescanAsync(address string, account string, rescan bool) FutureImportAddressResult + func (c *Client) ImportPrivKey(privKeyWIF *util.WIF) error + func (c *Client) ImportPrivKeyAsync(privKeyWIF *util.WIF) FutureImportPrivKeyResult + func (c *Client) ImportPrivKeyLabel(privKeyWIF *util.WIF, label string) error + func (c *Client) ImportPrivKeyLabelAsync(privKeyWIF *util.WIF, label string) FutureImportPrivKeyResult + func (c *Client) ImportPrivKeyRescan(privKeyWIF *util.WIF, label string, rescan bool) error + func (c *Client) ImportPrivKeyRescanAsync(privKeyWIF *util.WIF, label string, rescan bool) FutureImportPrivKeyResult + func (c *Client) ImportPubKey(pubKey string) error + func (c *Client) ImportPubKeyAsync(pubKey string) FutureImportPubKeyResult + func (c *Client) ImportPubKeyRescan(pubKey string, rescan bool) error + func (c *Client) ImportPubKeyRescanAsync(pubKey string, rescan bool) FutureImportPubKeyResult + func (c *Client) InvalidateBlock(blockHash *chainhash.Hash) error + func (c *Client) InvalidateBlockAsync(blockHash *chainhash.Hash) FutureInvalidateBlockResult + func (c *Client) KeyPoolRefill() error + func (c *Client) KeyPoolRefillAsync() FutureKeyPoolRefillResult + func (c *Client) KeyPoolRefillSize(newSize uint) error + func (c *Client) KeyPoolRefillSizeAsync(newSize uint) FutureKeyPoolRefillResult + func (c *Client) ListAccounts() (map[string]util.Amount, error) + func (c *Client) ListAccountsAsync() FutureListAccountsResult + func (c *Client) ListAccountsMinConf(minConfirms int) (map[string]util.Amount, error) + func (c *Client) ListAccountsMinConfAsync(minConfirms int) FutureListAccountsResult + func (c *Client) ListAddressTransactions(addresses []util.Address, account string) ([]json.ListTransactionsResult, error) + func (c *Client) ListAddressTransactionsAsync(addresses []util.Address, account string) FutureListAddressTransactionsResult + func (c *Client) ListLockUnspent() ([]*wire.OutPoint, error) + func (c *Client) ListLockUnspentAsync() FutureListLockUnspentResult + func (c *Client) ListReceivedByAccount() ([]json.ListReceivedByAccountResult, error) + func (c *Client) ListReceivedByAccountAsync() FutureListReceivedByAccountResult + func (c *Client) ListReceivedByAccountIncludeEmpty(minConfirms int, includeEmpty bool) ([]json.ListReceivedByAccountResult, error) + func (c *Client) ListReceivedByAccountIncludeEmptyAsync(minConfirms int, includeEmpty bool) FutureListReceivedByAccountResult + func (c *Client) ListReceivedByAccountMinConf(minConfirms int) ([]json.ListReceivedByAccountResult, error) + func (c *Client) ListReceivedByAccountMinConfAsync(minConfirms int) FutureListReceivedByAccountResult + func (c *Client) ListReceivedByAddress() ([]json.ListReceivedByAddressResult, error) + func (c *Client) ListReceivedByAddressAsync() FutureListReceivedByAddressResult + func (c *Client) ListReceivedByAddressIncludeEmpty(minConfirms int, includeEmpty bool) ([]json.ListReceivedByAddressResult, error) + func (c *Client) ListReceivedByAddressIncludeEmptyAsync(minConfirms int, includeEmpty bool) FutureListReceivedByAddressResult + func (c *Client) ListReceivedByAddressMinConf(minConfirms int) ([]json.ListReceivedByAddressResult, error) + func (c *Client) ListReceivedByAddressMinConfAsync(minConfirms int) FutureListReceivedByAddressResult + func (c *Client) ListSinceBlock(blockHash *chainhash.Hash) (*json.ListSinceBlockResult, error) + func (c *Client) ListSinceBlockAsync(blockHash *chainhash.Hash) FutureListSinceBlockResult + func (c *Client) ListSinceBlockMinConf(blockHash *chainhash.Hash, minConfirms int) (*json.ListSinceBlockResult, error) + func (c *Client) ListSinceBlockMinConfAsync(blockHash *chainhash.Hash, minConfirms int) FutureListSinceBlockResult + func (c *Client) ListTransactions(account string) ([]json.ListTransactionsResult, error) + func (c *Client) ListTransactionsAsync(account string) FutureListTransactionsResult + func (c *Client) ListTransactionsCount(account string, count int) ([]json.ListTransactionsResult, error) + func (c *Client) ListTransactionsCountAsync(account string, count int) FutureListTransactionsResult + func (c *Client) ListTransactionsCountFrom(account string, count, from int) ([]json.ListTransactionsResult, error) + func (c *Client) ListTransactionsCountFromAsync(account string, count, from int) FutureListTransactionsResult + func (c *Client) ListUnspent() ([]json.ListUnspentResult, error) + func (c *Client) ListUnspentAsync() FutureListUnspentResult + func (c *Client) ListUnspentMin(minConf int) ([]json.ListUnspentResult, error) + func (c *Client) ListUnspentMinAsync(minConf int) FutureListUnspentResult + func (c *Client) ListUnspentMinMax(minConf, maxConf int) ([]json.ListUnspentResult, error) + func (c *Client) ListUnspentMinMaxAddresses(minConf, maxConf int, addrs []util.Address) ([]json.ListUnspentResult, error) + func (c *Client) ListUnspentMinMaxAddressesAsync(minConf, maxConf int, addrs []util.Address) FutureListUnspentResult + func (c *Client) ListUnspentMinMaxAsync(minConf, maxConf int) FutureListUnspentResult + func (c *Client) LoadTxFilter(reload bool, addresses []util.Address, outPoints []wire.OutPoint) error + func (c *Client) LoadTxFilterAsync(reload bool, addresses []util.Address, outPoints []wire.OutPoint) FutureLoadTxFilterResult + func (c *Client) LockUnspent(unlock bool, ops []*wire.OutPoint) error + func (c *Client) LockUnspentAsync(unlock bool, ops []*wire.OutPoint) FutureLockUnspentResult + func (c *Client) Move(fromAccount, toAccount string, amount util.Amount) (bool, error) + func (c *Client) MoveAsync(fromAccount, toAccount string, amount util.Amount) FutureMoveResult + func (c *Client) MoveComment(fromAccount, toAccount string, amount util.Amount, minConf int, comment string) (bool, error) + func (c *Client) MoveCommentAsync(fromAccount, toAccount string, amount util.Amount, minConfirms int, ...) FutureMoveResult + func (c *Client) MoveMinConf(fromAccount, toAccount string, amount util.Amount, minConf int) (bool, error) + func (c *Client) MoveMinConfAsync(fromAccount, toAccount string, amount util.Amount, minConfirms int) FutureMoveResult + func (c *Client) NextID() uint64 + func (c *Client) Node(command json.NodeSubCmd, host string, connectSubCmd *string) error + func (c *Client) NodeAsync(command json.NodeSubCmd, host string, connectSubCmd *string) FutureNodeResult + func (c *Client) NotifyBlocks() error + func (c *Client) NotifyBlocksAsync() FutureNotifyBlocksResult + func (c *Client) NotifyNewTransactions(verbose bool) error + func (c *Client) NotifyNewTransactionsAsync(verbose bool) FutureNotifyNewTransactionsResult + func (c *Client) NotifyReceived(addresses []util.Address) error + func (c *Client) NotifyReceivedAsync(addresses []util.Address) FutureNotifyReceivedResult + func (c *Client) NotifySpent(outpoints []*wire.OutPoint) error + func (c *Client) NotifySpentAsync(outpoints []*wire.OutPoint) FutureNotifySpentResult + func (c *Client) Ping() 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) error + func (c *Client) RenameAccountAsync(oldAccount, newAccount string) FutureRenameAccountResult + func (c *Client) Rescan(startBlock *chainhash.Hash, addresses []util.Address, ...) error + func (c *Client) RescanAsync(startBlock *chainhash.Hash, addresses []util.Address, ...) FutureRescanResult + func (c *Client) RescanBlocks(blockHashes []chainhash.Hash) ([]json.RescannedBlock, error) + func (c *Client) RescanBlocksAsync(blockHashes []chainhash.Hash) FutureRescanBlocksResult + func (c *Client) RescanEndBlockAsync(startBlock *chainhash.Hash, addresses []util.Address, ...) FutureRescanResult + func (c *Client) RescanEndHeight(startBlock *chainhash.Hash, addresses []util.Address, ...) error + func (c *Client) SearchRawTransactions(address util.Address, skip, count int, reverse bool, filterAddrs []string) ([]*wire.MsgTx, error) + func (c *Client) SearchRawTransactionsAsync(address util.Address, skip, count int, reverse bool, filterAddrs []string) FutureSearchRawTransactionsResult + func (c *Client) SearchRawTransactionsVerbose(address util.Address, skip, count int, includePrevOut, reverse bool, ...) ([]*json.SearchRawTransactionsResult, error) + func (c *Client) SearchRawTransactionsVerboseAsync(address util.Address, skip, count int, includePrevOut, reverse bool, ...) FutureSearchRawTransactionsVerboseResult + func (c *Client) SendFrom(fromAccount string, toAddress util.Address, amount util.Amount) (*chainhash.Hash, error) + func (c *Client) SendFromAsync(fromAccount string, toAddress util.Address, amount util.Amount) FutureSendFromResult + func (c *Client) SendFromComment(fromAccount string, toAddress util.Address, amount util.Amount, ...) (*chainhash.Hash, error) + func (c *Client) SendFromCommentAsync(fromAccount string, toAddress util.Address, amount util.Amount, ...) FutureSendFromResult + func (c *Client) SendFromMinConf(fromAccount string, toAddress util.Address, amount util.Amount, ...) (*chainhash.Hash, error) + func (c *Client) SendFromMinConfAsync(fromAccount string, toAddress util.Address, amount util.Amount, ...) FutureSendFromResult + func (c *Client) SendMany(fromAccount string, amounts map[util.Address]util.Amount) (*chainhash.Hash, error) + func (c *Client) SendManyAsync(fromAccount string, amounts map[util.Address]util.Amount) FutureSendManyResult + func (c *Client) SendManyComment(fromAccount string, amounts map[util.Address]util.Amount, minConfirms int, ...) (*chainhash.Hash, error) + func (c *Client) SendManyCommentAsync(fromAccount string, amounts map[util.Address]util.Amount, minConfirms int, ...) FutureSendManyResult + func (c *Client) SendManyMinConf(fromAccount string, amounts map[util.Address]util.Amount, minConfirms int) (*chainhash.Hash, error) + func (c *Client) SendManyMinConfAsync(fromAccount string, amounts map[util.Address]util.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 util.Address, amount util.Amount) (*chainhash.Hash, error) + func (c *Client) SendToAddressAsync(address util.Address, amount util.Amount) FutureSendToAddressResult + func (c *Client) SendToAddressComment(address util.Address, amount util.Amount, comment, commentTo string) (*chainhash.Hash, error) + func (c *Client) SendToAddressCommentAsync(address util.Address, amount util.Amount, comment, commentTo string) FutureSendToAddressResult + func (c *Client) Session() (*json.SessionResult, error) + func (c *Client) SessionAsync() FutureSessionResult + func (c *Client) SetAccount(address util.Address, account string) error + func (c *Client) SetAccountAsync(address util.Address, account string) FutureSetAccountResult + func (c *Client) SetGenerate(enable bool, numCPUs int) error + func (c *Client) SetGenerateAsync(enable bool, numCPUs int) FutureSetGenerateResult + func (c *Client) SetTxFee(fee util.Amount) error + func (c *Client) SetTxFeeAsync(fee util.Amount) FutureSetTxFeeResult + func (c *Client) Shutdown() + func (c *Client) SignMessage(address util.Address, message string) (string, error) + func (c *Client) SignMessageAsync(address util.Address, message string) FutureSignMessageResult + func (c *Client) SignRawTransaction(tx *wire.MsgTx) (*wire.MsgTx, bool, error) + func (c *Client) SignRawTransaction2(tx *wire.MsgTx, inputs []json.RawTxInput) (*wire.MsgTx, bool, error) + func (c *Client) SignRawTransaction2Async(tx *wire.MsgTx, inputs []json.RawTxInput) FutureSignRawTransactionResult + func (c *Client) SignRawTransaction3(tx *wire.MsgTx, inputs []json.RawTxInput, privKeysWIF []string) (*wire.MsgTx, bool, error) + func (c *Client) SignRawTransaction3Async(tx *wire.MsgTx, inputs []json.RawTxInput, privKeysWIF []string) FutureSignRawTransactionResult + func (c *Client) SignRawTransaction4(tx *wire.MsgTx, inputs []json.RawTxInput, privKeysWIF []string, ...) (*wire.MsgTx, bool, error) + func (c *Client) SignRawTransaction4Async(tx *wire.MsgTx, inputs []json.RawTxInput, privKeysWIF []string, ...) FutureSignRawTransactionResult + func (c *Client) SignRawTransactionAsync(tx *wire.MsgTx) FutureSignRawTransactionResult + func (c *Client) SubmitBlock(block *util.Block, options *json.SubmitBlockOptions) error + func (c *Client) SubmitBlockAsync(block *util.Block, options *json.SubmitBlockOptions) FutureSubmitBlockResult + func (c *Client) ValidateAddress(address util.Address) (*json.ValidateAddressWalletResult, error) + func (c *Client) ValidateAddressAsync(address util.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 util.Address, signature, message string) (bool, error) + func (c *Client) VerifyMessageAsync(address util.Address, signature, message string) FutureVerifyMessageResult + func (c *Client) Version() (map[string]json.VersionResult, error) + func (c *Client) VersionAsync() FutureVersionResult + func (c *Client) WaitForShutdown() + func (c *Client) WalletLock() error + func (c *Client) WalletLockAsync() FutureWalletLockResult + func (c *Client) WalletPassphrase(passphrase string, timeoutSecs int64) error + func (c *Client) WalletPassphraseChange(old, new string) 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() (util.Address, error) + type FutureAddNodeResult chan *response + func (r FutureAddNodeResult) Receive() error + type FutureAddWitnessAddressResult chan *response + func (r FutureAddWitnessAddressResult) Receive() (util.Address, error) + type FutureCreateEncryptedWalletResult chan *response + func (r FutureCreateEncryptedWalletResult) Receive() error + type FutureCreateMultisigResult chan *response + func (r FutureCreateMultisigResult) Receive() (*json.CreateMultiSigResult, error) + type FutureCreateNewAccountResult chan *response + func (r FutureCreateNewAccountResult) Receive() 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() (*json.TxRawResult, error) + type FutureDecodeScriptResult chan *response + func (r FutureDecodeScriptResult) Receive() (*json.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() (util.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() ([]json.GetAddedNodeInfoResult, error) + type FutureGetAddressesByAccountResult chan *response + func (r FutureGetAddressesByAccountResult) Receive() ([]util.Address, error) + type FutureGetBalanceParseResult chan *response + func (r FutureGetBalanceParseResult) Receive() (util.Amount, error) + type FutureGetBalanceResult chan *response + func (r FutureGetBalanceResult) Receive() (util.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() (*json.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() (*json.GetBlockHeaderVerboseResult, error) + type FutureGetBlockResult chan *response + func (r FutureGetBlockResult) Receive() (*wire.MsgBlock, error) + type FutureGetBlockVerboseResult chan *response + func (r FutureGetBlockVerboseResult) Receive() (*json.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() (*json.InfoWalletResult, error) + type FutureGetMempoolEntryResult chan *response + func (r FutureGetMempoolEntryResult) Receive() (*json.GetMempoolEntryResult, error) + type FutureGetMiningInfoResult chan *response + func (r FutureGetMiningInfoResult) Receive() (*json.GetMiningInfoResult, error) + type FutureGetNetTotalsResult chan *response + func (r FutureGetNetTotalsResult) Receive() (*json.GetNetTotalsResult, error) + type FutureGetNetworkHashPS chan *response + func (r FutureGetNetworkHashPS) Receive() (int64, error) + type FutureGetNewAddressResult chan *response + func (r FutureGetNewAddressResult) Receive() (util.Address, error) + type FutureGetPeerInfoResult chan *response + func (r FutureGetPeerInfoResult) Receive() ([]json.GetPeerInfoResult, error) + type FutureGetRawChangeAddressResult chan *response + func (r FutureGetRawChangeAddressResult) Receive() (util.Address, error) + type FutureGetRawMempoolResult chan *response + func (r FutureGetRawMempoolResult) Receive() ([]*chainhash.Hash, error) + type FutureGetRawMempoolVerboseResult chan *response + func (r FutureGetRawMempoolVerboseResult) Receive() (map[string]json.GetRawMempoolVerboseResult, error) + type FutureGetRawTransactionResult chan *response + func (r FutureGetRawTransactionResult) Receive() (*util.Tx, error) + type FutureGetRawTransactionVerboseResult chan *response + func (r FutureGetRawTransactionVerboseResult) Receive() (*json.TxRawResult, error) + type FutureGetReceivedByAccountResult chan *response + func (r FutureGetReceivedByAccountResult) Receive() (util.Amount, error) + type FutureGetReceivedByAddressResult chan *response + func (r FutureGetReceivedByAddressResult) Receive() (util.Amount, error) + type FutureGetTransactionResult chan *response + func (r FutureGetTransactionResult) Receive() (*json.GetTransactionResult, error) + type FutureGetTxOutResult chan *response + func (r FutureGetTxOutResult) Receive() (*json.GetTxOutResult, error) + type FutureGetUnconfirmedBalanceResult chan *response + func (r FutureGetUnconfirmedBalanceResult) Receive() (util.Amount, error) + type FutureGetWork chan *response + func (r FutureGetWork) Receive() (*json.GetWorkResult, error) + type FutureGetWorkSubmit chan *response + func (r FutureGetWorkSubmit) Receive() (bool, error) + type FutureImportAddressResult chan *response + func (r FutureImportAddressResult) Receive() error + type FutureImportPrivKeyResult chan *response + func (r FutureImportPrivKeyResult) Receive() error + type FutureImportPubKeyResult chan *response + func (r FutureImportPubKeyResult) Receive() error + type FutureInvalidateBlockResult chan *response + func (r FutureInvalidateBlockResult) Receive() error + type FutureKeyPoolRefillResult chan *response + func (r FutureKeyPoolRefillResult) Receive() error + type FutureListAccountsResult chan *response + func (r FutureListAccountsResult) Receive() (map[string]util.Amount, error) + type FutureListAddressTransactionsResult chan *response + func (r FutureListAddressTransactionsResult) Receive() ([]json.ListTransactionsResult, error) + type FutureListLockUnspentResult chan *response + func (r FutureListLockUnspentResult) Receive() ([]*wire.OutPoint, error) + type FutureListReceivedByAccountResult chan *response + func (r FutureListReceivedByAccountResult) Receive() ([]json.ListReceivedByAccountResult, error) + type FutureListReceivedByAddressResult chan *response + func (r FutureListReceivedByAddressResult) Receive() ([]json.ListReceivedByAddressResult, error) + type FutureListSinceBlockResult chan *response + func (r FutureListSinceBlockResult) Receive() (*json.ListSinceBlockResult, error) + type FutureListTransactionsResult chan *response + func (r FutureListTransactionsResult) Receive() ([]json.ListTransactionsResult, error) + type FutureListUnspentResult chan *response + func (r FutureListUnspentResult) Receive() ([]json.ListUnspentResult, error) + type FutureLoadTxFilterResult chan *response + func (r FutureLoadTxFilterResult) Receive() error + type FutureLockUnspentResult chan *response + func (r FutureLockUnspentResult) Receive() error + type FutureMoveResult chan *response + func (r FutureMoveResult) Receive() (bool, error) + type FutureNodeResult chan *response + func (r FutureNodeResult) Receive() error + type FutureNotifyBlocksResult chan *response + func (r FutureNotifyBlocksResult) Receive() error + type FutureNotifyNewTransactionsResult chan *response + func (r FutureNotifyNewTransactionsResult) Receive() error + type FutureNotifyReceivedResult chan *response + func (r FutureNotifyReceivedResult) Receive() error + type FutureNotifySpentResult chan *response + func (r FutureNotifySpentResult) Receive() error + type FuturePingResult chan *response + func (r FuturePingResult) Receive() error + type FutureRawResult chan *response + func (r FutureRawResult) Receive() (js.RawMessage, error) + type FutureRenameAccountResult chan *response + func (r FutureRenameAccountResult) Receive() error + type FutureRescanBlocksResult chan *response + func (r FutureRescanBlocksResult) Receive() ([]json.RescannedBlock, error) + type FutureRescanResult chan *response + func (r FutureRescanResult) Receive() error + type FutureSearchRawTransactionsResult chan *response + func (r FutureSearchRawTransactionsResult) Receive() ([]*wire.MsgTx, error) + type FutureSearchRawTransactionsVerboseResult chan *response + func (r FutureSearchRawTransactionsVerboseResult) Receive() ([]*json.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() (*json.SessionResult, error) + type FutureSetAccountResult chan *response + func (r FutureSetAccountResult) Receive() error + type FutureSetGenerateResult chan *response + func (r FutureSetGenerateResult) Receive() error + type FutureSetTxFeeResult chan *response + func (r FutureSetTxFeeResult) Receive() 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() error + type FutureValidateAddressResult chan *response + func (r FutureValidateAddressResult) Receive() (*json.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]json.VersionResult, error) + type FutureWalletLockResult chan *response + func (r FutureWalletLockResult) Receive() error + type FutureWalletPassphraseChangeResult chan *response + func (r FutureWalletPassphraseChangeResult) Receive() error + type NotificationHandlers struct + OnAccountBalance func(account string, balance util.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 *json.BlockDetails) + OnRedeemingTx func(transaction *util.Tx, details *json.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 util.Amount) + OnTxAcceptedVerbose func(txDetails *json.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