poa_agent v0.1.0 POAAgent.Plugins.Collectors.Eth.Pending View Source

This is a Collector’s Plugin which makes requests to a Ethereum node in order to know if the “pending” has been changed.

This Collector needs the url of the node to iteract. That url must be placed in the args field in the config file. For example:

{:eth_pending, POAAgent.Plugins.Collectors.Eth.Pending, 500, :eth_pending, [url: "http://localhost:8545"]}

In this example, the Collector will check with the Ethereum node every 500 miliseconds if the pending of the node has changed. If that is the case it will send it to the Transfers encapsulated in a POAAgent.Entity.Ethereum.Pending struct