Skip to main content
TonhubLocalConnector allows you to connect get information about a wallet and request transactions and signatures when running as an extension.

Check if app is running as extension

Before trying to work with a wallet it is useful to check if web app is running as extension.

Create connector

After you checked that connector is available it is possible to create one:

Get Wallet and App Information

connector has config field with useful fields about the current environment and wallet.

Verify wallet on backend

You can check signed wallet config on backend using TonhubLocalConnector.verifyWalletConfig. config is cryptographically signed and you can safely use it as authentication proof without the need to sign something.

Requesting a transaction

To request a transaction you can call requestTransaction:

Requesting a signature