You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/rpc-reference/rpc.md
+14-2Lines changed: 14 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,10 +45,22 @@ TLS certificates are used to secure the communication.
45
45
The certificates must be used when calling the RPCs from the command line, make sure to use the correct certificates for the services you are calling.
46
46
All endpoints are made with POST with JSON data. The response is a JSON dictionary with a success field, which can be true or false.
47
47
48
+
#### Curl
49
+
50
+
When using curl commands ensure that the `--insecure` (or `-k`) flag is used since the chia client relies on self-signed certificates defined with the `--cert` and `--key` flags:
51
+
An example implementation can be found in the chia docker implementation [here](https://github.com/Chia-Network/chia-docker/blob/d00a988368adb2cc26b9ac24e79e0f109e54b5af/docker-healthcheck.sh#L116).
If you are using the Websockets API, you can go directly through the daemon, which routes requests. Each WebSocket message contains the following fields:
51
-
Some examples can be found here: https://github.com/Chia-Mine/chia-agent.
63
+
Some examples can be found [here](https://github.com/Chia-Mine/chia-agent).
52
64
53
65
```json
54
66
{
@@ -157,7 +169,7 @@ There is also another client here: https://github.com/freddiecoleman/chia-client
157
169
158
170
#### C# Example (courtesy of [Kryptomine](https://www.nuget.org/profiles/Kryptomine.ch))
159
171
160
-
A C# Client can be found on Nuget/Github: https://www.nuget.org/packages/Chia-Client-API
172
+
A C# Client can be found on [Nuget/Github](https://www.nuget.org/packages/Chia-Client-API).
0 commit comments