1

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?

1

Visit API reference (JSON-RPC)

There are several solutions:

  1. 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.
  2. 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.
  3. 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!

  • bitcoin wallet only allows one user for a single node, i am not getting how to enable my node so that anybody having privete key and address can connect and do transactions through my node. – rahul123 May 15 '18 at 8:09
  • is there any javascript library like web3 .js for ethereum in bitcoin so that we can do transaction directlly without connecting with any wallet. – rahul123 May 15 '18 at 8:14
  • In my opinion, the easiest way is to: 1) Use explorer to check balances and to get inputs and outputs of transactions 2) Use bitcoin-js-lib to generate new addresses, to build and sign transactions 3) Use command line on your server to broadcast transactions to the network (bitcoin-cli sendrawtransaction <hex>) – 0xuser May 15 '18 at 11:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.