From 24e8161fe2444165f98e56439ced3555d2dffbd1 Mon Sep 17 00:00:00 2001 From: Oleg Andreev Date: Wed, 6 Jul 2022 18:31:32 +0300 Subject: [PATCH] push wip --- TonConnectSpecification.md | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/TonConnectSpecification.md b/TonConnectSpecification.md index 32c9c09..03d0250 100644 --- a/TonConnectSpecification.md +++ b/TonConnectSpecification.md @@ -293,14 +293,27 @@ Session payload is an opaque data object that the service sends over to the clie Payload inside the [authenticator](#session-authenticator) contains the shared data items and is encoded in JSON. Any item may be missing if the user chose not to share it or it is not supported by the client. +Push notification API is an optional info. App may use it to send further TON Connect requests directly to the wallet, or tx signing requests per [wallet-api](https://github.com/tonkeeper/wallet-api). + ``` { "items": [ { "type": "ton-address", - "value": "EQrt...s7Ui", - } - ] + "address": "EQrt...s7Ui", + }, + { + "type": "ton-ownership", + "address": "EQrt...s7Ui", + ... + }, + ], + "push": { + "url": "https://tonapi.example.com/...", + "headers": { + "X-Push-ID": "f8a90d7edad893", + }, + } } ```