Files
mines/debug_addresses.sh
2025-09-29 23:54:32 +03:00

23 lines
818 B
Bash

#!/bin/bash
echo "Testing address retrieval..."
# Test listreceivedbyaddress
echo "Testing listreceivedbyaddress..."
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 "Response: $RESPONSE"
echo ""
# Test getaddressesbylabel
echo "Testing getaddressesbylabel..."
RESPONSE2=$(curl -s -u "rinrpc:745ce784d5d537fc06105a1b935b7657903cfc71a5fb3b90" \
-H "Content-Type: application/json" \
-d '{"jsonrpc": "2.0", "id": "getaddressesbylabel", "method": "getaddressesbylabel", "params": [""]}' \
"http://localhost:9556/wallet/my-wall")
echo "Response: $RESPONSE2"