How do I read my testnode waves wallet balance from my PHP program ?
which URL should be used for reading from testnet nodes
Able to read the balance in live mode.
For live waves balance checking, I use the following cURL code:
$opts = [
CURLOPT_URL =>
'https://nodes.wavesplatform.com/assets/balance/<<wallet address>>',
CURLOPT_RETURNTRANSFER => true,
];
$response = curl_exec($curl);
curl_close($curl);
$balance= json_decode($response, true);
echo "This account has ".$balance[balance]/100000000;