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])
Link to this function get_sync(opts \\ []) View Source
get_sync(Api.options()) :: Api.response()

Get the synchronisation status of the client.

Examples

iex> Ark_Elixir.Loader.get_sync
%{"blocks" => 1, "height" => 2444739, "id" => "17851699462285552610",
"success" => true, "syncing" => false}

iex> Ark_Elixir.Loader.get_sync([network: :dev])