This commit is contained in:
Ben 2025-07-28 22:46:58 -07:00
parent b673c640e4
commit e2fabf8cea

View file

@ -29,6 +29,8 @@ func Request(body map[string]any) (responseJSON string, err error) {
return
}
body["id"] = id;
// Also set JSONRPC-2.0
body["jsonrpc"] = "2.0";
// Marshal JSON to bytes
contents, err := json.Marshal(body)