update instructions for sample application

This commit is contained in:
woodser 2025-01-27 10:14:42 -05:00
parent 57cdcff458
commit 6b5503f82e

View File

@ -6,13 +6,6 @@
TypeScript library for using Haveno.
## Install
1. Follow [instructions](https://github.com/haveno-dex/haveno/blob/master/docs/installing.md) to build and start a Haveno daemon: `make haveno-daemon-mainnet`
2. Install envoy, for example: `brew install envoy`
3. Start envoy to proxy between http1 and http2: `envoy -c config/envoy.yaml`
4. Install haveno-ts in your project: `npm install haveno-ts`
## Sample code
```js
@ -32,6 +25,10 @@ const trade = await alice.takeOffer(offers[0].getId(), paymentAccounts[0].getId(
await alice.disconnect();
```
## Sample application
See the [sample application](https://github.com/haveno-dex/haveno-sample-app) to start a Haveno daemon and connect to it from haveno-ts.
## TypeDocs
See [TypeDocs](https://haveno-dex.github.io/haveno-ts/classes/HavenoClient.HavenoClient.html).