Author

Topic: website development (Read 131 times)

legendary
Activity: 2352
Merit: 6089
bitcoindata.science
November 29, 2022, 03:29:54 PM
#4
How do we generate the bitcoin address for every user, those who uses our website  ,and can withdraw deposit ?

2 member already explain the general idea, although using Bitcoin Core isn't the only option to manage user's coin. But if you ask such question, IMO you should hire someone who already have experience to create cryptocurrency-related service.

It is a good idea to hire some  to professionally manage the job.

Additionally,  I will suggest that you work with btcpayserver.org,  which is an open source and free software which will manage all payments for you.

It will generate address for each buys, monitored them, etc  it has an extensive documentation and really looks like a professional solution.
legendary
Activity: 3346
Merit: 3130
November 28, 2022, 01:05:39 PM
#3
How do we generate the bitcoin address for every user, those who uses our website 

Generating a new address for our site should be a backend process. Let me explain how it should be done.

1.-User input his Username, Mail and Password to create the account.
2.-The data is sent to the backend.
3.-The data is verified in the backend to see if its valid before write it in the DB
4.-If the data is valid, then call your bitcoin node with RCP to get the new address and send that info to the users array.
5.-Write In the data base: ID, Username, Password(encripted), mail, balance, address...

Then each time the user request the address you can fill that input with a SQL call.

and can withdraw deposit ?

For withdrawals:

1.-User input the withdrawal amount and the address.
2.-The data is sent to the backend
3.-Data verification (If the balance is enough if the sending address is valid...)
4.-Send the transaction with RPC calls.
5.-Update the Data Base with the new balance, and record the withdrawal transaction on a new table.

Since you are talking about website development i would like to recommend NodeJS for a crypto application as a backend.
full member
Activity: 214
Merit: 278
November 28, 2022, 11:50:01 AM
#2
How do we generate the bitcoin address for every user, those who uses our website  ,and can withdraw deposit ?

Ideally you should run your own Bitcoin Node and query using JSON-RPC.

For example, get new address using - https://bitcoincore.org/en/doc/22.0.0/rpc/wallet/getnewaddress/.

But, if you are not pro, you may use third party API and query using cURL.

For example, you may use this API - https://www.blockchain.com/explorer/api/api_receive.
newbie
Activity: 1
Merit: 1
November 28, 2022, 11:12:39 AM
#1
How do we generate the bitcoin address for every user, those who uses our website  ,and can withdraw deposit ?
Jump to: