From 73985ad2d9acdd9dbb1087ec0e96ed757ff13b42 Mon Sep 17 00:00:00 2001 From: Alexandra Tran Date: Thu, 29 May 2025 15:37:31 -0700 Subject: [PATCH 1/2] Add multichain error codes --- src/scss/theme/_markdown.scss | 5 +++++ wallet/reference/multichain-api.md | 16 +++++++++++++++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/src/scss/theme/_markdown.scss b/src/scss/theme/_markdown.scss index 67d268dbb1b..e182c57c87b 100644 --- a/src/scss/theme/_markdown.scss +++ b/src/scss/theme/_markdown.scss @@ -140,6 +140,11 @@ text-align: left; padding: 1.2rem; } + + code { + font-family: var(--font-mm-sans-mono); + font-size: 80%; + } } details { diff --git a/wallet/reference/multichain-api.md b/wallet/reference/multichain-api.md index dea721fa0a1..31da68a88e0 100644 --- a/wallet/reference/multichain-api.md +++ b/wallet/reference/multichain-api.md @@ -383,4 +383,18 @@ according to [CAIP-217](https://github.com/ChainAgnostic/CAIPs/blob/main/CAIPs/c } } } -``` \ No newline at end of file +``` + +## Error codes + +The Multichain API can return the following JSON-RPC error codes: + +| Code | Description | Related methods | +| ---- | ----------- | --------------- | +| 5000 | Unknown error with request | `wallet_revokeSession`, `wallet_createSession` | +| 5100 | Requested networks are not supported | `wallet_createSession` | +| 5101 | Requested methods are not supported | `wallet_createSession` | +| 5102 | Requested notifications are not supported | `wallet_createSession` | +| 5300 | Invalid `scopedProperties` requested | `wallet_createSession`| +| 5301 | `scopedProperties` can only be outside of `sessionScopes` | `wallet_createSession`| +| 5302 | Invalid `sessionProperties` requested | `wallet_createSession` | From 39d808eea3fa8e4a19170a09c702ed79697cb383 Mon Sep 17 00:00:00 2001 From: Alexandra Tran Date: Wed, 25 Jun 2025 20:00:56 -0700 Subject: [PATCH 2/2] Remove 5101, 5102, 5300, 5301 --- wallet/reference/multichain-api.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/wallet/reference/multichain-api.md b/wallet/reference/multichain-api.md index 31da68a88e0..9e170a0fd75 100644 --- a/wallet/reference/multichain-api.md +++ b/wallet/reference/multichain-api.md @@ -393,8 +393,4 @@ The Multichain API can return the following JSON-RPC error codes: | ---- | ----------- | --------------- | | 5000 | Unknown error with request | `wallet_revokeSession`, `wallet_createSession` | | 5100 | Requested networks are not supported | `wallet_createSession` | -| 5101 | Requested methods are not supported | `wallet_createSession` | -| 5102 | Requested notifications are not supported | `wallet_createSession` | -| 5300 | Invalid `scopedProperties` requested | `wallet_createSession`| -| 5301 | `scopedProperties` can only be outside of `sessionScopes` | `wallet_createSession`| | 5302 | Invalid `sessionProperties` requested | `wallet_createSession` |