Hello I use API litecoin
https://live.blockcypher.com/ltc/address/LVFRdQkMetYwPWw4Gzh9tjozzz284Da4br/The amount keeps track of the past;
root@ubuntu-2gb-nyc3-01:~# litecoin-cli getreceivedbyaccount LVFRdQkMetYwPWw4Gzh9tjozzz284Da4br
0.00000000
in addition
litecoin conf
walletnotify=curl
http://127.0.0.1:80/walletnotifiy.php?transactionhash=%swalletnotifiy.php
<?php
require_once('easybitcoin.php');
$bitcoin = new Bitcoin("XXX","XXX");
$txid=$_GET['transactionhash'];
$txinfo=$bitcoin->gettransaction($txid);
$amount=$txinfo["amount"];
$newfile= fopen("yazi.txt", "w");
fwrite($newfile, $amount);
fclose($newfile);
?>
no data arrives
Thanks