iota_lib v0.0.1 Iota.Node
Represents a process to interface with a IOTA node.
Sample configuration:
config :iota_lib, :node_addr, “http://localhost:14265”
Sample use:
{:ok, pid} = Iota.Node.start_link()
info = GenServer.call(pid, :node_info)
IO.puts info.latestMilestone
Link to this section Summary
Functions
Query the IOTA node for the balance of an array of addresses passed as argument Example
Link to this section Functions
Link to this function
handle_call(msg, from, state)
Query the IOTA node for the balance of an array of addresses passed as argument Example:
GenServer.call(node_pid, {:balances, ["FFUIAREGAAAHNTPJRGRFCNCNOTKTKPWJEGUDWQHZVVO9MTAXZIDMXBMWJXTLUBHNFNKYCCTQUXOUYFKX9"]})
Returns a map containing the balances in an array accessible through the balances
key. The order of balances is the same as that of the addresses parameter array.
The map also contains a milestone and milestoneIndex field.
In the documentation, the threshold is required to be 100, so it is not passed as
an argument in that call.
Link to this function
start_link(options \\ [])