How to Handle Bitcoin Deposits with External APIs?

14 replies 361 views
maxi_2014Newbie
Posts: 7 · Reputation: 34
#1Feb 23, 2023, 11:25 AM
Hey everyone! I need to figure out how to handle Bitcoin deposits, but I'm not sure where to start. I can't run my own node right now since it means downloading the whole blockchain, which seems like a hassle. So, I’m looking into using external APIs only.
2 Reply Quote Share
whale420Senior Member
Posts: 242 · Reputation: 853
#2Feb 23, 2023, 12:33 PM
That sounds tough. Have you thought about BTCpayserver? You could avoid the whole blockchain download thing. If you set it up on a Raspi, you can run it in pruned mode. It provides unique BTC addresses for each transaction instead of using one address all the time.
5 Reply Quote Share
maxi_2014Newbie
Posts: 7 · Reputation: 34
#3Feb 23, 2023, 02:07 PM
Yeah, I don't get why it's so complicated. I thought crypto was supposed to simplify payments. I've seen that BTCpayserver thing, but I need something for Ethereum and Litecoin too. I want to stick with one deposit address to avoid all that confusion.
1 Reply Quote Share
guru2015Member
Posts: 1 · Reputation: 162
#4Feb 24, 2023, 10:16 AM
Payment gateways can handle this for you. There are options like CryptoApi and nowpayments that do this. Running a full node is pretty resource-heavy and it can get pretty technical.
4 Reply Quote Share
Posts: 11 · Reputation: 223
#5Feb 24, 2023, 12:25 PM
I tried quicknode before and it works well. Just be ready to set up SSL, that's the only tricky part. After that, tracking balances is easy.
0 Reply Quote Share
whale420Senior Member
Posts: 242 · Reputation: 853
#6Feb 24, 2023, 01:25 PM
For me, it's all too technical. I prefer letting BTCpay handle my payments. It's open-source and you can add whichever coins you want. Just check out how to add them.
4 Reply Quote Share
maxi_2014Newbie
Posts: 7 · Reputation: 34
#7Feb 24, 2023, 02:57 PM
What do you mean by adding bitcoin? So I just ask them and they enable it? But it’s odd they don’t support Litecoin, which is pretty common for payments.
2 Reply Quote Share
whale420Senior Member
Posts: 242 · Reputation: 853
#8Feb 25, 2023, 11:48 AM
BTCpayserver takes no fees; all funds go straight to your own wallet. Pretty handy if you're using something like a Trezor. And yeah, it started as a Bitcoin thing, but they added more coins later on.
6 Reply Quote Share
Posts: 11 · Reputation: 223
#9Feb 25, 2023, 04:03 PM
I get that, but why are you so set on one address? If you're using a custodial wallet, BTCpay won’t work as it needs a master public key.
3 Reply Quote Share
maxi_2014Newbie
Posts: 7 · Reputation: 34
#10Feb 25, 2023, 09:13 PM
bcoin lets you track balances through their API, but no Litecoin support there.
2 Reply Quote Share
Posts: 13 · Reputation: 184
#11Feb 26, 2023, 02:14 AM
My concept needs a single deposit address. So BTCpay generating new ones won’t fit my needs. I thought I could just call an API for transaction data, but now I’m reconsidering.
1 Reply Quote Share
Posts: 11 · Reputation: 223
#12Feb 26, 2023, 07:01 AM
Nah, you need separate addresses for each deposit. It’s like giving out invoice numbers. If you use the same address, it becomes a mess when multiple users send funds.
0 Reply Quote Share
maxi_2014Newbie
Posts: 7 · Reputation: 34
#13Feb 26, 2023, 08:39 AM
Thanks for clarifying. But I’m still refusing to budge on the single address thing. How I link users is my business, lol. It's like a donation address; just want to log incoming donations.
2 Reply Quote Share
whale420Senior Member
Posts: 242 · Reputation: 853
#14Feb 26, 2023, 09:50 AM
If it’s just for donations, don’t bother with BTCpay. A single BTC address works fine for that. But if you want to track who gives, then BTCpay is the way to go.
3 Reply Quote Share
maxi_2014Newbie
Posts: 7 · Reputation: 34
#15Feb 26, 2023, 01:59 PM
So, running my own node with Bitcoin Core is the best option? Is it really that much better than other tools for getting the data I need?
3 Reply Quote Share

Related topics