mirror of
https://github.com/haveno-dex/haveno-ts.git
synced 2025-03-06 05:06:07 -05:00
update instructions for sample application
This commit is contained in:
parent
57cdcff458
commit
6b5503f82e
11
README.md
11
README.md
@ -6,13 +6,6 @@
|
|||||||
|
|
||||||
TypeScript library for using Haveno.
|
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
|
## Sample code
|
||||||
|
|
||||||
```js
|
```js
|
||||||
@ -32,6 +25,10 @@ const trade = await alice.takeOffer(offers[0].getId(), paymentAccounts[0].getId(
|
|||||||
await alice.disconnect();
|
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
|
## TypeDocs
|
||||||
|
|
||||||
See [TypeDocs](https://haveno-dex.github.io/haveno-ts/classes/HavenoClient.HavenoClient.html).
|
See [TypeDocs](https://haveno-dex.github.io/haveno-ts/classes/HavenoClient.HavenoClient.html).
|
||||||
|
Loading…
x
Reference in New Issue
Block a user