artflake / snowflakeweb

Snowflake Web Interface
0 stars 0 forks source link

Allow users to buy flake with bitcoin (do before zcash and monero) #5

Open TheRook opened 2 years ago

TheRook commented 2 years ago

1) Find the current gas price and cost for Flake to Bitcoin. 2) Check the database to make sure that this list price is totally unique, randomly generate a few satoshi to make sure it is unique. 3) Setup a cron job to poll our wallet for new transactions, when we receive one with the exact price, we know which account purchased with bitcoin. Verification is done with an HTTP bitcion blockchain explorer to check for recent transactions on our wallet.

For bitcoin there are APIs that give us an HTTP callback when we get a new confirmed transaction for a wallet we choose: https://www.blockchain.com/api/api_receive