paulocoutinhox / bitcoin-transfer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bitcoin Logo

Bitcoin Transfer

A simple application that transfer Bitcoin from one wallet to other wallet.

It is configured to use BIP38 wallet address if you pass wallet password.

Build

How to use

1 - Install dependencies:

python3 -m pip install -r requirements.txt

2 - Set your wallet private data:

export BTC_WALLET_PRIV='YOUR-PRIVATE-ADDRESS'

or if you use BIP38 wallet with password:

export BTC_WALLET_PRIV='YOUR-PRIVATE-ADDRESS'
export BTC_WALLET_PRIV_PASS='YOUR-PRIVATE-ADDRESS-PASSWORD'

3 - Transfer Bitcoins

python3 transfer.py --to 1Em2mh42vmqDxHLuaMM2u6KQPJWFDP8Jy8 --amount 0.00001000

or if you only want a draft execution, without perform transaction, execute:

python3 transfer.py --to 1Em2mh42vmqDxHLuaMM2u6KQPJWFDP8Jy8 --amount 0.00001000 --draft

Troubleshooting

  1. If you have problems with macOS when install bip38 about openssl headers not found, execute the following command and install dependencies again:
brew install openssl
export CFLAGS="-I$(brew --prefix openssl)/include"
export LDFLAGS="-L$(brew --prefix openssl)/lib"

Buy me a coffee

Buy Me a Coffee at ko-fi.com

License

MIT

Copyright (c) 2024, Paulo Coutinho

About

License:MIT License


Languages

Language:Python 100.0%