Thanks to visit codestin.com
Credit goes to github.com

Skip to content

tsivarev/ton-connect-1

 
 

Repository files navigation

Ton Connect Documentation

Developing a TON app? Use the SDK.

We currently provide JS SDK suitable for web apps.

If you use another language, please take the JS SDK as a reference and implement your own wrapper. Let us know about your work — we'd be happy to list it here.

Protocol specifications

If you implement an SDK, a wallet or want to learn more how Ton Connect works, please read below.

Q&A

I am building an HTML/JS app, what should I read?

Simply use the JS SDK and do not worry about the underlying protocols.

I need an SDK in my favorite language

Please take the JS SDK as a reference and check out the protocol docs above.

How do you detect whether the app is embedded in the wallet?

JS SDK does that for you; just get wallets list connector.getWallets() and check embedded property of the corresponding list item. If you build your own SDK you should check window.[targetWalletJsBridgeKey].tonconnect.isWalletBrowser.

How do you detect if the wallet is a browser extension?

Like with embedded apps (see above), JS SDK detects it for you via injected property of the corresponding connector.getWallets() list item. If you build your own SDK you should check that window.[targetWalletJsBridgeKey].tonconnect exists.

How to implement backend authorization with tonconnect?

See an example of dapp-backend

How do I make my own bridge?

You don’t need to, unless you are building a wallet.

If you build a wallet, you will need to provide a bridge. See our reference implementation in Go.

Keep in mind that the wallet’s side of the bridge API is not mandated.

For a quick start you can use the common TON Connect bridge https://bridge.tonapi.io/bridge.

I make a wallet, how do I add it to the list of wallets?

Submit a pull request for the wallets-list repository and fill our all the necessary metadata.

Apps may also add wallets directly through the SDK.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published