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>