Steemex
Elixir websockets client for steemd. Provides an interface to Steem JSONRPC protocol. Currently under development.
Installation
- Add
steemexto your list of dependencies inmix.exs:
```elixir
def deps do
[{:steemex, "~> 0.1.0"}]
end
```
- Run
mix deps.get
Example
First, add a websockets url for the steemd instance, for example, http://127.0.0.1:8090 to the config.
config :steemex,
url: "STEEM_URL"
Then, launch iex
Steemex.start_link( self() )
# Start Steemex server process which has a locally registered name Steemex.WS
id = Steemex.call(Steemex.WS, ["database_api", "get_dynamic_global_properties", []])
# Steemex.call returns id of your JSONRPC call if you need to reference it in the future
# id is randomly generated
flush
# flush the process mailbox to log incoming message(es)
Roadmap
- Supervisor and option for a developer to provide handler process in the config
- Utility functions
- Add types and structs
- More tests and docs