Trying to create a in python which BTC (New to Bitcoin in general, but want to get involved).

Although I would preferably want to use a different address for each deposit, (I read the docs and found out how this could be done, but still slightly confused), I would want to allow for users to deposit back into their own wallets. Though I think I got withdrawals figured out.

I tried to understand the (Now unsupported docs) but decided to come here for help because I was still confused. How would I use to

  1. Generate an BTC Address. (New address for each user). I believe I could do the below for each user. So this would generate a unique address upon the creation of each user for them to deposit to.

    my_private_key = sha256(‘I guess whatever I please’)

    my_public_key = privtopub(my_private_key)

    my_address = pubtoaddr(my_public_key)

  2. Accept a Deposit into this Address.

  3. Return the BTC value of this address.
  4. When the comes, send the balance of this address to the users own address.

Appreciate if you guys could aid me. I promise to send some BTC of gratitude to a person that can help me thoroughly. Thanks (just include your address)

Source link
Based Blockchain


Please enter your comment!
Please enter your name here