55 description : >-
66 This provides the specs for the MultiChain API Layer for the MetaMask API
77methods :
8+ - name : wallet_notify
9+ paramStructure : by-name
10+ params :
11+ - name : scope
12+ description : a valid `scope` string that has been previously authorized via `provider_authorize`
13+ required : true
14+ schema :
15+ $ref : " #/components/schemas/ScopeString"
16+ - name : notification
17+ description : an object containing a JSON-RPC notification with `method` and `params`
18+ deprecated : false
19+ required : true
20+ schema :
21+ type : " object"
22+ properties :
23+ method :
24+ type : " string"
25+ params :
26+ true
827 - name : wallet_invokeMethod
928 paramStructure : by-name
1029 params :
@@ -24,11 +43,6 @@ methods:
2443 type : " string"
2544 params :
2645 true
27- - name : " sessionId"
28- description : >-
29- [CAIP-171](https://chainagnostic.org/CAIPs/caip-171) `SessionId` referencing a known, open session
30- schema :
31- type : " string"
3246 result :
3347 name : wallet_invokeMethodResult
3448 schema :
@@ -42,8 +56,6 @@ methods:
4256 value :
4357 method : eth_getBalance
4458 params : []
45- - name : sessionId
46- value : " 0xdeadbeef"
4759 result :
4860 name : wallet_invokeMethodResult
4961 value : " 0x1"
@@ -239,9 +251,6 @@ methods:
239251 schema :
240252 type : object
241253 properties :
242- sessionId :
243- description : A unique identifier for the session. Defined by [CAIP-171](https://github.com/ChainAgnostic/CAIPs/blob/master/CAIPs/caip-171.md)
244- type : string
245254 sessionScopes :
246255 $ref : " #/components/schemas/SessionScopes"
247256 sessionProperties :
@@ -314,7 +323,6 @@ methods:
314323 result :
315324 name : wallet_createSessionResultExample
316325 value :
317- sessionId : " 0xdeadbeef"
318326 sessionScopes :
319327 eip155:1337 :
320328 accounts :
@@ -398,7 +406,7 @@ components:
398406 SessionScopes :
399407 type : object
400408 patternProperties :
401- " [-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32} " :
409+ " [-a-z0-9]{3,8}( :[-_a-zA-Z0-9]{1,32})? " :
402410 $ref : " #/components/schemas/Scope"
403411 ScopeString :
404412 type : string
0 commit comments