CryptoWalletRPC — BitcoinD RPC Service

Module capable of operating Bitcoind-style RPC. Provided as a service.

Note

This module requires installation of some optional dependencies:

  • bitcoinrpc

Class Reference

class pyircbot.modules.CryptoWalletRPC.BitcoinRPC(logger, name, fullname, host, port, username, password, precision, reserve, addr_re)[source]

Bases: object

canMove(fromAcct, toAcct, amount)[source]
checkPrecision(amount)[source]
connect()[source]
getAcctAddr(acct)[source]

Return the deposit address associated with the passed account :param acct: account name :type acct: str

getAcctBal(acct)[source]
getBal(acct)[source]

Return the balance of the passed account :param acct: account name :type acct: str :return: decimal.Decimal

move(fromAcct, toAcct, amount)[source]
ping()[source]
send(fromAcct, toAddr, amount)[source]
validate_addr(addr)[source]

Validate an address string. Returns true if the addr provided is a valid address string :param addr: address to validate :type addr: str :return: bool

class pyircbot.modules.CryptoWalletRPC.CryptoWalletRPC(bot, moduleName)[source]

Bases: pyircbot.modulebase.ModuleBase

getInfo(abbr)[source]
getRpc(currencyAbbr)[source]
getSupported()[source]
isSupported(abbr)[source]
loadrpcservices()[source]