wip walet restore/list/ debug restore

This commit is contained in:
Dobromir Popov
2025-09-29 23:54:32 +03:00
parent 0d34b69fb4
commit fca9d8a8a3
8 changed files with 284 additions and 35 deletions

39
debug_wallet_addresses.sh Normal file
View File

@@ -0,0 +1,39 @@
#!/bin/bash
echo "=== Debugging wallet addresses ==="
echo ""
echo "Testing main wallet addresses..."
MAIN_RESPONSE=$(curl -s -u "rinrpc:745ce784d5d537fc06105a1b935b7657903cfc71a5fb3b90" \
-H "Content-Type: application/json" \
-d '{"jsonrpc": "2.0", "id": "listreceivedbyaddress", "method": "listreceivedbyaddress", "params": [0, true, true]}' \
"http://localhost:9556/wallet/main")
echo "Main wallet raw response:"
echo "$MAIN_RESPONSE"
echo ""
echo "Main wallet parsed addresses:"
echo "$MAIN_RESPONSE" | grep -o '"address":"[^"]*"' | cut -d'"' -f4 | head -10
echo ""
echo "Testing my-wall wallet addresses..."
MYWALL_RESPONSE=$(curl -s -u "rinrpc:745ce784d5d537fc06105a1b935b7657903cfc71a5fb3b90" \
-H "Content-Type: application/json" \
-d '{"jsonrpc": "2.0", "id": "listreceivedbyaddress", "method": "listreceivedbyaddress", "params": [0, true, true]}' \
"http://localhost:9556/wallet/my-wall")
echo "My-wall wallet raw response:"
echo "$MYWALL_RESPONSE"
echo ""
echo "My-wall wallet parsed addresses:"
echo "$MYWALL_RESPONSE" | grep -o '"address":"[^"]*"' | cut -d'"' -f4 | head -10
echo ""
echo "Checking specific mining address in main wallet..."
MINING_CHECK=$(curl -s -u "rinrpc:745ce784d5d537fc06105a1b935b7657903cfc71a5fb3b90" \
-H "Content-Type: application/json" \
-d '{"jsonrpc": "2.0", "id": "validateaddress", "method": "validateaddress", "params": ["rin1qahvvv9d5f3443wtckeqavwp9950wacxfmwv20q"]}' \
"http://localhost:9556/wallet/main")
echo "Mining address validation:"
echo "$MINING_CHECK"