Skip to content

Commit 8b8828e

Browse files
committed
update scope properties
1 parent 35874e5 commit 8b8828e

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

wallet/reference/multichain-api.md

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,19 @@ This method is defined in [CAIP-25](https://github.com/ChainAgnostic/CAIPs/blob/
3131

3232
#### Parameters
3333

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
3747
with this dapp.
3848
We don't recommend using `requiredScopes` with MetaMask.
3949

@@ -102,8 +112,7 @@ The scopes and properties of the created connection.
102112
"eip155:42161": {
103113
"methods": ["personal_sign"],
104114
"notifications": ["accountsChanged", "chainChanged"],
105-
"accounts": ["eip155:42161:0x0910e12C68d02B561a34569E1367c9AAb42bd810"],
106-
"rpcDocuments": "https://example.com/wallet_extension.json"
115+
"accounts": ["eip155:42161:0x0910e12C68d02B561a34569E1367c9AAb42bd810"]
107116
},
108117
"eip155:0": {
109118
"methods": ["wallet_getPermissions", "wallet_creds_store", "wallet_creds_verify", "wallet_creds_issue", "wallet_creds_present"],

0 commit comments

Comments
 (0)