ArkEcosystem Elixir Client v0.1.0 ArkEcosystem.Client.Connection View Source
Documentation for ArkEcosystem.Client.Connection
This module generates a Tesla.Client for use in future requests. Feel free to make your own Tesla Client struct and pass that around.
Link to this section Summary
Link to this section Functions
Create a new instance.
Examples
iex> ArkEcosystem.Client.Connection.new(client)
%Tesla.Client{
fun: nil,
post: [],
pre: [
{Tesla.Middleware.BaseUrl, :call, ["http://172.999.999.173:4002"]},
{Tesla.Middleware.Headers, :call,
[
[
{"Content-Type", "application/json"},
{"nethash",
"578e820911f24e039733b45e4882b73e301f813a0d2c31330dafda84534ffa23"},
{"version", "1.1.1"},
{"port", 1}
]
]},
{Tesla.Middleware.JSON, :call, [[]]},
{Tesla.Middleware.Logger, :call, [[log_level: :debug]]}
]
}