Hey everyone,
So every site that deals with Bitcoin, whether it's games, casinos, or exchanges, seems to have a setup where they create a new Bitcoin address for each user, and users can even have multiple addresses. I recently made a small game where players can compete using Bitcoin, but I'm totally lost on how to set up this system and link it to my site.
I'm assuming all these addresses are part of the same wallet because tracking deposits and withdrawals for each user would be tricky otherwise. It seems like the whole site would need to operate on a single wallet with different addresses. I'm pretty new to this, and all my searches keep pointing to "API" and "Bitcoin Node," but I haven't come across any clear guides for Bitcoin. The only straightforward info I found was for Ethereum, which is kinda odd since Bitcoin is way more widely used.
I also noticed that the sites automatically credit your account after just one network confirmation, which shows they're interacting with the blockchain. This also makes it harder to hack.
So, what's the best API system out there, and how can I integrate it into my website?
Thanks a lot.
Wallet systems used by various websites
17 replies 86 views
humbleledgerLegendary
Posts: 1027 · Reputation: 6554
#2Sep 21, 2024, 05:17 PM
I'm pretty sure they use Bitcoin Core (bitcoind, not bitcoin-qt).
An API means you rely on a third party. You should run your own node.
diamond_atlasSenior Member
Posts: 408 · Reputation: 1359
#3Sep 22, 2024, 08:56 PM
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
Try to check connections of addresses with https://www.walletexplorer.com/
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
paul.stakeHero Member
Posts: 651 · Reputation: 3798
#6Sep 25, 2024, 03:26 AM
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.
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.
humbleledgerLegendary
Posts: 1027 · Reputation: 6554
#7Sep 25, 2024, 09:17 AM
OP wants to link his own addresses to his game users. That has nothing to do with WalletExplorer.
Yuo msut hvae mdae a tpyo: https://en.bitcoin.it/wiki/Bitcoind
WalletExplorer isn't a wallet, it's a chain analysis company. That's not what you're looking for.
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.
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?
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?
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.
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/
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
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.
humbleledgerLegendary
Posts: 1027 · Reputation: 6554
#12Sep 26, 2024, 04:22 AM
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.
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
colddiamondHero Member
Posts: 623 · Reputation: 2467
#14Sep 26, 2024, 09:46 AM
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
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/
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.
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
Try to check connections of addresses with https://www.walletexplorer.com/
[/quote]
This is very helpful thanks!
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.
Very helpful my friend, thank you very much.
?Reply
Sign in to reply to this topic
Related topics
- Recovering a Bitcoin wallet and address 8
- CipherSeed: A Comprehensive Guide to Super-Secure Crypto Wallet Backups 5
- What derivation path does mm-gen wallet use? 3
- Looking for wallet software that supports custom P2SH redeem scripts? 19
- Simple Offline Wallet (key-pair) Setup on Linux Without GUI 0
- 2010 Wallet Delivery and Encryption Mystery 19