I'm making a bitcoin solo miner, what is the URL to get the current block header a with JSON call? I also need the URL where the work will be sent if a valid solution is found.
Right now I'm trying to understand how the solo mining process works. From what I've found on the internet, to get and receive data from the bitcoin network I need to make some JSON calls, but I don't know the URL and the format. If I understand correctly, this is how I think the miner works:
- Get header from the network
- Find the nonce that makes the header hash to a low enough value
- Send the data out to the network
- If the nonce is correct get paid
Am I correct? Are there any tutorials or can someone give me an explanation of how this process works?