fix wallet load/dump/list
This commit is contained in:
19
test_list.sh
Normal file
19
test_list.sh
Normal 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"'
|
||||
Reference in New Issue
Block a user