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
Copy file name to clipboardExpand all lines: README.md
+24-20Lines changed: 24 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,9 @@
1
1
# V Browser Extension Wallet
2
2
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
+
3
7
## How to build and import to Chrome manually
4
8
5
9
1. install node.js from https://nodejs.org
@@ -30,7 +34,7 @@
30
34
```
31
35
32
36
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.
34
38
35
39
## Web page interaction specification (for dApp developer)
36
40
@@ -55,7 +59,7 @@ async function getWalletInfo() {
55
59
56
60
Result:
57
61
58
-
```
62
+
```
59
63
{
60
64
"result": true,
61
65
"message": "OK",
@@ -78,7 +82,7 @@ async function getAddress() {
78
82
79
83
Result:
80
84
81
-
```
85
+
```
82
86
{
83
87
"result": true,
84
88
"message": "OK",
@@ -99,7 +103,7 @@ async function getPublicKey() {
99
103
100
104
Result:
101
105
102
-
```
106
+
```
103
107
{
104
108
"result": true,
105
109
"message": "OK",
@@ -121,7 +125,7 @@ async function getAmount() {
121
125
122
126
Result:
123
127
124
-
```
128
+
```
125
129
{
126
130
"result": true,
127
131
"message": "OK",
@@ -143,7 +147,7 @@ function getTokenAmount() {
143
147
tokenId:'<Token ID>'
144
148
}
145
149
})
146
-
.then((response) => {
150
+
.then((response) => {
147
151
consttokenAmount=response.data
148
152
return tokenAmount
149
153
})
@@ -153,7 +157,7 @@ function getTokenAmount() {
153
157
154
158
Result:
155
159
156
-
```
160
+
```
157
161
{
158
162
"result": true,
159
163
"message": "OK",
@@ -176,7 +180,7 @@ async function getWatchedTokens() {
176
180
177
181
Result:
178
182
179
-
```
183
+
```
180
184
{
181
185
"result": true,
182
186
"message": "OK",
@@ -230,10 +234,10 @@ function addToken() {
230
234
231
235
Result:
232
236
233
-
```
237
+
```
234
238
{
235
239
"result": true,
236
-
"message": "OK"
240
+
"message": "OK"
237
241
}
238
242
```
239
243
@@ -264,7 +268,7 @@ If you send Token, you need to fill in `tokenId`. Otherwise, if not set `tokenId
264
268
265
269
Result:
266
270
267
-
```
271
+
```
268
272
{
269
273
"result": true,
270
274
"message": "OK",
@@ -296,7 +300,7 @@ function sendNFTToken() {
296
300
297
301
Result:
298
302
299
-
```
303
+
```
300
304
{
301
305
"result": true,
302
306
"message": "OK",
@@ -367,7 +371,7 @@ The `contractId` must be lock contract ID or payment channel contract ID. The `m
367
371
368
372
Result:
369
373
370
-
```
374
+
```
371
375
{
372
376
"result": true,
373
377
"message": "OK",
@@ -402,7 +406,7 @@ The `contractId` can be any contract ID. The `functionIndex` is the function ind
402
406
403
407
Result:
404
408
405
-
```
409
+
```
406
410
{
407
411
"result": true,
408
412
"message": "OK",
@@ -435,7 +439,7 @@ function registerContractFunction() {
435
439
436
440
Result:
437
441
438
-
```
442
+
```
439
443
{
440
444
"result": true,
441
445
"message": "OK",
@@ -466,7 +470,7 @@ The `content` is the content bytes, which encoded with Base58.
466
470
467
471
Result:
468
472
469
-
```
473
+
```
470
474
{
471
475
"result": true,
472
476
"message": "OK",
@@ -478,25 +482,25 @@ Result:
478
482
479
483
1. If the wallet is first time used without account created, any request will be failed, and the returned result is as follows:
480
484
481
-
```
485
+
```
482
486
{
483
487
"result": false,
484
488
"message": "account is not created"
485
489
}
486
490
```
487
-
491
+
488
492
To solve this problem, the user needs to **open the extension wallet and create a account** before proceeding to the next step.
489
493
490
494
491
495
2. When the wallet is locked, any request will be failed, and the returned result is as follows:
492
496
493
-
```
497
+
```
494
498
{
495
499
"result": false,
496
500
"message": "account is locked"
497
501
}
498
502
```
499
-
503
+
500
504
To solve this problem, the user needs to **open the extension wallet and enter the password to unlock** before proceeding to the next step.
0 commit comments