Skip to content

Commit 8318a06

Browse files
authored
Merge pull request #41 from PiotrNap/patch-1
Update browserwallet.mdx
2 parents 0ee9a61 + 1071047 commit 8318a06

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed

apps/docs/content/docs/apis/wallets/browserwallet.mdx

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ Example response:
4545

4646
## Connect Wallet
4747

48-
This is the entrypoint to start communication with the user's wallet. The wallet should request the user's permission to connect the web page to the user's wallet, and if permission has been granted, the wallet will be returned and exposing the full API for the app to use.
48+
This is the entry point to start communication with the user's wallet. The wallet should request the user's permission to connect the web page to the user's wallet, and if permission has been granted, the wallet will be returned, exposing the full API for the app to use.
4949

5050
Query `BrowserWallet.getAvailableWallets()` to get a list of available wallets, then provide the wallet `name` for which wallet the user would like to connect with.
5151

52-
You can also provide an `extensions` object to enable specific CIPs. For Example response, to enable CIP95, you would pass:
52+
You can also provide an `extensions` object to enable specific CIPs. For example, to enable CIP95, you would pass:
5353

5454
```tsx
5555
await BrowserWallet.enable('eternl', [95]);
@@ -126,9 +126,9 @@ Applications can use this API to manage transaction outputs effectively, ensurin
126126

127127
## Get Collateral
128128

129-
This API retrieves a list of UTXOs (unspent transaction outputs) controlled by the wallet that can be used as collateral inputs for transactions involving Plutus scripts. The returned UTXOs must meet or exceed the specified ADA value target.
129+
This API retrieves a list of UTXOs (unspent transaction outputs), controlled by the wallet, that can be used as collateral inputs for transactions involving Plutus scripts. The returned UTXOs must meet or exceed the specified ADA value target.
130130

131-
If the target cannot be met, an error message will be returned explaining the issue. Wallets may return UTXOs with a greater total ADA value than requested but must never return UTXOs with a smaller total value.
131+
If the target cannot be met, an error message will be returned explaining the issue. Wallets may return UTXOs with a greater total ADA value than requested, but must never return UTXOs with a smaller total value.
132132

133133
This functionality is essential for applications that need to create transactions requiring collateral inputs.
134134

@@ -293,7 +293,7 @@ Example response:
293293

294294
## Sign Data
295295

296-
This endpoint utilizes the CIP-8 - Message Signing to sign arbitrary data, to verify the data was signed by the owner of the private key.
296+
This endpoint uses CIP-8 message signing to sign arbitrary data and verify that the signature comes from the holder of the corresponding private key.
297297

298298
`signData` takes two arguments, the first one is the payload to sign and the second one is the address (optional).
299299

@@ -319,7 +319,7 @@ Example response:
319319
}
320320
```
321321

322-
Continue reading this guide to learn how to verify the signature.
322+
Check out [this guide](https://meshjs.dev/guides/prove-wallet-ownership#server-verify-signature) to learn how to verify the signature.
323323

324324

325325
## Sign Transaction
@@ -335,15 +335,13 @@ Requests user to sign the provided transaction (`tx`). The wallet should ask the
335335
const signedTx = await wallet.signTx(tx, partialSign?);
336336
```
337337
338-
Check out Transaction to learn more on how to use this API.
338+
Check out [Transaction](https://docs.meshjs.dev/transactions) to learn more on how to use this API.
339339
</Card>
340340
341341
342342
## Submit Transaction
343343
344-
Wallets inherently have the ability to submit transactions. This API allows applications to request the wallet to send a transaction. If the wallet accepts the transaction and successfully sends it, it will return the transaction ID, enabling the application to track its status. In case of errors during submission, the wallet will provide error messages or failure details.
345-
346-
This functionality is useful for applications that need to interact with the blockchain by submitting signed transactions through the user's wallet.
344+
This API lets applications ask a wallet to submit signed transactions. On success, the wallet returns a transaction ID for tracking. On failure, it returns error details.
347345
348346
<Card>
349347
#### Submit Transaction [!toc]
@@ -354,13 +352,13 @@ This functionality is useful for applications that need to interact with the blo
354352
const txHash = await wallet.submitTx(signedTx);
355353
```
356354
357-
Check out Transaction to learn more on how to use this API.
355+
Check out [Transaction](https://docs.meshjs.dev/transactions) to learn more on how to use this API.
358356
</Card>
359357
360358
361359
## Get Assests
362360
363-
Returns a list of assets in wallet excluding lovelace.
361+
Returns a list of assets in the wallet, excluding lovelace.
364362
365363
<Card>
366364
#### Get Assets [!toc]
@@ -402,7 +400,7 @@ Applications can use this information to display the wallet's balance or perform
402400
<Card>
403401
#### Get Lovelace [!toc]
404402
405-
Get amount of ADA in connected wallet
403+
Get amount of ADA in the connected wallet
406404
407405
```tsx
408406
await wallet.getLovelace();
@@ -568,4 +566,4 @@ Get a list of unregistered public stake keys.
568566
```tsx
569567
await wallet.getUnregisteredPubStakeKeys();
570568
```
571-
</Card>
569+
</Card>

0 commit comments

Comments
 (0)