Skip to content

Commit a90b1b0

Browse files
committed
add Chrome Web Store link
1 parent 99ec42b commit a90b1b0

File tree

1 file changed

+24
-20
lines changed

1 file changed

+24
-20
lines changed

README.md

Lines changed: 24 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# V Browser Extension Wallet
22

3+
## Install from Chrome Web Store
4+
5+
The V Browser Extension Wallet is now listing in Chrome Web Store. You can install it from [here](https://chrome.google.com/webstore/detail/v-wallet-extension/adfnjoodbdcoikkhallnfejjokefkkbd) .
6+
37
## How to build and import to Chrome manually
48

59
1. install node.js from https://nodejs.org
@@ -30,7 +34,7 @@
3034
```
3135

3236
6. import to chrome
33-
Open Chrome browser, go to the `chrome://extensions/` page and click the `Load unpacked extension` button and select the build folder for your extension to install it.
37+
Open Chrome browser, go to the `chrome://extensions/` page and click the `Load unpacked extension` button and select the build folder (`.../v-browser-ext-wallet/dist`) for your extension to install it.
3438

3539
## Web page interaction specification (for dApp developer)
3640

@@ -55,7 +59,7 @@ async function getWalletInfo() {
5559

5660
Result:
5761

58-
```
62+
```
5963
{
6064
"result": true,
6165
"message": "OK",
@@ -78,7 +82,7 @@ async function getAddress() {
7882

7983
Result:
8084

81-
```
85+
```
8286
{
8387
"result": true,
8488
"message": "OK",
@@ -99,7 +103,7 @@ async function getPublicKey() {
99103

100104
Result:
101105

102-
```
106+
```
103107
{
104108
"result": true,
105109
"message": "OK",
@@ -121,7 +125,7 @@ async function getAmount() {
121125

122126
Result:
123127

124-
```
128+
```
125129
{
126130
"result": true,
127131
"message": "OK",
@@ -143,7 +147,7 @@ function getTokenAmount() {
143147
tokenId: '<Token ID>'
144148
}
145149
})
146-
.then((response) => {
150+
.then((response) => {
147151
const tokenAmount = response.data
148152
return tokenAmount
149153
})
@@ -153,7 +157,7 @@ function getTokenAmount() {
153157

154158
Result:
155159

156-
```
160+
```
157161
{
158162
"result": true,
159163
"message": "OK",
@@ -176,7 +180,7 @@ async function getWatchedTokens() {
176180

177181
Result:
178182

179-
```
183+
```
180184
{
181185
"result": true,
182186
"message": "OK",
@@ -230,10 +234,10 @@ function addToken() {
230234

231235
Result:
232236

233-
```
237+
```
234238
{
235239
"result": true,
236-
"message": "OK"
240+
"message": "OK"
237241
}
238242
```
239243

@@ -264,7 +268,7 @@ If you send Token, you need to fill in `tokenId`. Otherwise, if not set `tokenId
264268

265269
Result:
266270

267-
```
271+
```
268272
{
269273
"result": true,
270274
"message": "OK",
@@ -296,7 +300,7 @@ function sendNFTToken() {
296300

297301
Result:
298302

299-
```
303+
```
300304
{
301305
"result": true,
302306
"message": "OK",
@@ -367,7 +371,7 @@ The `contractId` must be lock contract ID or payment channel contract ID. The `m
367371

368372
Result:
369373

370-
```
374+
```
371375
{
372376
"result": true,
373377
"message": "OK",
@@ -402,7 +406,7 @@ The `contractId` can be any contract ID. The `functionIndex` is the function ind
402406

403407
Result:
404408

405-
```
409+
```
406410
{
407411
"result": true,
408412
"message": "OK",
@@ -435,7 +439,7 @@ function registerContractFunction() {
435439

436440
Result:
437441

438-
```
442+
```
439443
{
440444
"result": true,
441445
"message": "OK",
@@ -466,7 +470,7 @@ The `content` is the content bytes, which encoded with Base58.
466470

467471
Result:
468472

469-
```
473+
```
470474
{
471475
"result": true,
472476
"message": "OK",
@@ -478,25 +482,25 @@ Result:
478482

479483
1. If the wallet is first time used without account created, any request will be failed, and the returned result is as follows:
480484

481-
```
485+
```
482486
{
483487
"result": false,
484488
"message": "account is not created"
485489
}
486490
```
487-
491+
488492
To solve this problem, the user needs to **open the extension wallet and create a account** before proceeding to the next step.
489493

490494

491495
2. When the wallet is locked, any request will be failed, and the returned result is as follows:
492496

493-
```
497+
```
494498
{
495499
"result": false,
496500
"message": "account is locked"
497501
}
498502
```
499-
503+
500504
To solve this problem, the user needs to **open the extension wallet and enter the password to unlock** before proceeding to the next step.
501505

502506

0 commit comments

Comments
 (0)