Skip to content

Latest commit

 

History

History
32 lines (20 loc) · 729 Bytes

README.md

File metadata and controls

32 lines (20 loc) · 729 Bytes

clj-kwallet

A Clojure library designed to communicate with [https://github.com/Kokosapiens/wallet] http api.

Usage

[org.clojars.kokos/clj-kwallet]

(ns example
    (:require [clj-kwallet :refer :all]))

(def account (create-account))

(def wallet (generate-wallet account))

(println
   (wallet nil get-balance "eth" 0))
;;will print the balance of address at position 0 of specified asset type

(println
   (wallet pr-str get-balance "eth" 0))
;;will print an edn string of the balance of address at position 0 of specified asset type

Wallet service must run before using the library.

License

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.