Skip to content
This repository was archived by the owner on Apr 11, 2019. It is now read-only.

Highjhacker/Ark-Elixir-Example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ark-Elixir-Example

A quick CLI application who can retrieve the balance of the specified Ark address.

Built with

Installation

First you need to fetch the dependencies

def deps do
  [
    {:ark_elixir, "~> 0.1.2"}
  ]
end

Then you need to build them

$ mix deps.get

And add this line in your mix.exs for escript

def project do
  [
    app: :ark_elixir_example,
    version: "0.1.0",
    elixir: "~> 1.5",
    start_permanent: Mix.env == :prod,
    escript: [main_module: ArkElixirExample], # This line
    deps: deps()
  ]
end

Usage

You can run the example like this :

$ mix escript.build
>> Generated escript ark_elixir_example with MIX_ENV=dev

$ ./ark_elixir_example -a Acxb4Wxt2oUsXVViHJsenMuRDUjsMHHKeM                                                   
>> %{"balance" => "112013970754", "success" => true,
    "unconfirmedBalance" => "112013970754"}

Authors

  • Jolan Beer - Highjhacker

License

Ark_Elixir is under MIT license. See the LICENSE file for more informations.

About

Basic example of the implementation of the Ark-Elixir library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages