Bitcoin Forum
May 12, 2024, 09:55:16 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: website development  (Read 109 times)
tradopt (OP)
Newbie
*
Offline Offline

Activity: 1
Merit: 1


View Profile
November 28, 2022, 04:12:39 PM
Merited by bitmover (1)
 #1

How do we generate the bitcoin address for every user, those who uses our website  ,and can withdraw deposit ?
"If you don't want people to know you're a scumbag then don't be a scumbag." -- margaritahuyan
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715507716
Hero Member
*
Offline Offline

Posts: 1715507716

View Profile Personal Message (Offline)

Ignore
1715507716
Reply with quote  #2

1715507716
Report to moderator
1715507716
Hero Member
*
Offline Offline

Posts: 1715507716

View Profile Personal Message (Offline)

Ignore
1715507716
Reply with quote  #2

1715507716
Report to moderator
1715507716
Hero Member
*
Offline Offline

Posts: 1715507716

View Profile Personal Message (Offline)

Ignore
1715507716
Reply with quote  #2

1715507716
Report to moderator
CounterEntropy
Full Member
***
Offline Offline

Activity: 214
Merit: 278


View Profile
November 28, 2022, 04:50:01 PM
Merited by ABCbits (1)
 #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.
seoincorporation
Legendary
*
Offline Offline

Activity: 3150
Merit: 2933


Top Crypto Casino


View Profile
November 28, 2022, 06:05:39 PM
Merited by ABCbits (1)
 #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.

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
bitmover
Legendary
*
Offline Offline

Activity: 2296
Merit: 5942


bitcoindata.science


View Profile WWW
November 29, 2022, 08: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.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!