TON Connect for JS
This guide will help you integrate TON Connect into your Javascript application for user authentication and transactions.
If you're using React for your DApp, take a look at the TON Connect UI React SDK.
If you're using Vue for your DApp, take a look at the TON Connect UI Vue SDK.
Implementation
Installation
- CDN
- NPM
Add the script to the HEAD element of your website:
<script src="https://unpkg.com/@tonconnect/ui@latest/dist/tonconnect-ui.min.js"></script>
To begin the integration of TON Connect into your app, install the @tonconnect/ui package:
- npm
- Yarn
- pnpm
npm i @tonconnect/ui
yarn add @tonconnect/ui