CryptoWallet — BitcoinD RPC Service

Module to provide a multi-type cryptocurrency wallet

Config

{
    "types": {
        "BTC": {
            "name": "Bitcoin",
            "abbr": "BTC",
            "host": "192.168.1.210",
            "username": "bobby",
            "password": "propane",
            "port": 8332,
            "precision": 8,
            "reserve": 0.0005,
            "link": "https://bitcoin.org/"
        }
    }
}
types

Dictionary of supported crypto currencies, keyed abbreviation => detail. All fields required.

types.TYPE.precision

Number of decimal places the currency supports

types.TYPE.reserve:

Minimum balance; this is to cover tx fees

Commands

.curinfo [<currency>]

See list of supported currencies, or info about a specific one.

.getbal <currency>

Get current user’s balance of a specific currency

.setaddr <currency> <address>

Set current user’s withdrawal address for <currency> to <address>

.withdraw <currency> <amount>

Request a withdrawal of <amount> to current user’s withdraw address of <currency>

.getaddr <currency>

Get deposit address for <currency>

Class Reference

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

Bases: pyircbot.modulebase.ModuleBase

checkUserHasWallet(username, currency)[source]
check_login(prefix, replyTo)[source]
getMods()[source]
handle_curinfo(msg, cmd)[source]
handle_getaddr(msg, cmd)[source]
handle_getbal(msg, cmd)[source]
handle_send(msg, cmd)[source]
handle_setaddr(msg, cmd)[source]
handle_withdraw(msg, cmd)[source]
md5(data)[source]