Packages

Elixir API client for Lisk Blockchain

Current section

Files

Jump to
elisk lib elisk blocks.ex
Raw

lib/elisk/blocks.ex

defmodule Elisk.Blocks do
@moduledoc """
Functions for retrieving information from blocks.
The responses for each API request have a common basic structure:
"data": {}, //Contains the requested data
"meta": {}, //Contains additional metadata, e.g. the values of `limit` and `offset`
"links": {} //Will contain links to connected API calls from here, e.g. pagination links
"""
@doc """
Get Lisk blocks.
**Method**: GET
Elisk.Blocks.get_blocks(%{})
# => { data, meta, links }
"""
def get_blocks(args) do
Elisk.handle_get_request('/blocks', args)
end
end