Skip to content

This project contains a Python wallet that supports Ethereum and BTC testnet transactions. This uses the BIP44 standard, and leverages the hd-wallet-derive, bit, and web3 libraries:

Notifications You must be signed in to change notification settings

gdepalma93/Multi-Coin-Wallet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

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

About

This project contains a Python wallet that supports Ethereum and BTC testnet transactions. This uses the BIP44 standard, and leverages the hd-wallet-derive, bit, and web3 libraries:

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages