Skip to content

Commit

Permalink
clarify scope and filterAccountChains
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandratran committed Mar 1, 2024
1 parent d9c70bf commit e5285e7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions snaps/reference/keyring-api/account-management/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,22 +154,22 @@ An object containing:

### `keyring_filterAccountChains`

Filters for chains that an account can be used on.
Filters for blockchain networks that an account can be used on.

#### Parameters

An object containing:

- `id`: `string` - Account ID (UUIDv4).
- `chains`: `string[]` - List of [CAIP-2](https://github.com/ChainAgnostic/CAIPs/blob/main/CAIPs/caip-2.md)
chain IDs to filter.
chain IDs of blockchain networks to filter.

#### Returns

An object containing:

- `chains`: `string[]` - List of [CAIP-2](https://github.com/ChainAgnostic/CAIPs/blob/main/CAIPs/caip-2.md)
chain IDs that the account can be used on.
chain IDs of blockchain networks that the account can be used on.

#### Example

Expand Down
4 changes: 2 additions & 2 deletions snaps/reference/keyring-api/account-management/objects.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ A request object contains:
- `request` - Inner request sent by the client application, containing:
- `method`: `string` - The request method.
- `params`: `Json[]` - Optional method parameters.
- `scope`: `string` - Request's scope ([CAIP-2](https://github.com/ChainAgnostic/CAIPs/blob/main/CAIPs/caip-2.md)
chain ID).
- `scope`: `string` - [CAIP-2](https://github.com/ChainAgnostic/CAIPs/blob/main/CAIPs/caip-2.md)
chain ID of the blockchain network for the request.

### Example

Expand Down

0 comments on commit e5285e7

Please sign in to comment.