Shows if the wallet is connected right now.
Current connected wallet or null if no account is connected.
Generates universal link for an external wallet and subscribes to the wallet's bridge, or sends connect request to the injected wallet.
wallet's bridge url and universal link for an external wallet or jsBridge key for the injected wallet, or list of bridges urls for creating an universal connection request for the corresponding wallets.
Optional
request: ConnectAdditionalRequest(optional) additional request to pass to the wallet while connect (currently only ton_proof is available).
universal link if external wallet was passed or void for the injected wallet.
Allows to subscribe to connection status changes and handle connection errors.
will be called after connections status changes with actual wallet or null.
Optional
errorsHandler: ((err) => void)(optional) will be called with some instance of TonConnectError when connect error is received.
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.
transaction to send.
Optional
options: { (optional) onRequestSent callback will be called after the transaction is sent and signal to abort the request.
Optional
onOptional
signal?: AbortSignalsigned transaction boc that allows you to find the transaction in the blockchain. If user rejects transaction, method will throw the corresponding error.
Optional
onRequestSent: (() => void)use sendTransaction(transaction, options) instead
Generated using TypeDoc
Current connected account or null if no account is connected.