Skip to content

bxdoan/pywallet

Repository files navigation

Python Wallet - PyWallet

Build Status

PyWallet is python script encrypt your private key. Unlike normal extension wallet, PyWallet can't connect to browser, so it can't be hack

PyWallet support network eth, matic and near.

alt text

Set up

  1. Install package
wget -O setup.sh https://raw.githubusercontent.com/bxdoan/pywallet/main/script/setup.sh && chmod +x setup.sh && ./setup.sh

or clone this repo and run

pip3 install -r requirements.txt

or using pipenv

pipenv sync
  1. Execute mod for wallet.py
chmod +x ./run.py

Usage

  1. Run app
./run.sh

or run in python

./pywallet.py

NOTE: By default, we use RPC from alchemy service to get balance and transaction. If you want to use your own url link, you can create it from alchemy and add it to config.json

config set --url "https://eth-mainnet.g.alchemy.com/v2/qzq9rBJLZpygokkr-JVb0J26UGF6yGKl" --keypair-file "path/to/your/keypair/file"

If you not have wallet, it will create new wallet and save to file *.json by command

./pywallet.py create

You can change url and keypair_path for your own config in ~/.pywallet/config.json and view your wallet keypair in ~/.pywallet/wallet/id.json

  1. Get wallet address
./pywallet.py address
  1. Transfer Token
./pywallet.py transfer <reicever> <amount>

./pywallet.py transfer <reicever> <amount> -t <token_address>
  1. Get balance
./pywallet.py balance
  1. Search TOKEN address
./pywallet.py search <key_search>
./pywallet.py search AAVE
./pywallet.py search DOGE

Test

  1. Run test
pytest -s

or

./quicktest.sh

NOTE: you can read more in Usage.md

Contact

Telegram

Email

Thanks for use

Buy me a coffee

paypal