Skip to content

Commit

Permalink
format readame
Browse files Browse the repository at this point in the history
  • Loading branch information
m-aboelenein committed Apr 6, 2024
1 parent ceb8fab commit 6fbbb18
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,34 +24,30 @@ npm i sats-connect

## Usage

### import
### import

```
```ts
import Wallet from 'sats-connect';
```

### Connect Wallet

### Connect Wallet

```
```ts
const response = await Wallet.request('getAccounts', {
purposes: [
AddressPurpose.Payment,
AddressPurpose.Ordinals,
AddressPurpose.Stacks
],
message: 'Cool app wants to know your addresses!'
purposes: [AddressPurpose.Payment, AddressPurpose.Ordinals, AddressPurpose.Stacks],
message: 'Cool app wants to know your addresses!',
});
```

### Request a wallet action

```
```ts
await Wallet.request('sendTransfer', {...});
```

### Disconnect Wallet

```
```ts
await Wallet.disconnect();
```

Expand Down

0 comments on commit 6fbbb18

Please sign in to comment.