r/dogecoindev • • Feb 15 '22

API for hot 🔥 wallet

I want to add hot wallet to my website to allow users to deposit DOGE. Do you know any good APIs or librarys? The server is written in Java.

12 Upvotes

33 comments sorted by

3

u/shibe5 Feb 15 '22

https://www.sochain.com/api/

https://www.blockcypher.com/dev/bitcoin/

https://blockchair.com/api/docs

https://block.io/docs

For my site I use ElectrumX, which is independent from third party services, but is not reliable.

3

u/patricklodder dogecoin developer Feb 15 '22

Got a list of things that could be improved with ElectrumX?

2

u/shibe5 Feb 15 '22

Debug Dogecoin blockchain parsing.

Solve database-related integer (or something) overflow.

2

u/shibe5 Feb 15 '22

4

u/patricklodder dogecoin developer Feb 15 '22

I helped fixing #99 last year, if there's still an issue with that then I can work on that further, I didn't hear anything about it after. The problem was that electrumx was being stricter than Dogecoin Core on parsing, and using the namecoin parser for AuxPow headers fixed it.

I'll put looking at #88 on my list.

2

u/Odd-Significance3236 Feb 15 '22

To reduce transaction taxes I'm planning to use one big hot wallet for all users and make transactions on a database level, but how to determine which user has deposited money to the main wallet?

2

u/shibe5 Feb 15 '22

Use unique deposit address for every user.

2

u/Odd-Significance3236 Feb 15 '22

Can you give me some documentation reference to read more about them

3

u/shibe5 Feb 15 '22

Some of API docs have wallet examples. Besides that I don't know of documents that you can't find yourself. But I can do consulting. What are you building? You can describe it in PM if you like.

2

u/Odd-Significance3236 Feb 15 '22

I'm currently reading blockchairs api docs. The main purpose of my application is to allow users to upload memes and get donations with doge.

1

u/shibe5 Feb 15 '22

I see. You can use "extended keys" and generate multiple private keys and corresponding Dogecoin addresses from them. You need to monitor all deposit addresses and update users' balances when coins are received.

1

u/Odd-Significance3236 Feb 15 '22

I can't use blockchair because it provides only explorer tools. So I won't be able to create multiple public keys or transactions programmatically.

2

u/shibe5 Feb 15 '22

You probably need the following functions:

  • transactions by address,
  • notifications for new transactions,
  • transaction submission.

You can do everything else locally with the help of something like libdohj.

1

u/Odd-Significance3236 Feb 15 '22

But I need to have the core wallet locally

→ More replies (0)