我正在使用 php。我想通过用户的 ETH 地址获取所有存款交易。我正在使用“geth”客户端。我无法获取任何用于获取事务的 json rpc api。根据在互联网上的搜索,我尝试了“eth_newFilter”、“eth_getFilterChanges”、“eth_getFilterLogs”。我为“eth_newFilter”设置了以下参数
array(
'jsonrpc'=>'2.0',
'method'=>'eth_newFilter',
'params'=>array(array("fromBlock"=> "0x0",
"toBlock"=> "latest",'address'=>'0x14e15d73db916e14fdb91de38da2c59181876200',
'topics'=>[])),
'id'=>time()
);
作为回应,我得到了 id,并且在“eth_getFilterChanges”、“eth_getFilterLogs”中使用了该 id,但两者都返回空结果。
任何人都可以帮助了解如何获取特定地址的交易列表吗?