TypeScript library for using Haveno
  • TypeScript 99.2%
  • Dockerfile 0.3%
  • JavaScript 0.3%
  • Shell 0.2%
Find a file
2026-02-16 10:22:59 -05:00
.github increase CI timeout to 120 minutes 2025-12-12 07:38:44 -04:00
config remove admin access log path from envoy configs 2026-02-08 15:53:52 -05:00
dist bump version to v0.0.38, update dist 2025-09-25 00:21:22 -04:00
docker test arbitrators use separate monero node to avoid interference 2026-01-30 14:22:24 -05:00
docs move instructions to test api to docs, add windows notes (#415) 2026-02-08 15:54:05 -05:00
scripts add dockerize and add project on Github CI/CD 2022-12-16 15:02:10 +00:00
src wait for account witnesses to be published before shutting down (#416) 2026-02-16 10:22:59 -05:00
.editorconfig enable and apply eslint rules 2022-05-02 15:21:48 -04:00
.eslintignore enable and apply eslint rules 2022-05-02 15:21:48 -04:00
.eslintrc.json support local, stagenet, and mainnet xmr network configurations (#122) 2022-07-07 09:11:50 -04:00
.gitignore add dockerize and add project on Github CI/CD 2022-12-16 15:02:10 +00:00
.project rename haveno-ui-poc project to haveno-ts 2022-05-03 08:06:56 -04:00
_config.yml add _config.yml for github pages documentation 2022-05-02 16:43:42 -04:00
babel.config.js convert to typescript library 2022-05-05 22:25:08 -04:00
jest.config.cjs fix ts errors in tests 2024-08-29 12:40:52 -04:00
LICENSE change license to apache 2.0 (#6) 2021-09-10 06:43:06 -04:00
package-lock.json update to monero-ts v0.11.8 2026-01-30 14:22:24 -05:00
package.json prepend bash for npm prepare script 2026-02-08 15:53:52 -05:00
README.md move instructions to test api to docs, add windows notes (#415) 2026-02-08 15:54:05 -05:00
tsconfig.json do not emit tests to dist folder 2024-09-20 21:30:40 -04:00

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.