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: wallet/reference/multichain-api.md
+14-5Lines changed: 14 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,9 +31,19 @@ This method is defined in [CAIP-25](https://github.com/ChainAgnostic/CAIPs/blob/
31
31
32
32
#### Parameters
33
33
34
-
-`optionalScopes`: `object` - Scopes that the wallet can support in order to be used with this dapp.
35
-
-`sessionProperties`: `object` - Properties that the wallet can use to determine if the connection is valid.
36
-
-`requiredScopes`: `object` - (Optional) Scopes that the wallet must support in order to be used
34
+
-`optionalScopes`: `object` - (Optional) [CAIP-217](https://chainagnostic.org/CAIPs/caip-217) authorization scopes that the wallet can support in order to be used with this dapp.
35
+
If scopes are specified, only the following properties are supported:
36
+
-`references`: `array` - (Optional) A list of references to specific blockchains for the namespace ID of this scope.
37
+
This property is mainly used when there would otherwise be duplicate scopes.
38
+
-`methods`: `array` - A list of JSON-RPC methods the dapp or wallet can call.
39
+
-`notifications`: `array` - A list of JSON-RPC notifications the dapp or wallet can send.
40
+
-`accounts`: `array` - (Optional) A list of [CAIP-10](https://github.com/ChainAgnostic/CAIPs/blob/main/CAIPs/caip-10.md)
41
+
account IDs valid within this scope.
42
+
Dapps should only supply this property when they know the set of accounts they would like the user to permit.
43
+
When supplied, these accounts are preselected by default in the account selection process.
44
+
Dapps typically omit this property for the user to select their own accounts.
45
+
-`sessionProperties`: `object` - (Optional) Properties that the wallet can use to determine if the connection is valid.
46
+
-`requiredScopes`: `object` - (Optional) [CAIP-217](https://chainagnostic.org/CAIPs/caip-217) authorization scopes that the wallet must support in order to be used
37
47
with this dapp.
38
48
We don't recommend using `requiredScopes` with MetaMask.
39
49
@@ -102,8 +112,7 @@ The scopes and properties of the created connection.
0 commit comments