Versions in this module Expand all Collapse all v1 v1.9.25 Mar 25, 2021 v1.9.24 Mar 24, 2021 Changes in this version + const MaxRequestSize + var D logg.LevelPrinter = logg.GetLogPrinterSet(subsystem) + var E logg.LevelPrinter = logg.GetLogPrinterSet(subsystem) + var ErrAccountNameNotFound = btcjson.RPCError + var ErrAddressNotInWallet = btcjson.RPCError + var ErrNeedPositiveAmount = InvalidParameterError + var ErrNeedPositiveMinconf = InvalidParameterError + var ErrNoAuth = errors.New("no auth") + var ErrNoTransactionInfo = btcjson.RPCError + var ErrNotImportedAccount = btcjson.RPCError + var ErrReservedAccountName = btcjson.RPCError + var ErrUnloadedWallet = btcjson.RPCError + var ErrWalletUnlockNeeded = btcjson.RPCError + var F logg.LevelPrinter = logg.GetLogPrinterSet(subsystem) + var HelpDescs map[string]string + var HelpDescsMutex sync.Mutex + var I logg.LevelPrinter = logg.GetLogPrinterSet(subsystem) + var LocaleHelpDescs = map[string]func() map[string]string + var RPCHandlers = map[string]struct{ ... } + var RequestUsages = "addmultisigaddress nrequired [\"key\",...] (\"account\")\ncreatemultisig nrequired [\"key\",...]\ndumpprivkey \"address\"\ngetaccount \"address\"\ngetaccountaddress \"account\"\ngetaddressesbyaccount \"account\"\ngetbalance (\"account\" minconf=1)\ngetbestblockhash\ngetblockcount\ngetinfo\ngetnewaddress (\"account\")\ngetrawchangeaddress (\"account\")\ngetreceivedbyaccount \"account\" (minconf=1)\ngetreceivedbyaddress \"address\" (minconf=1)\ngettransaction \"txid\" (includewatchonly=false)\nhelp (\"command\")\nimportprivkey \"privkey\" (\"label\" rescan=true)\nkeypoolrefill (newsize=100)\nlistaccounts (minconf=1)\nlistlockunspent\nlistreceivedbyaccount (minconf=1 includeempty=false includewatchonly=false)\nlistreceivedbyaddress (minconf=1 includeempty=false includewatchonly=false)\nlistsinceblock (\"blockhash\" targetconfirmations=1 includewatchonly=false)\nlisttransactions (\"account\" count=10 from=0 includewatchonly=false)\nlistunspent (minconf=1 maxconf=9999999 [\"address\",...])\nlockunspent unlock [{\"txid\":\"value\",\"vout\":n},...]\nsendfrom \"fromaccount\" \"toaddress\" amount (minconf=1 \"comment\" \"commentto\")\nsendmany \"fromaccount\" {\"address\":amount,...} (minconf=1 \"comment\")\nsendtoaddress \"address\" amount (\"comment\" \"commentto\")\nsettxfee amount\nsignmessage \"address\" \"message\"\nsignrawtransaction \"rawtx\" ([{\"txid\":\"value\",\"vout\":n,\"scriptpubkey\":\"value\",\"redeemscript\":\"value\"},...] [\"privkey\",...] flags=\"ALL\")\nvalidateaddress \"address\"\nverifymessage \"address\" \"signature\" \"message\"\nwalletlock\nwalletpassphrase \"passphrase\" timeout\nwalletpassphrasechange \"oldpassphrase\" \"newpassphrase\"\ncreatenewaccount \"account\"\nexportwatchingwallet (\"account\" download=false)\ngetbestblock\ngetunconfirmedbalance (\"account\")\nlistaddresstransactions [\"address\",...] (\"account\")\nlistalltransactions (\"account\")\nrenameaccount \"oldaccount\" \"newaccount\"\nwalletislocked" + var T logg.LevelPrinter = logg.GetLogPrinterSet(subsystem) + var W logg.LevelPrinter = logg.GetLogPrinterSet(subsystem) + func AddMultiSigAddress(icmd interface{}, w *wallet.Wallet, chainClient ...*chainclient.RPCClient) (interface{}, error) + func Confirms(txHeight, curHeight int32) int32 + func CreateMultiSig(icmd interface{}, w *wallet.Wallet, chainClient ...*chainclient.RPCClient) (interface{}, error) + func CreateNewAccount(icmd interface{}, w *wallet.Wallet, chainClient ...*chainclient.RPCClient) (interface{}, error) + func DecodeAddress(s string, params *chaincfg.Params) (btcaddr.Address, error) + func DecodeHexStr(hexStr string) ([]byte, error) + func DropWalletHistory(w *wallet.Wallet, cfg *podcfg.Config) func(c *cli.Context) (e error) + func DumpPrivKey(icmd interface{}, w *wallet.Wallet, chainClient ...*chainclient.RPCClient) (interface{}, error) + func GetAccount(icmd interface{}, w *wallet.Wallet, chainClient ...*chainclient.RPCClient) (interface{}, error) + func GetAccountAddress(icmd interface{}, w *wallet.Wallet, chainClient ...*chainclient.RPCClient) (interface{}, error) + func GetAddressesByAccount(icmd interface{}, w *wallet.Wallet, chainClient ...*chainclient.RPCClient) (interface{}, error) + func GetBalance(icmd interface{}, w *wallet.Wallet, chainClient ...*chainclient.RPCClient) (interface{}, error) + func GetBestBlock(icmd interface{}, w *wallet.Wallet, chainClient ...*chainclient.RPCClient) (interface{}, error) + func GetBestBlockHash(icmd interface{}, w *wallet.Wallet, chainClient ...*chainclient.RPCClient) (interface{}, error) + func GetBlockCount(icmd interface{}, w *wallet.Wallet, chainClient ...*chainclient.RPCClient) (interface{}, error) + func GetInfo(icmd interface{}, w *wallet.Wallet, chainClient ...*chainclient.RPCClient) (interface{}, error) + func GetNewAddress(icmd interface{}, w *wallet.Wallet, chainClient ...*chainclient.RPCClient) (interface{}, error) + func GetRawChangeAddress(icmd interface{}, w *wallet.Wallet, chainClient ...*chainclient.RPCClient) (interface{}, error) + func GetReceivedByAccount(icmd interface{}, w *wallet.Wallet, chainClient ...*chainclient.RPCClient) (ii interface{}, e error) + func GetReceivedByAddress(icmd interface{}, w *wallet.Wallet, chainClient ...*chainclient.RPCClient) (interface{}, error) + func GetTransaction(icmd interface{}, w *wallet.Wallet, chainClient ...*chainclient.RPCClient) (interface{}, error) + func GetUnconfirmedBalance(icmd interface{}, w *wallet.Wallet, chainClient ...*chainclient.RPCClient) (interface{}, error) + func HTTPBasicAuth(username, password string) []byte + func HandleDropWalletHistory(icmd interface{}, w *wallet.Wallet, chainClient ...*chainclient.RPCClient) (out interface{}, e error) + func Help(icmd interface{}, w *wallet.Wallet, chainClient *chainclient.RPCClient) (interface{}, error) + func HelpDescsEnUS() map[string]string + func HelpNoChainRPC(icmd interface{}, w *wallet.Wallet, chainClient ...*chainclient.RPCClient) (interface{}, error) + func HelpWithChainRPC(icmd interface{}, w *wallet.Wallet, chainClient ...*chainclient.RPCClient) (interface{}, error) + func IDPointer(id interface{}) (p *interface{}) + func ImportPrivKey(icmd interface{}, w *wallet.Wallet, chainClient ...*chainclient.RPCClient) (interface{}, error) + func IsNilOrEmpty(s *string) bool + func JSONAuthFail(w http.ResponseWriter) + func JSONError(e error) *btcjson.RPCError + func KeypoolRefill(icmd interface{}, w *wallet.Wallet, chainClient ...*chainclient.RPCClient) (interface{}, error) + func ListAccounts(icmd interface{}, w *wallet.Wallet, chainClient ...*chainclient.RPCClient) (interface{}, error) + func ListAddressTransactions(icmd interface{}, w *wallet.Wallet, chainClient ...*chainclient.RPCClient) (interface{}, error) + func ListAllTransactions(icmd interface{}, w *wallet.Wallet, chainClient ...*chainclient.RPCClient) (interface{}, error) + func ListLockUnspent(icmd interface{}, w *wallet.Wallet, chainClient ...*chainclient.RPCClient) (interface{}, error) + func ListReceivedByAccount(icmd interface{}, w *wallet.Wallet, chainClient ...*chainclient.RPCClient) (interface{}, error) + func ListReceivedByAddress(icmd interface{}, w *wallet.Wallet, chainClient ...*chainclient.RPCClient) (interface{}, error) + func ListSinceBlock(icmd interface{}, w *wallet.Wallet, cc ...*chainclient.RPCClient) (interface{}, error) + func ListTransactions(icmd interface{}, w *wallet.Wallet, chainClient ...*chainclient.RPCClient) (txs interface{}, e error) + func ListUnspent(icmd interface{}, w *wallet.Wallet, chainClient ...*chainclient.RPCClient) (interface{}, error) + func LockUnspent(icmd interface{}, w *wallet.Wallet, chainClient ...*chainclient.RPCClient) (interface{}, error) + func MakeMultiSigScript(w *wallet.Wallet, keys []string, nRequired int) ([]byte, error) + func MakeOutputs(pairs map[string]amt.Amount, chainParams *chaincfg.Params) ([]*wire.TxOut, error) + func MakeResponse(id, result interface{}, e error) btcjson.Response + func RenameAccount(icmd interface{}, w *wallet.Wallet, chainClient ...*chainclient.RPCClient) (interface{}, error) + func RunAPI(chainRPC *chainclient.RPCClient, wallet *wallet.Wallet, quit qu.C) + func SendFrom(icmd interface{}, w *wallet.Wallet, chainClient *chainclient.RPCClient) (interface{}, error) + func SendMany(icmd interface{}, w *wallet.Wallet, chainClient ...*chainclient.RPCClient) (interface{}, error) + func SendPairs(w *wallet.Wallet, amounts map[string]amt.Amount, account uint32, minconf int32, ...) (string, error) + func SendToAddress(icmd interface{}, w *wallet.Wallet, chainClient ...*chainclient.RPCClient) (interface{}, error) + func SetTxFee(icmd interface{}, w *wallet.Wallet, chainClient ...*chainclient.RPCClient) (interface{}, error) + func SignMessage(icmd interface{}, w *wallet.Wallet, chainClient ...*chainclient.RPCClient) (interface{}, error) + func SignRawTransaction(icmd interface{}, w *wallet.Wallet, cc ...*chainclient.RPCClient) (interface{}, error) + func Throttled(threshold int64, h http.Handler) http.Handler + func ThrottledFn(threshold int64, f http.HandlerFunc) http.Handler + func Unimplemented(interface{}, *wallet.Wallet) (interface{}, error) + func Unsupported(interface{}, *wallet.Wallet) (interface{}, error) + func ValidateAddress(icmd interface{}, w *wallet.Wallet, chainClient ...*chainclient.RPCClient) (interface{}, error) + func VerifyMessage(icmd interface{}, w *wallet.Wallet, chainClient ...*chainclient.RPCClient) (interface{}, error) + func WalletIsLocked(icmd interface{}, w *wallet.Wallet, chainClient ...*chainclient.RPCClient) (interface{}, error) + func WalletLock(icmd interface{}, w *wallet.Wallet, chainClient ...*chainclient.RPCClient) (interface{}, error) + func WalletPassphrase(icmd interface{}, w *wallet.Wallet, chainClient ...*chainclient.RPCClient) (interface{}, error) + func WalletPassphraseChange(icmd interface{}, w *wallet.Wallet, chainClient ...*chainclient.RPCClient) (interface{}, error) + type API struct + Ch interface{} + Params interface{} + Result interface{} + func (a API) AddMultiSigAddress(cmd *btcjson.AddMultisigAddressCmd) (e error) + func (a API) AddMultiSigAddressCheck() (isNew bool) + func (a API) AddMultiSigAddressGetRes() (out *string, e error) + func (a API) AddMultiSigAddressWait(cmd *btcjson.AddMultisigAddressCmd) (out *string, e error) + func (a API) CreateMultiSig(cmd *btcjson.CreateMultisigCmd) (e error) + func (a API) CreateMultiSigCheck() (isNew bool) + func (a API) CreateMultiSigGetRes() (out *btcjson.CreateMultiSigResult, e error) + func (a API) CreateMultiSigWait(cmd *btcjson.CreateMultisigCmd) (out *btcjson.CreateMultiSigResult, e error) + func (a API) CreateNewAccount(cmd *btcjson.CreateNewAccountCmd) (e error) + func (a API) CreateNewAccountCheck() (isNew bool) + func (a API) CreateNewAccountGetRes() (out *None, e error) + func (a API) CreateNewAccountWait(cmd *btcjson.CreateNewAccountCmd) (out *None, e error) + func (a API) DumpPrivKey(cmd *btcjson.DumpPrivKeyCmd) (e error) + func (a API) DumpPrivKeyCheck() (isNew bool) + func (a API) DumpPrivKeyGetRes() (out *string, e error) + func (a API) DumpPrivKeyWait(cmd *btcjson.DumpPrivKeyCmd) (out *string, e error) + func (a API) GetAccount(cmd *btcjson.GetAccountCmd) (e error) + func (a API) GetAccountAddress(cmd *btcjson.GetAccountAddressCmd) (e error) + func (a API) GetAccountAddressCheck() (isNew bool) + func (a API) GetAccountAddressGetRes() (out *string, e error) + func (a API) GetAccountAddressWait(cmd *btcjson.GetAccountAddressCmd) (out *string, e error) + func (a API) GetAccountCheck() (isNew bool) + func (a API) GetAccountGetRes() (out *string, e error) + func (a API) GetAccountWait(cmd *btcjson.GetAccountCmd) (out *string, e error) + func (a API) GetAddressesByAccount(cmd *btcjson.GetAddressesByAccountCmd) (e error) + func (a API) GetAddressesByAccountCheck() (isNew bool) + func (a API) GetAddressesByAccountGetRes() (out *[]string, e error) + func (a API) GetAddressesByAccountWait(cmd *btcjson.GetAddressesByAccountCmd) (out *[]string, e error) + func (a API) GetBalance(cmd *btcjson.GetBalanceCmd) (e error) + func (a API) GetBalanceCheck() (isNew bool) + func (a API) GetBalanceGetRes() (out *float64, e error) + func (a API) GetBalanceWait(cmd *btcjson.GetBalanceCmd) (out *float64, e error) + func (a API) GetBestBlock(cmd *None) (e error) + func (a API) GetBestBlockCheck() (isNew bool) + func (a API) GetBestBlockGetRes() (out *btcjson.GetBestBlockResult, e error) + func (a API) GetBestBlockHash(cmd *None) (e error) + func (a API) GetBestBlockHashCheck() (isNew bool) + func (a API) GetBestBlockHashGetRes() (out *string, e error) + func (a API) GetBestBlockHashWait(cmd *None) (out *string, e error) + func (a API) GetBestBlockWait(cmd *None) (out *btcjson.GetBestBlockResult, e error) + func (a API) GetBlockCount(cmd *None) (e error) + func (a API) GetBlockCountCheck() (isNew bool) + func (a API) GetBlockCountGetRes() (out *int32, e error) + func (a API) GetBlockCountWait(cmd *None) (out *int32, e error) + func (a API) GetInfo(cmd *None) (e error) + func (a API) GetInfoCheck() (isNew bool) + func (a API) GetInfoGetRes() (out *btcjson.InfoWalletResult, e error) + func (a API) GetInfoWait(cmd *None) (out *btcjson.InfoWalletResult, e error) + func (a API) GetNewAddress(cmd *btcjson.GetNewAddressCmd) (e error) + func (a API) GetNewAddressCheck() (isNew bool) + func (a API) GetNewAddressGetRes() (out *string, e error) + func (a API) GetNewAddressWait(cmd *btcjson.GetNewAddressCmd) (out *string, e error) + func (a API) GetRawChangeAddress(cmd *btcjson.GetRawChangeAddressCmd) (e error) + func (a API) GetRawChangeAddressCheck() (isNew bool) + func (a API) GetRawChangeAddressGetRes() (out *string, e error) + func (a API) GetRawChangeAddressWait(cmd *btcjson.GetRawChangeAddressCmd) (out *string, e error) + func (a API) GetReceivedByAccount(cmd *btcjson.GetReceivedByAccountCmd) (e error) + func (a API) GetReceivedByAccountCheck() (isNew bool) + func (a API) GetReceivedByAccountGetRes() (out *float64, e error) + func (a API) GetReceivedByAccountWait(cmd *btcjson.GetReceivedByAccountCmd) (out *float64, e error) + func (a API) GetReceivedByAddress(cmd *btcjson.GetReceivedByAddressCmd) (e error) + func (a API) GetReceivedByAddressCheck() (isNew bool) + func (a API) GetReceivedByAddressGetRes() (out *float64, e error) + func (a API) GetReceivedByAddressWait(cmd *btcjson.GetReceivedByAddressCmd) (out *float64, e error) + func (a API) GetTransaction(cmd *btcjson.GetTransactionCmd) (e error) + func (a API) GetTransactionCheck() (isNew bool) + func (a API) GetTransactionGetRes() (out *btcjson.GetTransactionResult, e error) + func (a API) GetTransactionWait(cmd *btcjson.GetTransactionCmd) (out *btcjson.GetTransactionResult, e error) + func (a API) GetUnconfirmedBalance(cmd *btcjson.GetUnconfirmedBalanceCmd) (e error) + func (a API) GetUnconfirmedBalanceCheck() (isNew bool) + func (a API) GetUnconfirmedBalanceGetRes() (out *float64, e error) + func (a API) GetUnconfirmedBalanceWait(cmd *btcjson.GetUnconfirmedBalanceCmd) (out *float64, e error) + func (a API) HandleDropWalletHistory(cmd *None) (e error) + func (a API) HandleDropWalletHistoryCheck() (isNew bool) + func (a API) HandleDropWalletHistoryGetRes() (out *string, e error) + func (a API) HandleDropWalletHistoryWait(cmd *None) (out *string, e error) + func (a API) HelpNoChainRPC(cmd btcjson.HelpCmd) (e error) + func (a API) HelpNoChainRPCCheck() (isNew bool) + func (a API) HelpNoChainRPCGetRes() (out *string, e error) + func (a API) HelpNoChainRPCWait(cmd btcjson.HelpCmd) (out *string, e error) + func (a API) ImportPrivKey(cmd *btcjson.ImportPrivKeyCmd) (e error) + func (a API) ImportPrivKeyCheck() (isNew bool) + func (a API) ImportPrivKeyGetRes() (out *None, e error) + func (a API) ImportPrivKeyWait(cmd *btcjson.ImportPrivKeyCmd) (out *None, e error) + func (a API) KeypoolRefill(cmd *None) (e error) + func (a API) KeypoolRefillCheck() (isNew bool) + func (a API) KeypoolRefillGetRes() (out *None, e error) + func (a API) KeypoolRefillWait(cmd *None) (out *None, e error) + func (a API) ListAccounts(cmd *btcjson.ListAccountsCmd) (e error) + func (a API) ListAccountsCheck() (isNew bool) + func (a API) ListAccountsGetRes() (out *map[string]float64, e error) + func (a API) ListAccountsWait(cmd *btcjson.ListAccountsCmd) (out *map[string]float64, e error) + func (a API) ListAddressTransactions(cmd *btcjson.ListAddressTransactionsCmd) (e error) + func (a API) ListAddressTransactionsCheck() (isNew bool) + func (a API) ListAddressTransactionsGetRes() (out *[]btcjson.ListTransactionsResult, e error) + func (a API) ListAddressTransactionsWait(cmd *btcjson.ListAddressTransactionsCmd) (out *[]btcjson.ListTransactionsResult, e error) + func (a API) ListAllTransactions(cmd *btcjson.ListAllTransactionsCmd) (e error) + func (a API) ListAllTransactionsCheck() (isNew bool) + func (a API) ListAllTransactionsGetRes() (out *[]btcjson.ListTransactionsResult, e error) + func (a API) ListAllTransactionsWait(cmd *btcjson.ListAllTransactionsCmd) (out *[]btcjson.ListTransactionsResult, e error) + func (a API) ListLockUnspent(cmd *None) (e error) + func (a API) ListLockUnspentCheck() (isNew bool) + func (a API) ListLockUnspentGetRes() (out *[]btcjson.TransactionInput, e error) + func (a API) ListLockUnspentWait(cmd *None) (out *[]btcjson.TransactionInput, e error) + func (a API) ListReceivedByAccount(cmd *btcjson.ListReceivedByAccountCmd) (e error) + func (a API) ListReceivedByAccountCheck() (isNew bool) + func (a API) ListReceivedByAccountGetRes() (out *[]btcjson.ListReceivedByAccountResult, e error) + func (a API) ListReceivedByAccountWait(cmd *btcjson.ListReceivedByAccountCmd) (out *[]btcjson.ListReceivedByAccountResult, e error) + func (a API) ListReceivedByAddress(cmd *btcjson.ListReceivedByAddressCmd) (e error) + func (a API) ListReceivedByAddressCheck() (isNew bool) + func (a API) ListReceivedByAddressGetRes() (out *btcjson.ListReceivedByAddressResult, e error) + func (a API) ListReceivedByAddressWait(cmd *btcjson.ListReceivedByAddressCmd) (out *btcjson.ListReceivedByAddressResult, e error) + func (a API) ListSinceBlock(cmd btcjson.ListSinceBlockCmd) (e error) + func (a API) ListSinceBlockCheck() (isNew bool) + func (a API) ListSinceBlockGetRes() (out *btcjson.ListSinceBlockResult, e error) + func (a API) ListSinceBlockWait(cmd btcjson.ListSinceBlockCmd) (out *btcjson.ListSinceBlockResult, e error) + func (a API) ListTransactions(cmd *btcjson.ListTransactionsCmd) (e error) + func (a API) ListTransactionsCheck() (isNew bool) + func (a API) ListTransactionsGetRes() (out *[]btcjson.ListTransactionsResult, e error) + func (a API) ListTransactionsWait(cmd *btcjson.ListTransactionsCmd) (out *[]btcjson.ListTransactionsResult, e error) + func (a API) ListUnspent(cmd *btcjson.ListUnspentCmd) (e error) + func (a API) ListUnspentCheck() (isNew bool) + func (a API) ListUnspentGetRes() (out *[]btcjson.ListUnspentResult, e error) + func (a API) ListUnspentWait(cmd *btcjson.ListUnspentCmd) (out *[]btcjson.ListUnspentResult, e error) + func (a API) LockUnspent(cmd btcjson.LockUnspentCmd) (e error) + func (a API) LockUnspentCheck() (isNew bool) + func (a API) LockUnspentGetRes() (out *bool, e error) + func (a API) LockUnspentWait(cmd btcjson.LockUnspentCmd) (out *bool, e error) + func (a API) RenameAccount(cmd *btcjson.RenameAccountCmd) (e error) + func (a API) RenameAccountCheck() (isNew bool) + func (a API) RenameAccountGetRes() (out *None, e error) + func (a API) RenameAccountWait(cmd *btcjson.RenameAccountCmd) (out *None, e error) + func (a API) SendMany(cmd *btcjson.SendManyCmd) (e error) + func (a API) SendManyCheck() (isNew bool) + func (a API) SendManyGetRes() (out *string, e error) + func (a API) SendManyWait(cmd *btcjson.SendManyCmd) (out *string, e error) + func (a API) SendToAddress(cmd *btcjson.SendToAddressCmd) (e error) + func (a API) SendToAddressCheck() (isNew bool) + func (a API) SendToAddressGetRes() (out *string, e error) + func (a API) SendToAddressWait(cmd *btcjson.SendToAddressCmd) (out *string, e error) + func (a API) SetTxFee(cmd *btcjson.SetTxFeeCmd) (e error) + func (a API) SetTxFeeCheck() (isNew bool) + func (a API) SetTxFeeGetRes() (out *bool, e error) + func (a API) SetTxFeeWait(cmd *btcjson.SetTxFeeCmd) (out *bool, e error) + func (a API) SignMessage(cmd *btcjson.SignMessageCmd) (e error) + func (a API) SignMessageCheck() (isNew bool) + func (a API) SignMessageGetRes() (out *string, e error) + func (a API) SignMessageWait(cmd *btcjson.SignMessageCmd) (out *string, e error) + func (a API) SignRawTransaction(cmd btcjson.SignRawTransactionCmd) (e error) + func (a API) SignRawTransactionCheck() (isNew bool) + func (a API) SignRawTransactionGetRes() (out *btcjson.SignRawTransactionResult, e error) + func (a API) SignRawTransactionWait(cmd btcjson.SignRawTransactionCmd) (out *btcjson.SignRawTransactionResult, e error) + func (a API) ValidateAddress(cmd *btcjson.ValidateAddressCmd) (e error) + func (a API) ValidateAddressCheck() (isNew bool) + func (a API) ValidateAddressGetRes() (out *btcjson.ValidateAddressWalletResult, e error) + func (a API) ValidateAddressWait(cmd *btcjson.ValidateAddressCmd) (out *btcjson.ValidateAddressWalletResult, e error) + func (a API) VerifyMessage(cmd *btcjson.VerifyMessageCmd) (e error) + func (a API) VerifyMessageCheck() (isNew bool) + func (a API) VerifyMessageGetRes() (out *bool, e error) + func (a API) VerifyMessageWait(cmd *btcjson.VerifyMessageCmd) (out *bool, e error) + func (a API) WalletIsLocked(cmd *None) (e error) + func (a API) WalletIsLockedCheck() (isNew bool) + func (a API) WalletIsLockedGetRes() (out *bool, e error) + func (a API) WalletIsLockedWait(cmd *None) (out *bool, e error) + func (a API) WalletLock(cmd *None) (e error) + func (a API) WalletLockCheck() (isNew bool) + func (a API) WalletLockGetRes() (out *None, e error) + func (a API) WalletLockWait(cmd *None) (out *None, e error) + func (a API) WalletPassphrase(cmd *btcjson.WalletPassphraseCmd) (e error) + func (a API) WalletPassphraseChange(cmd *btcjson.WalletPassphraseChangeCmd) (e error) + func (a API) WalletPassphraseChangeCheck() (isNew bool) + func (a API) WalletPassphraseChangeGetRes() (out *None, e error) + func (a API) WalletPassphraseChangeWait(cmd *btcjson.WalletPassphraseChangeCmd) (out *None, e error) + func (a API) WalletPassphraseCheck() (isNew bool) + func (a API) WalletPassphraseGetRes() (out *None, e error) + func (a API) WalletPassphraseWait(cmd *btcjson.WalletPassphraseCmd) (out *None, e error) + type AddMultiSigAddressRes struct + Res *string + type CAPI struct + Timeout time.Duration + func NewCAPI(quit qu.C, timeout ...time.Duration) (c *CAPI) + func (c *CAPI) AddMultiSigAddress(req *btcjson.AddMultisigAddressCmd, resp string) (e error) + func (c *CAPI) CreateMultiSig(req *btcjson.CreateMultisigCmd, resp btcjson.CreateMultiSigResult) (e error) + func (c *CAPI) CreateNewAccount(req *btcjson.CreateNewAccountCmd, resp None) (e error) + func (c *CAPI) DumpPrivKey(req *btcjson.DumpPrivKeyCmd, resp string) (e error) + func (c *CAPI) GetAccount(req *btcjson.GetAccountCmd, resp string) (e error) + func (c *CAPI) GetAccountAddress(req *btcjson.GetAccountAddressCmd, resp string) (e error) + func (c *CAPI) GetAddressesByAccount(req *btcjson.GetAddressesByAccountCmd, resp []string) (e error) + func (c *CAPI) GetBalance(req *btcjson.GetBalanceCmd, resp float64) (e error) + func (c *CAPI) GetBestBlock(req *None, resp btcjson.GetBestBlockResult) (e error) + func (c *CAPI) GetBestBlockHash(req *None, resp string) (e error) + func (c *CAPI) GetBlockCount(req *None, resp int32) (e error) + func (c *CAPI) GetInfo(req *None, resp btcjson.InfoWalletResult) (e error) + func (c *CAPI) GetNewAddress(req *btcjson.GetNewAddressCmd, resp string) (e error) + func (c *CAPI) GetRawChangeAddress(req *btcjson.GetRawChangeAddressCmd, resp string) (e error) + func (c *CAPI) GetReceivedByAccount(req *btcjson.GetReceivedByAccountCmd, resp float64) (e error) + func (c *CAPI) GetReceivedByAddress(req *btcjson.GetReceivedByAddressCmd, resp float64) (e error) + func (c *CAPI) GetTransaction(req *btcjson.GetTransactionCmd, resp btcjson.GetTransactionResult) (e error) + func (c *CAPI) GetUnconfirmedBalance(req *btcjson.GetUnconfirmedBalanceCmd, resp float64) (e error) + func (c *CAPI) HandleDropWalletHistory(req *None, resp string) (e error) + func (c *CAPI) HelpNoChainRPC(req btcjson.HelpCmd, resp string) (e error) + func (c *CAPI) ImportPrivKey(req *btcjson.ImportPrivKeyCmd, resp None) (e error) + func (c *CAPI) KeypoolRefill(req *None, resp None) (e error) + func (c *CAPI) ListAccounts(req *btcjson.ListAccountsCmd, resp map[string]float64) (e error) + func (c *CAPI) ListAddressTransactions(req *btcjson.ListAddressTransactionsCmd, resp []btcjson.ListTransactionsResult) (e error) + func (c *CAPI) ListAllTransactions(req *btcjson.ListAllTransactionsCmd, resp []btcjson.ListTransactionsResult) (e error) + func (c *CAPI) ListLockUnspent(req *None, resp []btcjson.TransactionInput) (e error) + func (c *CAPI) ListReceivedByAccount(req *btcjson.ListReceivedByAccountCmd, ...) (e error) + func (c *CAPI) ListReceivedByAddress(req *btcjson.ListReceivedByAddressCmd, ...) (e error) + func (c *CAPI) ListSinceBlock(req btcjson.ListSinceBlockCmd, resp btcjson.ListSinceBlockResult) (e error) + func (c *CAPI) ListTransactions(req *btcjson.ListTransactionsCmd, resp []btcjson.ListTransactionsResult) (e error) + func (c *CAPI) ListUnspent(req *btcjson.ListUnspentCmd, resp []btcjson.ListUnspentResult) (e error) + func (c *CAPI) LockUnspent(req btcjson.LockUnspentCmd, resp bool) (e error) + func (c *CAPI) RenameAccount(req *btcjson.RenameAccountCmd, resp None) (e error) + func (c *CAPI) SendMany(req *btcjson.SendManyCmd, resp string) (e error) + func (c *CAPI) SendToAddress(req *btcjson.SendToAddressCmd, resp string) (e error) + func (c *CAPI) SetTxFee(req *btcjson.SetTxFeeCmd, resp bool) (e error) + func (c *CAPI) SignMessage(req *btcjson.SignMessageCmd, resp string) (e error) + func (c *CAPI) SignRawTransaction(req btcjson.SignRawTransactionCmd, resp btcjson.SignRawTransactionResult) (e error) + func (c *CAPI) ValidateAddress(req *btcjson.ValidateAddressCmd, resp btcjson.ValidateAddressWalletResult) (e error) + func (c *CAPI) VerifyMessage(req *btcjson.VerifyMessageCmd, resp bool) (e error) + func (c *CAPI) WalletIsLocked(req *None, resp bool) (e error) + func (c *CAPI) WalletLock(req *None, resp None) (e error) + func (c *CAPI) WalletPassphrase(req *btcjson.WalletPassphraseCmd, resp None) (e error) + func (c *CAPI) WalletPassphraseChange(req *btcjson.WalletPassphraseChangeCmd, resp None) (e error) + type CAPIClient struct + func NewCAPIClient(conn io.ReadWriteCloser) *CAPIClient + func (r *CAPIClient) AddMultiSigAddress(cmd ...*btcjson.AddMultisigAddressCmd) (res string, e error) + func (r *CAPIClient) CreateMultiSig(cmd ...*btcjson.CreateMultisigCmd) (res btcjson.CreateMultiSigResult, e error) + func (r *CAPIClient) CreateNewAccount(cmd ...*btcjson.CreateNewAccountCmd) (res None, e error) + func (r *CAPIClient) DumpPrivKey(cmd ...*btcjson.DumpPrivKeyCmd) (res string, e error) + func (r *CAPIClient) GetAccount(cmd ...*btcjson.GetAccountCmd) (res string, e error) + func (r *CAPIClient) GetAccountAddress(cmd ...*btcjson.GetAccountAddressCmd) (res string, e error) + func (r *CAPIClient) GetAddressesByAccount(cmd ...*btcjson.GetAddressesByAccountCmd) (res []string, e error) + func (r *CAPIClient) GetBalance(cmd ...*btcjson.GetBalanceCmd) (res float64, e error) + func (r *CAPIClient) GetBestBlock(cmd ...*None) (res btcjson.GetBestBlockResult, e error) + func (r *CAPIClient) GetBestBlockHash(cmd ...*None) (res string, e error) + func (r *CAPIClient) GetBlockCount(cmd ...*None) (res int32, e error) + func (r *CAPIClient) GetInfo(cmd ...*None) (res btcjson.InfoWalletResult, e error) + func (r *CAPIClient) GetNewAddress(cmd ...*btcjson.GetNewAddressCmd) (res string, e error) + func (r *CAPIClient) GetRawChangeAddress(cmd ...*btcjson.GetRawChangeAddressCmd) (res string, e error) + func (r *CAPIClient) GetReceivedByAccount(cmd ...*btcjson.GetReceivedByAccountCmd) (res float64, e error) + func (r *CAPIClient) GetReceivedByAddress(cmd ...*btcjson.GetReceivedByAddressCmd) (res float64, e error) + func (r *CAPIClient) GetTransaction(cmd ...*btcjson.GetTransactionCmd) (res btcjson.GetTransactionResult, e error) + func (r *CAPIClient) GetUnconfirmedBalance(cmd ...*btcjson.GetUnconfirmedBalanceCmd) (res float64, e error) + func (r *CAPIClient) HandleDropWalletHistory(cmd ...*None) (res string, e error) + func (r *CAPIClient) HelpNoChainRPC(cmd ...btcjson.HelpCmd) (res string, e error) + func (r *CAPIClient) ImportPrivKey(cmd ...*btcjson.ImportPrivKeyCmd) (res None, e error) + func (r *CAPIClient) KeypoolRefill(cmd ...*None) (res None, e error) + func (r *CAPIClient) ListAccounts(cmd ...*btcjson.ListAccountsCmd) (res map[string]float64, e error) + func (r *CAPIClient) ListAddressTransactions(cmd ...*btcjson.ListAddressTransactionsCmd) (res []btcjson.ListTransactionsResult, e error) + func (r *CAPIClient) ListAllTransactions(cmd ...*btcjson.ListAllTransactionsCmd) (res []btcjson.ListTransactionsResult, e error) + func (r *CAPIClient) ListLockUnspent(cmd ...*None) (res []btcjson.TransactionInput, e error) + func (r *CAPIClient) ListReceivedByAccount(cmd ...*btcjson.ListReceivedByAccountCmd) (res []btcjson.ListReceivedByAccountResult, e error) + func (r *CAPIClient) ListReceivedByAddress(cmd ...*btcjson.ListReceivedByAddressCmd) (res btcjson.ListReceivedByAddressResult, e error) + func (r *CAPIClient) ListSinceBlock(cmd ...btcjson.ListSinceBlockCmd) (res btcjson.ListSinceBlockResult, e error) + func (r *CAPIClient) ListTransactions(cmd ...*btcjson.ListTransactionsCmd) (res []btcjson.ListTransactionsResult, e error) + func (r *CAPIClient) ListUnspent(cmd ...*btcjson.ListUnspentCmd) (res []btcjson.ListUnspentResult, e error) + func (r *CAPIClient) LockUnspent(cmd ...btcjson.LockUnspentCmd) (res bool, e error) + func (r *CAPIClient) RenameAccount(cmd ...*btcjson.RenameAccountCmd) (res None, e error) + func (r *CAPIClient) SendMany(cmd ...*btcjson.SendManyCmd) (res string, e error) + func (r *CAPIClient) SendToAddress(cmd ...*btcjson.SendToAddressCmd) (res string, e error) + func (r *CAPIClient) SetTxFee(cmd ...*btcjson.SetTxFeeCmd) (res bool, e error) + func (r *CAPIClient) SignMessage(cmd ...*btcjson.SignMessageCmd) (res string, e error) + func (r *CAPIClient) SignRawTransaction(cmd ...btcjson.SignRawTransactionCmd) (res btcjson.SignRawTransactionResult, e error) + func (r *CAPIClient) ValidateAddress(cmd ...*btcjson.ValidateAddressCmd) (res btcjson.ValidateAddressWalletResult, e error) + func (r *CAPIClient) VerifyMessage(cmd ...*btcjson.VerifyMessageCmd) (res bool, e error) + func (r *CAPIClient) WalletIsLocked(cmd ...*None) (res bool, e error) + func (r *CAPIClient) WalletLock(cmd ...*None) (res None, e error) + func (r *CAPIClient) WalletPassphrase(cmd ...*btcjson.WalletPassphraseCmd) (res None, e error) + func (r *CAPIClient) WalletPassphraseChange(cmd ...*btcjson.WalletPassphraseChangeCmd) (res None, e error) + type CreateMultiSigRes struct + Res *btcjson.CreateMultiSigResult + type CreateNewAccountRes struct + Res *None + type DeserializationError struct + type DumpPrivKeyRes struct + Res *string + type GetAccountAddressRes struct + Res *string + type GetAccountRes struct + Res *string + type GetAddressesByAccountRes struct + Res *[]string + type GetBalanceRes struct + Res *float64 + type GetBestBlockHashRes struct + Res *string + type GetBestBlockRes struct + Res *btcjson.GetBestBlockResult + type GetBlockCountRes struct + Res *int32 + type GetInfoRes struct + Res *btcjson.InfoWalletResult + type GetNewAddressRes struct + Res *string + type GetRawChangeAddressRes struct + Res *string + type GetReceivedByAccountRes struct + Res *float64 + type GetReceivedByAddressRes struct + Res *float64 + type GetTransactionRes struct + Res *btcjson.GetTransactionResult + type GetUnconfirmedBalanceRes struct + Res *float64 + type HandleDropWalletHistoryRes struct + Res *string + type HelpNoChainRPCRes struct + Res *string + type ImportPrivKeyRes struct + Res *None + type InvalidParameterError struct + type KeypoolRefillRes struct + Res *None + type LazyHandler func() (interface{}, *btcjson.RPCError) + func LazyApplyHandler(request *btcjson.Request, w *wallet.Wallet, chainClient chainclient.Interface) LazyHandler + type ListAccountsRes struct + Res *map[string]float64 + type ListAddressTransactionsRes struct + Res *[]btcjson.ListTransactionsResult + type ListAllTransactionsRes struct + Res *[]btcjson.ListTransactionsResult + type ListLockUnspentRes struct + Res *[]btcjson.TransactionInput + type ListReceivedByAccountRes struct + Res *[]btcjson.ListReceivedByAccountResult + type ListReceivedByAddressRes struct + Res *btcjson.ListReceivedByAddressResult + type ListSinceBlockRes struct + Res *btcjson.ListSinceBlockResult + type ListTransactionsRes struct + Res *[]btcjson.ListTransactionsResult + type ListUnspentRes struct + Res *[]btcjson.ListUnspentResult + type LockUnspentRes struct + Res *bool + type None struct + type Options struct + MaxPOSTClients int64 + MaxWebsocketClients int64 + Password string + Username string + type ParseError struct + type RenameAccountRes struct + Res *None + type RequestHandler func(interface{}, *wallet.Wallet, ...*chainclient.RPCClient) (interface{}, error) + type SendManyRes struct + Res *string + type SendToAddressRes struct + Res *string + type Server struct + AuthSHA [sha256.Size]byte + ChainClient chainclient.Interface + HTTPServer http.Server + HandlerMutex sync.Mutex + Listeners []net.Listener + MaxPostClients int64 + MaxWebsocketClients int64 + Quit qu.C + QuitMutex sync.Mutex + RequestShutdownChan qu.C + Upgrader websocket.Upgrader + WG sync.WaitGroup + Wallet *wallet.Wallet + WalletLoader *wallet.Loader + func NewServer(opts *Options, walletLoader *wallet.Loader, listeners []net.Listener, ...) *Server + func (s *Server) CheckAuthHeader(r *http.Request) (e error) + func (s *Server) HandlerClosure(request *btcjson.Request) LazyHandler + func (s *Server) InvalidAuth(req *btcjson.Request) bool + func (s *Server) POSTClientRPC(w http.ResponseWriter, r *http.Request) + func (s *Server) RegisterWallet(w *wallet.Wallet) + func (s *Server) RequestProcessShutdown() + func (s *Server) RequestProcessShutdownChan() qu.C + func (s *Server) Serve(lis net.Listener) + func (s *Server) SetChainServer(chainClient chainclient.Interface) + func (s *Server) Stop() + func (s *Server) WebsocketClientRPC(wsc *WebsocketClient) + func (s *Server) WebsocketClientRead(wsc *WebsocketClient) + func (s *Server) WebsocketClientRespond(wsc *WebsocketClient) + func (s *Server) WebsocketClientSend(wsc *WebsocketClient) + type SetTxFeeRes struct + Res *bool + type SignMessageRes struct + Res *string + type SignRawTransactionRes struct + Res *btcjson.SignRawTransactionResult + type ValidateAddressRes struct + Res *btcjson.ValidateAddressWalletResult + type VerifyMessageRes struct + Res *bool + type WalletIsLockedRes struct + Res *bool + type WalletLockRes struct + Res *None + type WalletPassphraseChangeRes struct + Res *None + type WalletPassphraseRes struct + Res *None + type WebsocketClient struct + func NewWebsocketClient(c *websocket.Conn, authenticated bool, remoteAddr string) *WebsocketClient + func (c *WebsocketClient) Send(b []byte) (e error)