You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 17, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+14-16Lines changed: 14 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -245,20 +245,32 @@ In terms of security, speed, and simplicity, we believe this is the best non-cus
245
245
246
246
This readme will be an mixture of documentation and links to code examples. The full documentation is still a work in progress.
247
247
248
-
Below is a step-by-step guide through the protocol.
248
+
Below is a step-by-step guide through the protocol. This guide also includes a live demo that you can run yourself. To view the demo, simply clone this repository, then run the following commands:
249
+
250
+
```sh
251
+
npm install # Install all package dependencies.
252
+
npm run demo {chain} # Run the demo using the selected chain.
253
+
```
254
+
255
+
> Note: The current chains available are `mutiny`, `signet`, and `testnet`. The default chain is `mutiny`.
256
+
257
+
Read more info about the demo [here](demo/README.md).
249
258
250
259
### Create a Client
251
260
261
+
252
262
```ts
253
263
import { EscrowClient } from'@scrow/core/client'
254
264
255
265
const config = {
266
+
// The URL to our escrow server.
256
267
hostname : 'https://bitescrow-signet.vercel.app',
268
+
// The URL to an electrum-based indexer (your choice).
To view the demo, simply clone this repository, then run the following commands:
4
+
5
+
```sh
6
+
npm install # Install all package dependencies.
7
+
npm run demo {chain} # Run the demo using the selected chain.
8
+
```
9
+
10
+
> Note: The current chains available are `mutiny`, `signet`, and `testnet`. The default chain is `mutiny`.
11
+
12
+
The demo will execute step-by-step, and print the communication between client and server to the console.
13
+
14
+
At certain points, the demo will pause and wait for transactions to confirm on the blockchain. Depending on the chain you select, this could take some time!
15
+
16
+
If you have any issues with the demo, please submit an issue ticket and let us know!
0 commit comments