Attempting to create a bitcoin primarily based webapp in python which takes BTC deposits. How would I exploit pybitcointools to implement this?

0
25


You are largely heading in the right direction.

The best approach to construct a person deposit system is to easily have a one to many user->handle mapping.

By default, when a person deposits BTC to an handle, you robotically generate a brand new handle for them. Nevertheless, you do not delete the earlier handle, or the truth that it’s linked to that person.

This fashion, even when a person sends BTC to an older handle, you’ll be able to obtain it for them.

Moreover, the way you course of withdrawals is determined by what sort of system you’re constructing. Whether it is merely a simple pockets system, then the method you described of sending the BTC out when the person asks from the person’s handle will likely be high-quality.

In case you are constructing a platform the place the person exchanges BTC for items, companies, or different cash, after which makes withdrawals primarily based on their remaining steadiness, it’s possible you’ll wish to take into account a sizzling/chilly pockets system.

In such a system, when customers deposit cash, you present no assure that the identical cash will likely be used to course of their withdrawals. You both use all customers’ cash to course of every others withdrawals, otherwise you transfer them right into a handful of addresses, and course of all withdrawals from their.



Supply hyperlink

Leave a reply