Files
mines/test_list.sh
2025-09-29 23:16:06 +03:00

20 lines
564 B
Bash

#!/bin/bash
echo "Testing wallet list..."
RESPONSE=$(curl -s -u "rinrpc:745ce784d5d537fc06105a1b935b7657903cfc71a5fb3b90" \
-H "Content-Type: application/json" \
-d '{"jsonrpc": "2.0", "id": "listwallets", "method": "listwallets", "params": []}' \
"http://localhost:9556")
echo "Raw response:"
echo "$RESPONSE"
echo ""
echo "Checking if jq is available:"
which jq || echo "jq not found"
echo ""
echo "Trying to parse without jq:"
echo "$RESPONSE" | grep -o '"[^"]*"' | grep -v '"result"' | grep -v '"error"' | grep -v '"id"' | grep -v '"jsonrpc"'