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

31
compare_wallets.sh Normal file
View File

@@ -0,0 +1,31 @@
#!/bin/bash
echo "=== Comparing main vs my-wall wallets ==="
echo ""
echo "Main wallet info:"
curl -s -u "rinrpc:745ce784d5d537fc06105a1b935b7657903cfc71a5fb3b90" \
-H "Content-Type: application/json" \
-d '{"jsonrpc": "2.0", "id": "getwalletinfo", "method": "getwalletinfo", "params": []}' \
"http://localhost:9556/wallet/main" | grep -E '"format"|"keypoololdest"|"hdseedid"|"hdmasterkeyid"|"private_keys_enabled"|"descriptors"' | head -10
echo ""
echo "My-wall wallet info:"
curl -s -u "rinrpc:745ce784d5d537fc06105a1b935b7657903cfc71a5fb3b90" \
-H "Content-Type: application/json" \
-d '{"jsonrpc": "2.0", "id": "getwalletinfo", "method": "getwalletinfo", "params": []}' \
"http://localhost:9556/wallet/my-wall" | grep -E '"format"|"keypoololdest"|"hdseedid"|"hdmasterkeyid"|"private_keys_enabled"|"descriptors"' | head -10
echo ""
echo "Checking if mining address exists in main wallet:"
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" | grep -E '"ismine"|"address"'
echo ""
echo "Checking if mining address exists in my-wall wallet:"
curl -s -u "rinrpc:745ce784d5d537fc06105a1b935b7657903cfc71a5fb3b90" \
-H "Content-Type: application/json" \
-d '{"jsonrpc": "2.0", "id": "validateaddress", "method": "validateaddress", "params": ["rin1qahvvv9d5f3443wtckeqavwp9950wacxfmwv20q"]}' \
"http://localhost:9556/wallet/my-wall" | grep -E '"ismine"|"address"'