JSON-RPC step-by-step, help?

Camden

Member
Hello everyone.

Is there any step-by-step for JSON-RPC?

I have set up the .conf file:
server=1
rpcuser=bitcoin
rpcpassword=bitcoin

but I am completly lost what to do next, how to connect to it etc. Anyone?
 

Toby

New member
How are you trying to connect to it? Most programming language have a easy to use jsonrpc library, or even wrapper for bitcoin core api calls.
 

Juelz

New member
To get good answer, there are few things that you need to share (but no one force you to do it)
1. What is your goal? You might be stuck on XY problem
2. What tools (programming language, library, etc.) you can or plan to?
How are you trying to connect to it? Most programming language have a easy to use jsonrpc library, or even wrapper for bitcoin core api calls.
And you can check https://en.bitcoin.it/wiki/API_reference_(JSON-RPC) if you need example or have no idea how to do it.
 

Anakin

New member
I have set up the .conf file:
server=1
rpcuser=bitcoin
rpcpassword=bitcoin

but I am completly lost what to do next, how to connect to it etc. Anyone?
You need to change your rpcpassword to something random, and you should do the same for your rpcuser as well. If you don't, you will get robbed if you have any coin in your wallet used by bitcoin core.
 

Marquis

New member
I wrote a script in python to help you get started. You should be able to extrapolate the below into whatever you are trying to do
 

Darwin

New member
Hello everyone.

Is there any step-by-step for JSON-RPC?

I have set up the .conf file:
server=1
rpcuser=bitcoin
rpcpassword=bitcoin

but I am completly lost what to do next, how to connect to it etc. Anyone?
If you are using PHP, then make a JSON-RPC call to your node through cURL.
 
Top