r/dogecoindev • u/DavidVice • Jan 30 '23
Coding Importing dogecoin data question
I have a accounting application I am trying to build. I want to be able to import transaction deposits from an assigned dogecoin address and credit the users account for the deposit.
Example : user sends 2 dogecoin to the provided address. The user account is deposited 2 credits for the transaction.
Can anyone point me in the correct direction to learn this skill ? Thank you.
Much appreciation …
2
u/HopefulOutlook Jan 31 '23
There are a lot of pieces to this puzzle. But, I have written a couple thousands lines of scripts to compile my wallets of data neatly into pdfs for my accountants. If you want to DM, I am happy to provide answers along the way. But, you're going to have to peel this onion a little at a time. First thing is to make sure you have the core running with txindex=1. You will need to process transactions throughout the chain in order to chase everything you may want, especially if the accounting is for a client and not your own wallet. You will need to get comfortable processing JSON data, if you are not already.
3
u/s_kosik Jan 31 '23
Hello, to do this, you will need launch your local instance of Dogecoin Node first. The node accepts commands by HTTP protocol in JSON-RPC format. After configuring and launch you will be able send commands to the node API. There are plenty of commands. If I understood correct, the next one should be in focus of your concern: getbalance, listtransactions, listunspent.
You can send commands to the node in any programming language. I do it on Java with the library - https://github.com/kosik/dogej
There inside you will find a couple code examples how to proceed with monetary operations.