Kauri API

The API for the open-source, multi-currency Kauri Wallet.
API Development
Installation for Developers working on the Kauri API
go get -u github.com/golang/dep/cmd/dep
go get github.com/Encrypt-S/kauri-api
dep ensure
go run app/main.go
This should build the app and provide you with API functionality @ 127.0.0.1:9002
UI Development
Installation for Developers working on the Kauri Wallet
-
Download the proper kauri-api
binary from releases
-
Extract kauri-api
release
-
Locate the dir containing extracted binaries cd [extract-dir]
-
Run the Go app ./kauri-api
-
Ensure you have NAV daemon (navcoind
) running in your Activity / Process Monitor
-
Setup Postman or something similar to test Kauri API endpoints
Swagger Spec
https://app.swaggerhub.com/apis/Encrypt-S/kauri-api/0.0.1
API Calls
The initial endpoint can be tested in Postman, Paw, Shell, Angular app, etc...
POST to /v1/getrawtransactions
http://127.0.0.1:9002/api/transactions/v1/getrawtransactions
Auth
username: rpcuser
password: rpcpassword
Content-Type: application/json
Body
This is the structure of the raw request body to be used in the POST:
{"transactions": [
{"currency": "NAV", "addresses": ["validNAVaddress1", "validNAVaddress2"]}
]}
Models
The request body above can be organised into the following models:
transactions - Addresses for each currency in wallet
Transactions {
transactions [...]
}
WalletItem - Object containing currency and array of addresses
WalletItem {
currency string
addresses WalletAddresses[...]
}
WalletAddresses - Array of addresses
WalletAddresses [string, string, string]