Bitcoin Forum
July 14, 2024, 10:52:11 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: The wallet system used by websites  (Read 205 times)
AlphaBoy (OP)
Jr. Member
*
Offline Offline

Activity: 48
Merit: 3


View Profile WWW
July 06, 2024, 09:00:36 AM
Last edit: July 06, 2024, 11:02:00 AM by AlphaBoy
Merited by ABCbits (2)
 #1

Hello.
Every website that use Bitcoin (games, casino, or exchange platform) has a system where it generate a new bitcoin address for each new user, users also can have more than one.
I created a website that have a small game, players can play against each others using Bitcoin but I have no idea how to create this system and connect it to interact with the website.
I am certain that all of these address are for the same wallet since it will be hard to track the deposit and withdrawal of each user unless the entire site run on a single wallet with different address.
I am a complete noob with these, and all of the search I've made led me to "API" and "Bitcoin Node" and I did not find a single clear guide on the internet the only clear guide was for Ethereum not Bitcoin (which is weird since Bitcoin is way more popular)

I have notice it that the system of these sites add your money to your account automatically after 1 network confirmation meaning that it's interactive with the blockchain, which mean that it hard to hack as well.

What is the best API system and how can I add it to my website?

thank you.
LoyceV
Legendary
*
Offline Offline

Activity: 3374
Merit: 17018


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
July 06, 2024, 09:12:08 AM
 #2

Every website that use Bitcoin (games, casino, or exchange platform) has a system where it generate a new bitcoin address for each new user, users also can have more than one.
I'm pretty sure they use Bitcoin Core (bitcoind, not bitcoin-qt).

Quote
What is the best API system and how can I add it to my website?
An API means you rely on a third party. You should run your own node.

SquirrelJulietGarden
Hero Member
*****
Online Online

Activity: 1386
Merit: 754



View Profile
July 06, 2024, 10:33:41 AM
 #3

Every website that use Bitcoin (games, casino, or exchange platform) has a system where it generate a new bitcoin address for each new user, users also can have more than one.
I created a website that have a small game, players can play against each others using Bitcoin but I have no idea how to create this system and connect it to interact with the website.
It's custodial wallet and you control private keys, not users of your website/ service.

It's not recommended to use web wallets or custodial wallets like what you want to provide. It's risky.

Reminder: do not keep your money in online accounts
Not your keys, not your coins

I am certain that all of these address are for the same wallet since it will be hard to track the deposit and withdrawal of each user unless the entire site run on a single wallet with different address.
Try to check connections of addresses with https://www.walletexplorer.com/

███▄▀██▄▄
░░▄████▄▀████ ▄▄▄
░░████▄▄▄▄░░█▀▀
███ ██████▄▄▀█▌
░▄░░███▀████
░▐█░░███░██▄▄
░░▄▀░████▄▄▄▀█
░█░▄███▀████ ▐█
▀▄▄███▀▄██▄
░░▄██▌░░██▀
░▐█▀████ ▀██
░░█▌██████ ▀▀██▄
░░▀███
▄▄██▀▄███
▄▄▄████▀▄████▄░░
▀▀█░░▄▄▄▄████░░
▐█▀▄▄█████████
████▀███░░▄░
▄▄██░███░░█▌░
█▀▄▄▄████░▀▄░░
█▌████▀███▄░█░
▄██▄▀███▄▄▀
▀██░░▐██▄░░
██▀████▀█▌░
▄██▀▀██████▐█░░
███▀░░
AlphaBoy (OP)
Jr. Member
*
Offline Offline

Activity: 48
Merit: 3


View Profile WWW
July 06, 2024, 11:16:49 AM
 #4

Every website that use Bitcoin (games, casino, or exchange platform) has a system where it generate a new bitcoin address for each new user, users also can have more than one.
I'm pretty sure they use Bitcoin Core (bitcoind, not bitcoin-qt).

Quote
What is the best API system and how can I add it to my website?
An API means you rely on a third party. You should run your own node.

there is not a silnge reuslt for "bitcoind" the only result for bitcoin core is bitcoin.org.
so is that the core I need to downaload and use it with java scripit?



Try to check connections of addresses with https://www.walletexplorer.com/
This is exactly what I am talking about.
I put the deposit address for a website and it gave me the amount I paid.
so each user have his own address to deposit just as I thought, these address are connected to the same wallet? or it basically a wallet for each user?
RickDeckard
Legendary
*
Offline Offline

Activity: 1092
Merit: 3078



View Profile
July 06, 2024, 11:31:13 AM
Merited by LoyceV (4), ABCbits (2)
 #5

there is not a silnge reuslt for "bitcoind" the only result for bitcoin core is bitcoin.org.
so is that the core I need to downaload and use it with java scripit?
Putting it simple: bitcoind is a headless version[1][2] daemon responsible to download and synchronize the blockchain (and directly verifies both the blocks and transactions). You interact with this daemon by using bitcoin-cli. bitcoin-qt, on the other hand, embeds bitcoind and bitcoin-cli functionalities with a graphical environment. This latter option is preferred for users that don't have much experience in executing command line requests.

[1]https://en.bitcoin.it/wiki/Bitcoind
[2]https://bitcoinwiki.org/wiki/bitcoind

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
BlackHatCoiner
Legendary
*
Offline Offline

Activity: 1582
Merit: 7728


Protocols over bureaucrats


View Profile
July 06, 2024, 12:55:07 PM
 #6

I put the deposit address for a website and it gave me the amount I paid.
Any block explorer (i.e., Blockchair) will return you the amount you paid. That's regardless of whether you submit it to walletexplorer.com or not.

so each user have his own address to deposit just as I thought, these address are connected to the same wallet? or it basically a wallet for each user?
In most casinos and other platforms I know of, it works like this: The server creates a hierarchical deterministic wallet and creates accounts for each user. "Same wallet" is very vague. It'd be better to say that it's perhaps using the same seed, and for every user, a new list of addresses is being deterministically determined.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
LoyceV
Legendary
*
Offline Offline

Activity: 3374
Merit: 17018


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
July 06, 2024, 12:56:31 PM
Merited by ABCbits (1), hosseinimr93 (1)
 #7

I am certain that all of these address are for the same wallet since it will be hard to track the deposit and withdrawal of each user unless the entire site run on a single wallet with different address.
Try to check connections of addresses with https://www.walletexplorer.com/
OP wants to link his own addresses to his game users. That has nothing to do with WalletExplorer.

there is not a silnge reuslt for "bitcoind"
Yuo msut hvae mdae a tpyo: https://en.bitcoin.it/wiki/Bitcoind

Quote
I put the deposit address for a website and it gave me the amount I paid.
so each user have his own address to deposit just as I thought, these address are connected to the same wallet? or it basically a wallet for each user?
WalletExplorer isn't a wallet, it's a chain analysis company. That's not what you're looking for.

AlphaBoy (OP)
Jr. Member
*
Offline Offline

Activity: 48
Merit: 3


View Profile WWW
July 06, 2024, 01:39:11 PM
 #8

there is not a silnge reuslt for "bitcoind" the only result for bitcoin core is bitcoin.org.
so is that the core I need to downaload and use it with java scripit?
Putting it simple: bitcoind is a headless version[1][2] daemon responsible to download and synchronize the blockchain (and directly verifies both the blocks and transactions). You interact with this daemon by using bitcoin-cli. bitcoin-qt, on the other hand, embeds bitcoind and bitcoin-cli functionalities with a graphical environment. This latter option is preferred for users that don't have much experience in executing command line requests.

[1]https://en.bitcoin.it/wiki/Bitcoind
[2]https://bitcoinwiki.org/wiki/bitcoind
the download lead me to bitcoin.org
I download this and searched a way to link it to my java script (which will be linked to the site) and turn out I need a node, mybay I've done something wrong but it did not work.


so each user have his own address to deposit just as I thought, these address are connected to the same wallet? or it basically a wallet for each user?
In most casinos and other platforms I know of, it works like this: The server creates a hierarchical deterministic wallet and creates accounts for each user. "Same wallet" is very vague. It'd be better to say that it's perhaps using the same seed, and for every user, a new list of addresses is being deterministically determined.
[/quote]
That why I said I am noob, The first time I worked in BTC was in 2014 but never I created anything related to it other than blogging about it.
so each wallet have a seed and each seed can create millions of address? is that it?
is there some easy way to create that system for a newbie? since you are expert here on the site how much programmers usually charge to create this system for you?!
I mean web developing here cost up to 30$ hour, but the site is completed all I need is this system and nothing more.
dose this system take more than 2 hour to be created?

there is not a silnge reuslt for "bitcoind"
Yuo msut hvae mdae a tpyo: https://en.bitcoin.it/wiki/Bitcoind
I don't think so, even the wiki lead me to download page to Bitcoin.org.
how much people here charge for creating such a system?

Quote
I put the deposit address for a website and it gave me the amount I paid.
so each user have his own address to deposit just as I thought, these address are connected to the same wallet? or it basically a wallet for each user?
WalletExplorer isn't a wallet, it's a chain analysis company. That's not what you're looking for.
[/quote]
I know pro, I just wanted to test the theory.

odolvlobo
Legendary
*
Offline Offline

Activity: 4368
Merit: 3288



View Profile
July 06, 2024, 07:39:20 PM
Merited by ABCbits (1)
 #9

I doubt that there is any publicly available software that does exactly what you want.

The only publicly available software that I know of that is close to what you are looking for is BTCPay Server (https://btcpayserver.org/). Perhaps one of the devs who work on that would be willing to write your custom software.

Join an anti-signature campaign: Click ignore on the members of signature campaigns.
PGP Fingerprint: 6B6BC26599EC24EF7E29A405EAF050539D0B2925 Signing address: 13GAVJo8YaAuenj6keiEykwxWUZ7jMoSLt
RickDeckard
Legendary
*
Offline Offline

Activity: 1092
Merit: 3078



View Profile
July 08, 2024, 09:13:54 PM
Merited by ABCbits (1)
 #10

I doubt that there is any publicly available software that does exactly what you want.

The only publicly available software that I know of that is close to what you are looking for is BTCPay Server (https://btcpayserver.org/). Perhaps one of the devs who work on that would be willing to write your custom software.
I suppose that OP could explore BTCPay Server functionalities because it has an API that allows for customs integrations[1] but I'm unsure if it would be adequate for a casino-like implementation. Perhaps you could try reach out to other casinos for guidance that already have their business within the forum?

[1]https://docs.btcpayserver.org/CustomIntegration/

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
AlphaBoy (OP)
Jr. Member
*
Offline Offline

Activity: 48
Merit: 3


View Profile WWW
July 09, 2024, 04:09:07 AM
 #11

I doubt that there is any publicly available software that does exactly what you want.

The only publicly available software that I know of that is close to what you are looking for is BTCPay Server (https://btcpayserver.org/). Perhaps one of the devs who work on that would be willing to write your custom software.

Thank you, I saw it.
this is actually good service as all other systems require 50 different of KYC and American banks account or any banks they work with (it spouse to be decentralized currency for god sake).
the only problem with BTCpay that it cannot be registered into a data base, which mean it will be very hard for you to to keep tracks as the API been designed to only work for online shops



I doubt that there is any publicly available software that does exactly what you want.

The only publicly available software that I know of that is close to what you are looking for is BTCPay Server (https://btcpayserver.org/). Perhaps one of the devs who work on that would be willing to write your custom software.
I suppose that OP could explore BTCPay Server functionalities because it has an API that allows for customs integrations[1] but I'm unsure if it would be adequate for a casino-like implementation. Perhaps you could try reach out to other casinos for guidance that already have their business within the forum?

[1]https://docs.btcpayserver.org/CustomIntegration/

Nobody want to share any information.
you might think that since BTC been around for 15 years it became more easy and commen to create systems related to it, but it's the complete opposite.
LoyceV
Legendary
*
Offline Offline

Activity: 3374
Merit: 17018


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
July 09, 2024, 09:12:24 AM
Merited by RickDeckard (1)
 #12

you might think that since BTC been around for 15 years it became more easy and commen to create systems related to it, but it's the complete opposite.
You want a custom payment system on a website you built yourself. That means you'll have to build the interface yourself, there's no point blaming Bitcoin for it.

ABCbits
Legendary
*
Offline Offline

Activity: 2940
Merit: 7650


Crypto Swap Exchange


View Profile
July 09, 2024, 09:13:39 AM
Merited by RickDeckard (1)
 #13

--snip--
Nobody want to share any information.
you might think that since BTC been around for 15 years it became more easy and commen to create systems related to it, but it's the complete opposite.

It's mostly true, since company build their custom software or depends on third party. But bcoin[1] is probably the best you could get. It's already used by some company and it has wallet account feature[2]. But bcoin development is lagging behind these days[3].

[1] https://bcoin.io/
[2] https://bcoin.io/api-docs/index.html#wallet-accounts
[3] https://github.com/bcoin-org/bcoin/issues/1183#issuecomment-2107543005

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
DaveF
Legendary
*
Offline Offline

Activity: 3542
Merit: 6408


Crypto Swap Exchange


View Profile WWW
July 09, 2024, 11:14:31 AM
 #14

Also, keep in mind whatever you use bcoin, BTCpay, whatever, should not be on the same server as whatever application you are putting out there on the web.

It should have very limited access and restrictions since you really don't want to risk funds due to a programming issue on something that has a connection to the internet.

-Dave

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
bitmover
Legendary
*
Online Online

Activity: 2366
Merit: 6112


bitcoindata.science


View Profile WWW
July 09, 2024, 11:37:53 PM
 #15

--snip--
Nobody want to share any information.
you might think that since BTC been around for 15 years it became more easy and commen to create systems related to it, but it's the complete opposite.

It's mostly true, since company build their custom software or depends on third party. But bcoin[1] is probably the best you could get. It's already used by some company and it has wallet account feature[2]. But bcoin development is lagging behind these days[3].

[1] https://bcoin.io/
[2] https://bcoin.io/api-docs/index.html#wallet-accounts
[3] https://github.com/bcoin-org/bcoin/issues/1183#issuecomment-2107543005

I an surprised nobody mentioned bitcoinjs

https://github.com/bitcoinjs/bitcoinjs-lib

I think this is the most important javascript implementation of bitcoin

It is used in websites such as iancoleman.io

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
ABCbits
Legendary
*
Offline Offline

Activity: 2940
Merit: 7650


Crypto Swap Exchange


View Profile
July 10, 2024, 08:35:42 AM
 #16

--snip--
I an surprised nobody mentioned bitcoinjs

https://github.com/bitcoinjs/bitcoinjs-lib

I think this is the most important javascript implementation of bitcoin

It is used in websites such as iancoleman.io

I expect myself and most member aren't programmer, so it's not surprising that library isn't mentioned. While it's true that library is popular, it doesn't seem to have wallet system/feature. And while we're at it, bitcoinjs also mention existence of Bitcore[1] which may fit OP needs since it has few wallet related feature[2].

[1] https://bitcore.io/
[2] https://github.com/bitpay/bitcore?tab=readme-ov-file#applications

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
bitmover
Legendary
*
Online Online

Activity: 2366
Merit: 6112


bitcoindata.science


View Profile WWW
July 10, 2024, 11:56:15 AM
 #17

--snip--
I an surprised nobody mentioned bitcoinjs

https://github.com/bitcoinjs/bitcoinjs-lib

I think this is the most important javascript implementation of bitcoin

It is used in websites such as iancoleman.io

I expect myself and most member aren't programmer, so it's not surprising that library isn't mentioned. While it's true that library is popular, it doesn't seem to have wallet system/feature. And while we're at it, bitcoinjs also mention existence of Bitcore[1] which may fit OP needs since it has few wallet related feature[2].

[1] https://bitcore.io/
[2] https://github.com/bitpay/bitcore?tab=readme-ov-file#applications

You can generate private keys with bitcoinjs, so you can generate a wallet with it.

You can make payments, generate address, etc etc

Here is the documentation
https://bitcoinjs.github.io/bitcoinjs-lib/

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
AlphaBoy (OP)
Jr. Member
*
Offline Offline

Activity: 48
Merit: 3


View Profile WWW
July 10, 2024, 01:35:17 PM
 #18

you might think that since BTC been around for 15 years it became more easy and commen to create systems related to it, but it's the complete opposite.
You want a custom payment system on a website you built yourself. That means you'll have to build the interface yourself, there's no point blaming Bitcoin for it.
dude, I am a noob at these things and never found a clear guide, I mean you can find clear guides to almost anything on the internet but not a single one offer a bitcoin paying system.


Every website that use Bitcoin (games, casino, or exchange platform) has a system where it generate a new bitcoin address for each new user, users also can have more than one.
I created a website that have a small game, players can play against each others using Bitcoin but I have no idea how to create this system and connect it to interact with the website.
It's custodial wallet and you control private keys, not users of your website/ service.

It's not recommended to use web wallets or custodial wallets like what you want to provide. It's risky.

Reminder: do not keep your money in online accounts
Not your keys, not your coins

I am certain that all of these address are for the same wallet since it will be hard to track the deposit and withdrawal of each user unless the entire site run on a single wallet with different address.
Try to check connections of addresses with https://www.walletexplorer.com/
[/quote]

This is very helpful thanks!


Also, keep in mind whatever you use bcoin, BTCpay, whatever, should not be on the same server as whatever application you are putting out there on the web.

It should have very limited access and restrictions since you really don't want to risk funds due to a programming issue on something that has a connection to the internet.

-Dave

will I think I have to cancel the entire project in that case, I don't want any loses I'll find some expert to do it then.


--snip--
Nobody want to share any information.
you might think that since BTC been around for 15 years it became more easy and commen to create systems related to it, but it's the complete opposite.

It's mostly true, since company build their custom software or depends on third party. But bcoin[1] is probably the best you could get. It's already used by some company and it has wallet account feature[2]. But bcoin development is lagging behind these days[3].

[1] https://bcoin.io/
[2] https://bcoin.io/api-docs/index.html#wallet-accounts
[3] https://github.com/bcoin-org/bcoin/issues/1183#issuecomment-2107543005

Very helpful my friend, thank you very much.




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!