Install AppKit’s React packages, create anDocumentation Index
Fetch the complete documentation index at: https://companyname-a7d5b98e-feature-fumodocs.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
AppKit instance, and mount the providers that AppKit hooks rely on.
Install packages
| Package | Use |
|---|---|
@ton/appkit | Core runtime: actions, connectors, types. |
@ton/appkit-react | React layer: hooks, components, default stylesheet. |
@tanstack/react-query | Cache backing every query and mutation hook. |
@tonconnect/ui-react | TON Connect transport. @ton/appkit-react re-exports <TonConnectButton /> from this package. |
@ton/core | TON address and cell primitives. |
Complete the Preparation step first. The
Buffer polyfill it sets up is required for AppKit to run in the browser.Create the AppKit instance
Create theAppKit instance in a dedicated module. An empty configuration is enough to start — connectors, networks, and DeFi providers are added on the following pages.
Wrap the application
AppKit hooks read from two React contexts: theAppKit instance and a TanStack Query cache. Mount both at the application root.
AppKit provider
AppKitProvider exposes the AppKit instance to descendant hooks and components, removing the need to thread it through props.Import styles
To use the bundled components from@ton/appkit-react (<TonConnectButton />, <SendTonButton />, <NftItem />), import the default stylesheet once at the application root. Without it, the components render unstyled.
Next steps
Connectors
Register wallet connectors on the
AppKit instance and render the connect button.Basic getter hooks
Read wallet, balance, and transaction state from React.