Skip to content

ManuGowda/lisk-api-elixir-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lisk Elixir - API Client

CircleCI

Elixir API Client for accessing Lisk Blockchain

Installation

The package can be installed by adding lisk_api_elixir_client to your list of dependencies in mix.exs:

def deps do
  [
    {:lisk_api_elixir_client, "~> 0.1.0"}
  ]
end

Usage

iex> LiskApiElixirClient.Node.status()
%{
  "data" => %{
    "broadhash" => "4df8be28486164157e7673a344629791912ad9e8fec3ba7446e897748aeaa742",
    "consensus" => 93,
    "currentTime" => 1555078242426,
    "height" => 8852541,
    "loaded" => true,
    "networkHeight" => 8852541,
    "secondsSinceEpoch" => 90969042,
    "syncing" => false,
    "transactions" => %{
      "confirmed" => 2460045,
      "total" => 2460045,
      "unconfirmed" => 0,
      "unprocessed" => 0,
      "unsigned" => 0
    }
  },
  "links" => %{},
  "meta" => %{}
}

Docs

Please refer API docs for more details https://hexdocs.pm/lisk_api_elixir_client/LiskApiElixirClient.Node.html#content