ArkEcosystem Elixir Client v0.1.0 ArkEcosystem.Client.API.One.Loader View Source

Documentation for ArkEcosystem.Client.API.One.Loader

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

Auto-configure the client loader.

Examples

iex> ArkEcosystem.Client.API.One.Loader.autoconfigure(client)
{:ok,
 %{
   "network" => %{
     "explorer" => "http://dexplorer.ark.io",
     "nethash" => "578e820911f24e039733b45e4882b73e301f813a0d2c31330dafda84534ffa23",
     "symbol" => "DѦ",
     "token" => "DARK",
     "version" => 30
   },
   "success" => true
 }}
Link to this function status(client) View Source
status(Telsa.Client.t()) :: ArkEcosystem.Client.response()

Get the blockchain status.

Examples

iex> ArkEcosystem.Client.API.One.Loader.status(client)
{:ok,
 %{"blocksCount" => 0, "loaded" => false, "now" => 3089786, "success" => true}}

Get the synchronisation status of the client.

Examples

iex> ArkEcosystem.Client.API.One.Loader.sync(client)
{:ok,
 %{
   "blocks" => -35,
   "height" => 3102327,
   "id" => "10803247886369746727",
   "success" => true,
   "syncing" => false
 }}