qtum-snap 1.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -0
- package/dist/bundle.js +131225 -0
- package/images/icon.svg +14 -0
- package/package.json +100 -0
- package/snap.manifest.json +41 -0
package/README.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# QTum Wallet
|
|
2
|
+
|
|
3
|
+
QTum wallet is a snap, that allows to interact with QTum blockchain by implementing metamask RPC requests handlers https://docs.metamask.io/wallet/reference/json-rpc-api/.
|
|
4
|
+
|
|
5
|
+
## Methods
|
|
6
|
+
|
|
7
|
+
### To interact with it, simply use wallet_invokeSnap as proxy to call snap methods.
|
|
8
|
+
|
|
9
|
+
```javascript
|
|
10
|
+
await window.ethereum.request({
|
|
11
|
+
method: 'wallet_invokeSnap',
|
|
12
|
+
params: {
|
|
13
|
+
snapId: 'snapId',
|
|
14
|
+
request: { method: 'eth_call', params: [...myParams] },
|
|
15
|
+
},
|
|
16
|
+
});
|
|
17
|
+
```
|