Skip to content

Latest commit

 

History

History
48 lines (28 loc) · 1.54 KB

README.md

File metadata and controls

48 lines (28 loc) · 1.54 KB

Multi-coin Python Wallet

This project contains a Python wallet that supports Ethereum and BTC testnet transactions. This uses the BIP44 standard, and leverages the following libraries:

Installation

You will need PHP and Python 3 on your system.

First, install Python dependencies using pip:

pip install -r requirements.txt

Then, clone and install hd-wallet-derive. Instructions are also available here.

git clone https://github.com/dan-da/hd-wallet-derive
cd hd-wallet-derive
php -r "readfile('https://getcomposer.org/installer');" | php
php composer.phar install
ln -s hd-wallet-derive.php ../derive
cd ..

To use the wallet, set an account like so:

account = priv_key_to_account(BTCTEST, coins[BTCTEST][0]['privkey'])

Then, send a transaction by doing:

send_tx(BTCTEST, account, 'mv4rnyY3Su5gjcDNzbMLKBQkBicCtHUtFB', '0.001')

The coins object contains a list of child wallets for each coin, in this case BTCTEST and ETH.

wallet-object

Here is an example ETH transaction on a local testnet:

eth-test

Here is an example BTCTEST transaction on testnet3:

eth-test