Waveschainex is an Elixir/Erlang client for Waves REST API.
If available in Hex, the package can be installed
by adding waveschainex to your list of dependencies in mix.exs:
def deps do
[
{:waveschainex, "~> 0.1.0"}
]
endThe docs can be found at https://hexdocs.pm/waveschainex.
Default setting for WAVES nodes API is https://nodes.wavesnodes.com.
To configure a custom url use the following config setings:
config :waveschainex,
waves_node_url: "YOUR_CUSTOM_URL"
All functions are documented, covered by tests and include typespecs.
balance(client, address, _opts \\ []): Account's balancedata(client, address, _opts \\ []): Read all data posted by an account using Data Transactionspublic_key(client, address, _opts \\ []): Generate a address from public key
at(client, height, _opts \\ []): Get block at specified heightheight(client, _opts \\ []): Get blockchain heightlast(client, _opts \\ []): Get last block datasignature(client, signature, _opts \\ []): Get block for specified Base58 signature
balance(client, address, asset_id, _opts \\ []): Account balance by given assetbalances(client, address, _opts \\ []): Account's balances for all assetsdetails(client, asset_id, _opts \\ []): Provides detailed information about given asset
info(client, id, _opts \\ []): Get transaction infounconfirmed(client, _opts \\ []): Get list of unconfirmed transactions
status(client, _opts \\ []): Get status of the running nodeversion(client, _opts \\ []): Get Waves node version
