fix wallet load/dump/list

This commit is contained in:
Dobromir Popov
2025-09-29 23:16:06 +03:00
parent dc8f69c5c3
commit e272755015
7 changed files with 352 additions and 40 deletions

19
test_list.sh Normal file
View File

@@ -0,0 +1,19 @@
#!/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"'