Post
Topic
Board Project Development
Re: How do trade sites work? What is coding logic?
by
chmod777
on 22/02/2017, 07:42:17 UTC
the bitcoin RPC API documentation is your best friend, it is easy, just setup a script who will be triggered when a user demands an address, basically it will querry the daemon this way : bitcoin-cli getnewaddress [account]
and for coin management, you will have to rely on bitcoin daemon basic implementation, which is : bitcoin-cli move
It is that easy, what i can advise you to do is not to think of it as beign too much complicated, satoshi and the bitcoin dev team made things easy, just make some scripts and test them, remember that you can always find a way to run a .sh script from webservers if needed, or you can do this using the RPC port instead, but you will have to use SSL ports as the data will be exposed, even if it is running in localhost, i advise you to use SSL.

I want to ask you one last thing.

Do I need to download the bitcoin core wallet when I use the RPC API? So I do not want to be a node. I do not want to download the bitcoin core wallet on the server.
Also do they have RPC APIs in other coins? I do not want to be a node in other coins.

It does not make sense to download core wallets for all coins and keep them on the server. It will take up a lot of space.
How do trade sites do that?