LiskApiElixirClient v0.1.0 LiskApiElixirClient.Node View Source
Functions for retrieving information about Node.
Link to this section Summary
Functions
Get node constants
Get forging status
Get node pending transactions by state
Get node status
Update node forging
Link to this section Functions
Link to this function
constants()
View Source
constants()
View Source
constants() :: Map.t()
constants() :: Map.t()
Get node constants.
Examples
iex> LiskApiElixirClient.Node.constants()
%{
"data" => %{
"build" => "2019-04-10T08:09:54.000Z",
"commit" => "6bbf0fa892649f60fddd2b5d09b5a211c986fbf0",
"epoch" => "2016-05-24T17:00:00.000Z",
"fees" => %{
"dappDeposit" => "10000000",
"dappRegistration" => "2500000000",
"dappWithdrawal" => "10000000",
"delegate" => "2500000000",
"multisignature" => "500000000",
"secondSignature" => "500000000",
"send" => "10000000",
"vote" => "100000000"
},
"milestone" => "2",
"nethash" => "ed14889723f24ecc54871d058d98ce91ff2f973192075c0155ba2b7b70ad2511",
"nonce" => "xv2kgvuwnzd7d0rm",
"protocolVersion" => "1.0",
"reward" => "300000000",
"supply" => "13120395700000000",
"version" => "1.5.1"
},
"links" => %{},
"meta" => %{}
}
Link to this function
get_forging_status()
View Source
get_forging_status()
View Source
get_forging_status() :: Map.t()
get_forging_status() :: Map.t()
Get forging status.
Examples
iex> LiskApiElixirClient.Node.get_forging_status()
Link to this function
get_transactions(args) View Source
Get node pending transactions by state.
Examples
iex> LiskApiElixirClient.Node.get_transactions(%{state: "unprocessed"})
%{
"data" => [],
"links" => %{},
"meta" => %{"count" => 0, "limit" => 10, "offset" => 0}
}
Link to this function
status()
View Source
status()
View Source
status() :: Map.t()
status() :: Map.t()
Get node status.
Examples
iex> LiskApiElixirClient.Node.status()
%{
"data" => %{
"broadhash" => "3062796e3cc415d086af3c959332bd445dcb3f1204c78e04dd78ede388d33090",
"consensus" => 100,
"currentTime" => 1555081155265,
"height" => 8852832,
"loaded" => true,
"networkHeight" => 8852832,
"secondsSinceEpoch" => 90971955,
"syncing" => false,
"transactions" => %{
"confirmed" => 2460054,
"total" => 2460054,
"unconfirmed" => 0,
"unprocessed" => 0,
"unsigned" => 0
}
},
"links" => %{},
"meta" => %{}
}
Link to this function
update_forging_status(args) View Source
Update node forging.
Examples
iex> LiskApiElixirClient.Node.update_forging_status(%{forging: true, password: "mypass", publicKey: "fd061b9146691f3c56504be051175d5b76d1b1d0179c5c4370e18534c5882122"})