TonConnect class
Methods
-
connect(dynamic wallet, [dynamic request])
→ Future<String>
-
Generates universal link for an external wallet and subscribes to the wallet's bridge,
or sends connect request to the injected wallet.
-
disconnect()
→ Future<void>
-
Disconnect from wallet and drop current session.
-
getWallets()
→ Future<List<Map<String, dynamic>>>
-
Return available wallets list.
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
onStatusChange(void callback(dynamic value), [void errorsHandler(dynamic value)?])
→ Function
-
Allows to subscribe to connection status changes and handle connection errors.
-
pauseConnection()
→ void
-
Pause bridge HTTP connection. Might be helpful, if you use SDK on backend and want to save server resources.
-
restoreConnection()
→ Future<bool>
-
Try to restore existing session and reconnect to the corresponding wallet.
Call it immediately when your app is loaded.
-
sendTransaction(Map<String, dynamic> transaction)
→ Future
-
Asks connected wallet to sign and send the transaction.
-
toString()
→ String
-
A string representation of this object.
inherited
-
unpauseConnection()
→ Future<void>
-
Unpause bridge HTTP connection if it is paused.