haveno-ts

Haveno TypeScript Library

GitHub Workflow Status Twitter Follow Matrix rooms

TypeScript library for using Haveno.

Sample code

import { HavenoClient } from "haveno-ts";

// create client connected to Haveno daemon
const alice = new HavenoClient("http://localhost:8080", "apitest");

// use Haveno daemon
const balances = await alice.getBalances();
const paymentAccounts = await alice.getPaymentAccounts();
const myOffers = await alice.getMyOffers("ETH");
const offers = await alice.getOffers("ETH", "BUY");
const trade = await alice.takeOffer(offers[0].getId(), paymentAccounts[0].getId());

// disconnect client
await alice.disconnect();

Sample application

See the sample application to start a Haveno daemon and connect to it from haveno-ts.

TypeDocs

See TypeDocs.

Run API Tests

See instructions.

Generated using TypeDoc