I have created a coin by forking Bitcoin. Now I want to create web wallet for this, but do not know how to create json-rpc apis to communicate with the daemon server. Is there any proper documentation for this?
Visit API reference (JSON-RPC)
There are several solutions:
- You can build bitcoin-cli (which provides json-rpc communication with deamon through command line), and call bash commands on the server. For example, if You run PHP server, You can asynchronously run bash commands.
- Also You can use json-rpc libraries on your server - feel free to google for them. For example, if You run PHP server, You can use a library like php-bitcoin-api.
- Also, I recommend You to run own blockchain explorer which will help You to communicate with a blockchain of Your coin. For example, try to run bitcoin-abe explorer or any other.
Hope it will be helpful!
There is a doc on the JSON-RPC Interface in the Bitcoin Core repository with some important security information.
bitcoin-cli [options] help List commands bitcoin-cli [options] help <command> Get help for a command
This same information is also available at https://bitcoincore.org/en/doc/
These docs were added as part of the Bitcoin Core release process at least in part by this PR: https://github.com/bitcoin/bitcoin/commit/d6189ff20082a2617f843fa9b8e2635f52a3629a