Optional
options: TonConnectOptionsShows if the wallet is connected right now.
Generates universal link for an external wallet and subscribes to the wallet's bridge, or sends connect request to the injected wallet.
universal link if external wallet was passed or void for the injected wallet.
wallet's bridge url and universal link for an external wallet or jsBridge key for the injected wallet.
Optional
options: { (optional) openingDeadlineMS for the connection opening deadline and signal for the connection abort.
Optional
openingOptional
request?: ConnectAdditionalRequestOptional
signal?: AbortSignaluse connect(wallet, options) instead
Optional
request: ConnectAdditionalRequestOptional
options: { Optional
openingOptional
signal?: AbortSignalReturns available wallets list.
Allows to subscribe to connection status changes and handle connection errors.
unsubscribe callback.
will be called after connections status changes with actual wallet or null.
Optional
errorsHandler: ((err: TonConnectError) => void)(optional) will be called with some instance of TonConnectError when connect error is received.
Allows to subscribe to connection status changes and handle connection errors.
unsubscribe 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.
signed transaction boc that allows you to find the transaction in the blockchain. If user rejects transaction, method will throw the corresponding error.
transaction to send.
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
getReturns available wallets list.
Static
isStatic
isGenerated using TypeDoc
Current connected account or null if no account is connected.