Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经知道使用这种方法“tronweb.contract().at(contractAddress).Transfer.watch()”我可以监听特定合约的传输事件,但我不知道我该如何监听TRX 本身?
没有官方文档中提到的方法,您可以使用 Kafka 或 Mongodb 插件并将其连接到节点,但也有 HTTP API,
事件查询http
您可以创建一个间隔来获取结果,并且当所需的输出到手时,请清楚这一点
请注意,TRON 网络每约 7 秒产生一个新块