I've built my first Paython app on BCH network

6 195
Avatar for ClearSky
4 years ago

Today I've finished my first Python app and it's using Bitcoin Cash network. I didn't think I'll be able to learn programming. I've always thought that you need to be a young man under 30 with excellent math skills but here I'm programming something useful for the first time.

Journey

I've been interested in merchant adoption and I've been voluntarily providing support to a merchant in my city and there were some issue and I wrote an article trying to highlight some issues. @winter

Python is one of the most common easy to learn programming language, I picked it hoping it will help me in the crypto world. I found some time in the lock-down period and learned a little bit Python, it was going smoothly but didn't feel like you are doing something that could be used by me or by people.

The idea of a merchant app was an issue solver so I started to gather the parts required. Contacted @merc1er to get help while learning Bitcash (BCH python library). Got help from @blockparty-sh regarding the awesome fountainhead.cash's Bitsocket and Bitdb API. Also @OPReturnCode helped me a little bit with advices and suggestions.

I ended up paying too much fees for testing as there no Bitdb test net version, but made this available.

My affection with Bitsocket

I couldn't leave this out. The instant payment received notification in Bitcoin.com wallet and some other tools have always amazed me. In one article I think I've inspired @Satoshiwall to create the payment button which uses similar teach.

Ingredients

I've used some awesome tools to build this application.

  1. Python

  2. Tkinter GUI

  3. Bitcash python Lib

  4. Fountainhead Bitsocket API for instant notifications

  5. QR-Code-Generator by Sagnik Chattopadhyaya

Known bugs

  • Some results from the API aren't handled very well causing some harmless noise

  • Bitcoin Cash address should be configured manually in 3 places

  • Probably a lot more, since this is my first app

Wish list

  • BIP70 support

  • Onscreen Keypad

  • SLP tokens support

  • Multiple currencies

  • Using multiple APIs

  • Provide binary packages for major OSes

  • Building for Mobile phones

  • Add window to setup configurations

  • Add xpub support

Source code

I'm releasing this under an open source license, check the code here:

https://gitlab.com/uak/bitcoin-instorepay

21
$ 7.92
$ 5.00 from @OPReturnCode
$ 2.00 from @blockparty-sh
$ 0.50 from @im_uname
+ 4
Avatar for ClearSky
4 years ago

Comments

How long did it take you?

$ 0.00
4 years ago

Building the app and learning it's libraries almost a week, not working full time on it. Learning python basics I guess it took few months like 3 as I have other stuff doing.

$ 0.00
4 years ago

Good job. Have you tried https://bchpls.io/ - P-O-S for BCH and SLP?

$ 0.00
4 years ago

is that your project?

$ 0.00
4 years ago

It’s not mine. I just use it sometimes

$ 0.00
4 years ago

I've just tested the demo. It looks really n ice and smart.

$ 0.00
4 years ago