Giter VIP home page Giter VIP logo

simplebtcbyxpub's Introduction

simplebtcbyxpub

Minimalistic and simple Bitcoin address generation by xpub. Use with python or php
My first project on github ever

Simple Bitcoin address generation by xpub (public key)

  1. Installing requirements

    sudo apt update && apt install python3 python3-pip -y
    sudo apt-get install python3-pip
    pip3 install bitcoin
    pip install git+https://github.com/primal100/pybitcointools.git@master

    if errors, you can try: bash requirements.sh (not tested!)

  2. CLI python usage

    1. python3 btc_by_xpubindex.py
      Please enter your xpub: [YOUR-XPUB]
      Please enter the index number: [ANY-NUMBER]
      [outputs address]

    2. python3 list_by_xpub.py

      Please enter your xpub: [YOUR-XPUB]
      [outputs list of 100 btc addresses]

  3. PHP usage

    1. if you dont have lamp (php, mysql) installed, use this simple line
      sudo apt install lamp-server^

    2. copy all files to your local server e.g. /var/www/html/

    3. simply create config database using bash create_config_db.sh enter your database's username, password and give a name to a new db

    4. configure 'db.php' file. enter database's username, password and name of created db

    5. goto localhost from ur favorite browser

    6. Index page will show first bitcoin address. Updating page will output next address.

    7. goto localhost/manual_input.php to manualy enter xpub and select address, you wanna see.

    !!! remember that 0 = first address !!!
    1. To use it for assignment personal address on user registration: edit index.php : comment, or remove this line:
      echo $xpub_address;
      I guess, your index file should content anything other: you should rename source index.php, e.g. getbtc.php
      sudo mv index.php getbtc.php
      add line require_once('getbtc.php'); in your registration file and $xpub_address should output a new address every time.
Like my code? Buy me a โ˜•๏ธ: bc1qqzun677gyh4w856zkztt7jkzv87ca305439cly
Bitcoin QR code
Thank you!

simplebtcbyxpub's People

Contributors

uniquemecanique avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.