Ark_Elixir v0.1.3 Ark_Elixir.Loader View Source
Operations for Loaders.
Link to this section Summary
Functions
Auto-configure the client loader
Get the blockchain status
Get the synchronisation status of the client
Link to this section Functions
Link to this function
autoconfigure(opts \\ [])
View Source
autoconfigure(Api.options()) :: Api.response()
Auto-configure the client loader.
Examples
iex> Ark_Elixir.Loader.autoconfigure
%{"network" => %{"explorer" => "https://explorer.ark.io",
"nethash" => "6e84d08bd299ed97c212c886c98a57e36545c8f5d645ca7eeae63a8bd62d8988",
"symbol" => "Ѧ", "token" => "ARK", "version" => 23}, "success" => true}
iex> Ark_Elixir.Loader.autoconfigure([network: :dev])
Link to this function
get_status(opts \\ [])
View Source
get_status(Api.options()) :: Api.response()
Get the blockchain status.
Examples
iex> Ark_Elixir.Loader.get_status
%{"blocksCount" => 0, "loaded" => false, "now" => 2286032, "success" => true}
iex> Ark_Elixir.Loader.get_status([network: :dev])