diff --git a/docs/classes/_tonconnect_protocol.SessionCrypto.html b/docs/classes/_tonconnect_protocol.SessionCrypto.html index 4d92fa20..90ee7e2e 100644 --- a/docs/classes/_tonconnect_protocol.SessionCrypto.html +++ b/docs/classes/_tonconnect_protocol.SessionCrypto.html @@ -21,7 +21,7 @@
Optional
keyPair: KeyPairReadonly
sessionuse connect(wallet, options) instead
+Optional
request: ConnectAdditionalRequestOptional
options: { Optional
openingOptional
signal?: AbortSignalunsubscribe callback.
Try to restore existing session and reconnect to the corresponding wallet. Call it immediately when your app is loaded.
Optional
options: { Optional
openingOptional
signal?: AbortSignalAsks connected wallet to sign and send the transaction.
@@ -268,10 +321,37 @@transaction to send.
Optional
onRequestSent: (() => void)(optional) will be called after the transaction is sent to the wallet.
+Optional
options: { (optional) onRequestSent will be called after the request was sent to the wallet and signal for the transaction abort.
Optional
onOptional
signal?: AbortSignaluse sendTransaction(transaction, options) instead
+Optional
onRequestSent: (() => void)Static
getStatic
Static
isStatic
isReadonly
connectorTonConnect instance.
Readonly
modalManages the modal window state.
TonConnectUIError if connection was aborted.
unsubscribe callback.
Optional
options: Returns Promise<SendTransactionResponse>Static
getStatic
Try to restore existing session and reconnect to the corresponding wallet. Call it immediately when your app is loaded.
Optional
options: { Optional
openingOptional
signal?: AbortSignalAsks connected wallet to sign and send the transaction.
@@ -215,10 +233,36 @@transaction to send.
Optional
onRequestSent: (() => void)(optional) will be called after the transaction is sent to the wallet.
+Optional
options: { (optional) onRequestSent callback will be called after the transaction is sent and signal to abort the request.
Optional
onOptional
signal?: AbortSignaluse sendTransaction(transaction, options) instead
+Optional
onRequestSent: (() => void)Optional
onRequestSent: Returns voidOptional
storageStorage to save protocol data. For browser default is localStorage
. If you use SDK with nodeJS, you have to specify this field.
Optional
walletsOptional
DefaultInfinity
Optional
walletsInformation about user's wallet's device.
Provider type: http bridge or injected js.
Optional
returnOptional
Default'back'
Optional
skipShouldn't be used anymore, SDK will automatically dete
'ios'
Optional
twaOptional
returnStrategy if).
Optional
languagesystem
Optional
restoreOptional
Defaulttrue.
Optional
uiOptional
Optional
walletsOptional
Optional
widgetOptional
Defaultdiv#tc-widget-root
.
Optional
enableOptional
Defaulttrue
Optional
languageOptional
Defaultsystem
Optional
uiUI elements configuration.
Optional
walletsConfiguration for the wallets list in the connect wallet modal.
Optional
languagesystem
Optional
restoretrue.
Optional
uiOptional
Optional
walletsOptional
Optional
widgetdiv#tc-widget-root
.
Optional
languagesystem
Optional
manifestOptional
${window.location.origin}/tonconnect-manifest.json will be taken.
Optional
restoretrue.
Optional
uiOptional
Optional
walletsOptional
Optional
widgetdiv#tc-widget-root
.
Current modal window state.
system
Optional
uiUI elements configuration.
Optional
walletsConfiguration for the wallets list in the connect wallet modal.
Current connected wallet or null if no account is connected.
@@ -117,13 +117,13 @@value: nullReturns void +Defined in packages/sdk/src/ton-connect.ts:108
Methods
connect
-- connect<T>(wallet: T, request?: ConnectAdditionalRequest): T extends WalletConnectionSourceJS ? void : string
+- connect<T>(wallet: T, options?: {
-
-
-
openingDeadlineMS?: number;
request?: ConnectAdditionalRequest;
signal?: AbortSignal;
}): T extends WalletConnectionSourceJS ? void : string
Generates universal link for an external wallet and subscribes to the wallet's bridge, or sends connect request to the injected wallet.
@@ -142,24 +142,67 @@wallet: T
wallet's bridge url and universal link for an external wallet or jsBridge key for the injected wallet.
-Optional
request: ConnectAdditionalRequest(optional) additional request to pass to the wallet while connect (currently only ton_proof is available).
-