From 2e51e9ba56f074c6f1a88d46c3199e8a7daee260 Mon Sep 17 00:00:00 2001 From: yalan2ny <152720661+yalan2ny@users.noreply.github.com> Date: Wed, 8 Jan 2025 10:10:15 +0330 Subject: [PATCH] Update requests-responses.md/yalan2ny Manifest connection tone is used as dapp URL identifier, it connects error codes, it is also used in address proof signature. --- requests-responses.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/requests-responses.md b/requests-responses.md index d7ef789..e2a8110 100644 --- a/requests-responses.md +++ b/requests-responses.md @@ -1,4 +1,4 @@ -# Requests and Responses +tab# Requests and Responses App sends requests to the wallet. Wallet sends responses and events to the app. @@ -24,14 +24,14 @@ App needs to have its manifest to pass meta information to the wallet. Manifest Best practice is to place the manifest in the root of your app, e.g. `https://myapp.com/tonconnect-manifest.json`. It allows the wallet to handle your app better and improve the UX connected to your app. Make sure that manifest is available to GET by its URL. -#### Fields description +esc#### Fields description - `url` -- app URL. Will be used as the dapp identifier. Will be used to open the dapp after click to its icon in the wallet. It is recommended to pass url without closing slash, e.g. 'https://mydapp.com' instead of 'https://mydapp.com/'. - `name` -- app name. Might be simple, will not be used as identifier. - `iconUrl` -- Url to the app icon. Must be PNG, ICO, ... format. SVG icons are not supported. Perfectly pass url to a 180x180px PNG icon. - `termsOfUseUrl` -- (optional) url to the Terms Of Use document. Optional for usual apps, but required for the apps which is placed in the Tonkeeper recommended apps list. - `privacyPolicyUrl` -- (optional) url to the Privacy Policy document. Optional for usual apps, but required for the apps which is placed in the Tonkeeper recommended apps list. -### Initiating connection +tab### Initiating connection App’s request message is **InitialRequest**.