Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 6144

How to use RPC javascript to connect to bitcoin daemon running in the server?

$
0
0

I'm new in RPC. I developed a board which use many coin to exchange . But my board is based on other website api to get the BTC address for users. And i want it to be independent. So i was searching and i found this that i can set up bitcoin daemon on the server and configure it using RPC (RPCuser, RPCpassword, RPCport ... etc) And then use javascript to connect my board to the bitcoin daemon to get every user his BTC wallet address. My problem is i'm new in RPC javascript development. So could you please give me a simple code of javascript using RPC to connect to Bitcoin daemon and get a new wallet address, balance, send and receive money, History ... etc.? I already installed Bitcoin daemon on my server and i ran it. I only left with the javascript code. This is my bitcoin.conf file information:

rpcuser=usernamerpcpassword=mypassword rpcallowip=127.0.0.1rpcallowip=xxx.xxx.xxx.xxxrpcallowip=xxx.xxx.xxx.xxxrpcport=8332server=1daemon=1listen=1txindex=1

Viewing all articles
Browse latest Browse all 6144

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>