Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
cmd committed Jan 31, 2024
1 parent 26f6a4e commit b18b7bb
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions docs/deposit.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,19 +214,6 @@ interface SpendRequest {
}
```

Here is an example of closing a deposit.

```ts
// Request the funders device to sign a covenant.
const covenant = signer.account.commit_utxo(account, contract, utxo)
// Build our registration request.
const reg_req = { covenant, deposit_pk, sequence, spend_xpub, utxo }
// Deliver our registration request to the server.
const res = await client.deposit.fund(reg_req)
// Check the response is valid.
if (!res.ok) throw new Error(res.error)
```

## Interfaces

#### DepositData
Expand Down

0 comments on commit b18b7bb

Please sign in to comment.