Trying to connect Full Node RPC

I am trying to connect to Full Node via RPC following this instruction:

Operating system Windows 10.
Curl version 7.87.0

On the command line I enter:
curl --insecure --cert C:\private_full_node.crt --key C:\private_full_node.key -d ‘{}’ -H “Content-Type: application/json” -X POST https://localhost:8555/get_blockchain_state | python -m json.tool

I get this response:
response

Why isn’t Full Node answering me?

I think the problem is that on Windows you need to use gitbash. This assumes you are pointing to the correct certificate and key, which should be
~/.chia/mainnet/config/ssl/full_node/private_full_node.crt
~/.chia/mainnet/config/ssl/full_node/private_full_node.key

If you want to use curl, I suggest you install gitbash (Git - Downloading Package) and try again.

Alternatively, you can directly access the RPCs from powershell with the chia rpc command, for example:
chia rpc full_node get_blockchain_state

1 Like