wip walet restore/list/ debug restore
This commit is contained in:
22
debug_addresses.sh
Normal file
22
debug_addresses.sh
Normal file
@@ -0,0 +1,22 @@
|
||||
#!/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"
|
||||
Reference in New Issue
Block a user