2. Add Telegram Mini Apps Analytics in codeOnce you have your unique access token (if not, see Preparations page) and installed the NPM package, you can initialize the Telegram Analytics SDK in your code. To ensure that all events are collected correctly, you must initialize the SDK before the application starts rendering. For example, in React applications, before calling the render() function
import TelegramAnalytics from '@telegram-apps/analytics'TelegramAnalytics.init({ token: 'YOUR_TOKEN', appName: 'ANALYTICS_IDENTIFIER',});
Supported events
After initializing the Telegram analytics, you are all set to transfer the data, gain insights, and improve user engagement. (99% of them will be tracked automatically without manual control)
{"docsConfig":{"theme":"maple","$schema":"https://mintlify.com/docs.json","name":"TON Docs","colors":{"primary":"#0098EA","light":"#F7F9FB","dark":"#1E2337"},"logo":{"light":"https://mintcdn.com/companyname-a7d5b98e/hToXJqpfpFUyET7E/resources/logo/light.svg?fit=max\u0026auto=format\u0026n=hToXJqpfpFUyET7E\u0026q=85\u0026s=f92139f656fab8b0a6085d039b1c5242","dark":"https://mintcdn.com/companyname-a7d5b98e/hToXJqpfpFUyET7E/resources/logo/dark.svg?fit=max\u0026auto=format\u0026n=hToXJqpfpFUyET7E\u0026q=85\u0026s=95ecae495638ab04f45c2d9e69178fab"},"favicon":"https://mintcdn.com/companyname-a7d5b98e/h3Z6smDFvojPWfen/favicon.png?fit=max\u0026auto=format\u0026n=h3Z6smDFvojPWfen\u0026q=85\u0026s=cd2a9a95ba3c7315f3ef61d28ee79661","appearance":{"default":"system","strict":false},"navbar":{"primary":{"type":"button","label":"Docs for LLMs: llms.txt","href":"https://docs.ton.org/llms.txt"}},"footer":{"socials":{"github":"https://github.com/ton-blockchain","x":"https://twitter.com/ton_blockchain","telegram":"https://t.me/addlist/1r5Vcb8eljk5Yzcy"}},"seo":{"metatags":{"canonical":"https://docs.ton.org"}},"fonts":{"family":"Inter"},"styling":{"eyebrows":"breadcrumbs","codeblocks":{"theme":{"light":"github-light-default","dark":"dark-plus"},"languages":{"custom":["/resources/grammars/tolk.tmLanguage.json","/resources/grammars/tlb.tmLanguage.json","/resources/grammars/fift.tmLanguage.json","/resources/grammars/tasm.tmLanguage.json","/resources/grammars/func.tmLanguage.json"]}},"latex":true},"integrations":{"ga4":{"measurementId":"G-S6KJE2LF00"}},"errors":{"404":{"redirect":false,"title":"Page not found","description":"Maybe you were looking for one of these pages below?"}},"contextual":{"options":["copy","chatgpt","claude","grok","perplexity","mcp","cursor","vscode"],"display":"header"},"thumbnails":{"appearance":"dark","background":"https://mintcdn.com/companyname-a7d5b98e/hToXJqpfpFUyET7E/resources/logo/og-image-bg.svg?fit=max\u0026auto=format\u0026n=hToXJqpfpFUyET7E\u0026q=85\u0026s=0a203ae5f5cb9b51944b9701698689a9"},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"companyname-a7d5b98e","hasAudioNarration":false,"actualSubdomain":"companyname-a7d5b98e","customDomains":["beta-docs.ton.org"],"gitSource":{"type":"github","owner":"ton-org","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"feedback":{"thumbs":true,"edits":true,"issues":true,"agentFeedback":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"REMOVE_BRANDING":{"status":"DISABLED"},"CONTEXTUAL_FEEDBACK":{"status":"DISABLED"},"CODE_SNIPPET_FEEDBACK":{"status":"DISABLED"}},"buildId":"6ae92ba064b0d57d799d7e85:success","clientVersion":"0.0.4344","searchFilterCounts":[{"language":"default","tag":"Ecosystem","count":128},{"language":"default","tag":"Blockchain foundations","count":53},{"language":"default","tag":"Tolk language","count":49},{"language":"default","tag":"Standard contracts","count":48},{"language":"default","tag":"Blockchain nodes","count":28},{"language":"default","tag":"Contract development","count":27},{"language":"default","tag":"Tokens","count":25},{"language":"default","tag":"WalletKit","count":22},{"language":"default","tag":"Wallets","count":22},{"language":"default","tag":"Type system","count":21}]},"assistantConfig":{"enableAskAiButton":true,"enableStarterQuestions":true,"enableContextualStarterQuestions":true,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"extra.css","content":"span.method-nav-pill{width:fit-content}td>code,td>em>code,td>strong>code,td>a>code{white-space:nowrap}.link{font-weight:400}.link:has(code){padding-bottom:3px}.link>code{border-bottom-left-radius:0;border-bottom-right-radius:0;text-decoration:none}svg[aria-roledescription=\"sankey\"]>g.links>g.link{mix-blend-mode:normal!important}.no-scrollbar::-webkit-scrollbar{display:none}.no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}table{overflow:unset!important}thead>tr>th{position:sticky;top:0;background:rgb(var(--background-light))}html.dark thead>tr>th{background:rgb(var(--background-dark))}table{font-variant-numeric:tabular-nums}div[data-component-part=\"callout-content\"]>.code-block:last-child{margin-bottom:0}"}]}
{"page":{"pagePath":"ecosystem/tma/analytics/install-via-npm","slug":"/ecosystem/tma/analytics/install-via-npm","pageMetadata":{"title":"Installation via NPM package","description":null,"href":"/ecosystem/tma/analytics/install-via-npm"},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`how-to-install-it`,children:`How to install it?`}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`1. Install the NPM package in your project`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`npm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` install`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` @telegram-apps/analytics`})]}),`\n`]})})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`yarn`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` add`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` @telegram-apps/analytics`})]}),`\n`]})})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`pnpm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` add`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` @telegram-apps/analytics`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`2. Add Telegram Mini Apps Analytics in code`})}),`\n`,_jsxs(_components.p,{children:[`Once you have your unique access token (if not, see `,_jsx(_components.a,{href:`/ecosystem/tma/analytics/preparation`,children:`Preparations`}),` page) and installed the NPM package, you can initialize the Telegram Analytics SDK in your code. To ensure that all events are collected correctly, you must initialize the SDK before the application starts rendering. For example, in React applications, before calling the `,_jsx(_components.code,{children:`render()`}),` function`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`6`,language:`jsx`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`jsx`,children:_jsxs(_components.code,{language:`jsx`,numberOfLines:`6`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` TelegramAnalytics`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '@telegram-apps/analytics'`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`TelegramAnalytics`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`init`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` token:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'YOUR_TOKEN'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` appName:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'ANALYTICS_IDENTIFIER'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`supported-events`,children:`Supported events`}),`\n`,_jsxs(_components.p,{children:[`After initializing the `,_jsx(_components.strong,{children:`Telegram analytics`}),`, you are all set to transfer the data, gain insights, and improve user engagement. (99% of them will be tracked `,_jsx(_components.strong,{children:`automatically`}),` without manual control)`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/ecosystem/tma/analytics/supported-events`,children:`Supported events`})}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":{"theme":{"light":"github-light-default","dark":"dark-plus"},"languages":{"custom":["/resources/grammars/tolk.tmLanguage.json","/resources/grammars/tlb.tmLanguage.json","/resources/grammars/fift.tmLanguage.json","/resources/grammars/tasm.tmLanguage.json","/resources/grammars/func.tmLanguage.json"]}},"config":{},"pageMetadata":{"title":"Installation via NPM package","description":null,"href":"/ecosystem/tma/analytics/install-via-npm"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"How to install it?","slug":"how-to-install-it","depth":2,"children":[{"title":"Supported events","slug":"supported-events","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/companyname-a7d5b98e/8dbfabe739c27c0a/extra.js","/_mintlify/custom/companyname-a7d5b98e/bec5a969afdba522/scripts/sidebars/sidebars.js"],"subdomain":"companyname-a7d5b98e","siteName":"TON Docs","title":"Installation via NPM package - TON Docs","contextualStarterQuestions":[{"_id":"6a1f135488558046f24bc505","deploymentId":"68886db420e64889958d5cc7","questionText":"When should I initialize the SDK?","status":"active","generatedBy":"contextual","path":"ecosystem/tma/analytics/install-via-npm","createdAt":"2026-06-02T17:31:00.133Z","updatedAt":"2026-06-02T17:31:00.133Z","__v":0},{"_id":"6a1f135488558046f24bc504","deploymentId":"68886db420e64889958d5cc7","questionText":"What's the access token for?","status":"active","generatedBy":"contextual","path":"ecosystem/tma/analytics/install-via-npm","createdAt":"2026-06-02T17:31:00.133Z","updatedAt":"2026-06-02T17:31:00.133Z","__v":0},{"_id":"6a1f135488558046f24bc503","deploymentId":"68886db420e64889958d5cc7","questionText":"How do I install the analytics package?","status":"active","generatedBy":"contextual","path":"ecosystem/tma/analytics/install-via-npm","createdAt":"2026-06-02T17:31:00.133Z","updatedAt":"2026-06-02T17:31:00.133Z","__v":0}],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-06-02T17:30:32.390Z","originalFileLocation":"ecosystem/tma/analytics/install-via-npm.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"application-name\" content=\"TON Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/companyname-a7d5b98e/-7AKCvzpq4n-yyuO/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/companyname-a7d5b98e/-7AKCvzpq4n-yyuO/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/companyname-a7d5b98e/-7AKCvzpq4n-yyuO/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/companyname-a7d5b98e/-7AKCvzpq4n-yyuO/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/companyname-a7d5b98e/-7AKCvzpq4n-yyuO/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/companyname-a7d5b98e/-7AKCvzpq4n-yyuO/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/companyname-a7d5b98e/-7AKCvzpq4n-yyuO/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/companyname-a7d5b98e/-7AKCvzpq4n-yyuO/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/companyname-a7d5b98e/-7AKCvzpq4n-yyuO/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Installation via NPM package - TON Docs\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"TON Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.ton.org/ecosystem/tma/analytics/install-via-npm\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://companyname-a7d5b98e.mintlify.site/_mintlify/api/og/v2?division=Analytics\u0026amp;title=Installation+via+NPM+package\u0026amp;theme=fb6da8bd440e499740228277\u0026amp;signature=f04ac663e67ada9168ae99d8040391820ffa185add5d4512fcba30f2d2315260\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Installation via NPM package - TON Docs\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://companyname-a7d5b98e.mintlify.site/_mintlify/api/og/v2?division=Analytics\u0026amp;title=Installation+via+NPM+package\u0026amp;theme=fb6da8bd440e499740228277\u0026amp;signature=f04ac663e67ada9168ae99d8040391820ffa185add5d4512fcba30f2d2315260\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/companyname-a7d5b98e/-7AKCvzpq4n-yyuO/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"TON Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0098EA\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.ton.org/ecosystem/tma/analytics/install-via-npm\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/ecosystem/tma/analytics/install-via-npm.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.ton.org/#organization\",\"name\":\"TON Docs\",\"url\":\"https://docs.ton.org\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/companyname-a7d5b98e/hToXJqpfpFUyET7E/resources/logo/light.svg?fit=max\u0026auto=format\u0026n=hToXJqpfpFUyET7E\u0026q=85\u0026s=f92139f656fab8b0a6085d039b1c5242\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.ton.org#website\",\"name\":\"TON Docs\",\"url\":\"https://docs.ton.org\",\"publisher\":{\"@id\":\"https://docs.ton.org/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.ton.org/ecosystem/tma/analytics/install-via-npm#webpage\",\"url\":\"https://docs.ton.org/ecosystem/tma/analytics/install-via-npm\",\"name\":\"Installation via NPM package\",\"dateModified\":\"2026-06-02T17:30:32.390Z\",\"isPartOf\":{\"@id\":\"https://docs.ton.org#website\"},\"breadcrumb\":{\"@id\":\"https://docs.ton.org/ecosystem/tma/analytics/install-via-npm#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.ton.org/ecosystem/tma/analytics/install-via-npm#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Ecosystem\",\"item\":\"https://docs.ton.org/ecosystem/ai/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"TMA: Telegram Mini Apps\",\"item\":\"https://docs.ton.org/ecosystem/tma/overview\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Analytics\",\"item\":\"https://docs.ton.org/ecosystem/tma/analytics/analytics\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Installation via NPM package\",\"item\":\"https://docs.ton.org/ecosystem/tma/analytics/install-via-npm\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.ton.org/ecosystem/tma/analytics/install-via-npm#article\",\"headline\":\"Installation via NPM package\",\"name\":\"Installation via NPM package\",\"url\":\"https://docs.ton.org/ecosystem/tma/analytics/install-via-npm\",\"mainEntityOfPage\":{\"@id\":\"https://docs.ton.org/ecosystem/tma/analytics/install-via-npm#webpage\"},\"dateModified\":\"2026-06-02T17:30:32.390Z\",\"publisher\":{\"@id\":\"https://docs.ton.org/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.ton.org#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"TON Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"TON Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/ecosystem/tma/analytics/install-via-npm.md","siteName":"TON Docs","nav":{"global":null,"pages":[{"title":"Start here","icon":"rocket","href":"/start-here"},{"title":"Get support","href":"/get-support"},{"title":"Coming from Ethereum","href":"/from-ethereum"},{"title":"Other resources","href":"/more-tutorials"},{"title":"Old documentation","url":"https://old-docs.ton.org/","href":"/old"},{"group":"Ecosystem","pages":[{"group":"AI","expanded":true,"pages":[{"title":"Overview of AI in TON","sidebarTitle":"Overview","href":"/ecosystem/ai/overview"},{"title":"AgentKit: @ton/mcp","sidebarTitle":"@ton/mcp","href":"/ecosystem/ai/mcp"},{"title":"Agentic wallet contracts","sidebarTitle":"Agentic wallets","href":"/ecosystem/ai/wallets"}]},{"group":"Wallet apps","pages":[{"title":"wallet.ton.org","href":"/ecosystem/wallet-apps/web"},{"title":"Tonkeeper","href":"/ecosystem/wallet-apps/tonkeeper"},{"title":"How to get coins on testnet","sidebarTitle":"Get coins on testnet","href":"/ecosystem/wallet-apps/get-coins"},{"title":"Deep links","href":"/ecosystem/wallet-apps/deep-links"},{"title":"Addresses workflow","href":"/ecosystem/wallet-apps/addresses-workflow"}]},{"group":"Explorers","pages":[{"title":"Overview","href":"/ecosystem/explorers/overview"},{"title":"Using Tonviewer","href":"/ecosystem/explorers/tonviewer"}]},{"title":"SDKs","mode":"wide","href":"/ecosystem/sdks"},{"group":"APIs","pages":[{"title":"Overview","mode":"wide","href":"/ecosystem/api/overview"},{"group":"TON Center","expanded":true,"pages":[{"title":"Introduction","href":"/ecosystem/api/toncenter/introduction"},{"title":"Rate limits","href":"/ecosystem/api/toncenter/rate-limit"},{"title":"Get your TON Center API key","sidebarTitle":"Get API key","href":"/ecosystem/api/toncenter/get-api-key"},{"group":"API v2","pages":[{"title":"API v2 overview","sidebarTitle":"Overview","href":"/ecosystem/api/toncenter/v2/overview"},{"title":"API authentication","sidebarTitle":"Authentication","href":"/ecosystem/api/toncenter/v2-authentication"},{"title":"API error codes","sidebarTitle":"Error codes","href":"/ecosystem/api/toncenter/v2-errors"},{"title":"Tonlib type identifiers","href":"/ecosystem/api/toncenter/v2-tonlib-types"},{"group":"Accounts","pages":[{"openapi":"get /api/v2/getAddressInformation","title":"Get address information","href":"/ecosystem/api/toncenter/v2/accounts/get-address-information"},{"openapi":"get /api/v2/getExtendedAddressInformation","title":"Get extended address information","href":"/ecosystem/api/toncenter/v2/accounts/get-extended-address-information"},{"openapi":"get /api/v2/getWalletInformation","title":"Get wallet information","href":"/ecosystem/api/toncenter/v2/accounts/get-wallet-information"},{"openapi":"get /api/v2/getAddressBalance","title":"Get address balance","href":"/ecosystem/api/toncenter/v2/accounts/get-address-balance"},{"openapi":"get /api/v2/getAddressState","title":"Get address state","href":"/ecosystem/api/toncenter/v2/accounts/get-address-state"},{"openapi":"get /api/v2/getTokenData","title":"Get token data","href":"/ecosystem/api/toncenter/v2/accounts/get-token-data"}]},{"group":"Transactions","pages":[{"openapi":"get /api/v2/getBlockTransactions","title":"Get block transactions","href":"/ecosystem/api/toncenter/v2/transactions/get-block-transactions"},{"openapi":"get /api/v2/getBlockTransactionsExt","title":"Get block transactions (extended)","href":"/ecosystem/api/toncenter/v2/transactions/get-block-transactions-extended"},{"openapi":"get /api/v2/getTransactions","title":"Get transactions","href":"/ecosystem/api/toncenter/v2/transactions/get-transactions"},{"openapi":"get /api/v2/getTransactionsStd","title":"Get transactions (standard)","href":"/ecosystem/api/toncenter/v2/transactions/get-transactions-standard"},{"openapi":"get /api/v2/tryLocateTx","title":"Try locate transaction","href":"/ecosystem/api/toncenter/v2/transactions/try-locate-transaction"},{"openapi":"get /api/v2/tryLocateResultTx","title":"Try locate result transaction","href":"/ecosystem/api/toncenter/v2/transactions/try-locate-result-transaction"},{"openapi":"get /api/v2/tryLocateSourceTx","title":"Try locate source transaction","href":"/ecosystem/api/toncenter/v2/transactions/try-locate-source-transaction"}]},{"group":"Blocks","pages":[{"openapi":"get /api/v2/getMasterchainInfo","title":"Get masterchain info","href":"/ecosystem/api/toncenter/v2/blocks/get-masterchain-info"},{"openapi":"get /api/v2/getMasterchainBlockSignatures","title":"Get masterchain block signatures","href":"/ecosystem/api/toncenter/v2/blocks/get-masterchain-block-signatures"},{"openapi":"get /api/v2/getShardBlockProof","title":"Get shard block proof","href":"/ecosystem/api/toncenter/v2/blocks/get-shard-block-proof"},{"openapi":"get /api/v2/getConsensusBlock","title":"Get consensus block","href":"/ecosystem/api/toncenter/v2/blocks/get-consensus-block"},{"openapi":"get /api/v2/lookupBlock","title":"Lookup block","href":"/ecosystem/api/toncenter/v2/blocks/lookup-block"},{"openapi":"get /api/v2/getShards","title":"Get shards","href":"/ecosystem/api/toncenter/v2/blocks/get-shards"},{"openapi":"get /api/v2/getBlockHeader","title":"Get block header","href":"/ecosystem/api/toncenter/v2/blocks/get-block-header"},{"openapi":"get /api/v2/getOutMsgQueueSize","title":"Get outbound message queue size","href":"/ecosystem/api/toncenter/v2/blocks/get-outbound-message-queue-size"}]},{"group":"Run method","pages":[{"openapi":"post /api/v2/runGetMethod","title":"Run get method","href":"/ecosystem/api/toncenter/v2/run-method/run-get-method"},{"openapi":"post /api/v2/runGetMethodStd","title":"Run get method (standard)","href":"/ecosystem/api/toncenter/v2/run-method/run-get-method-standard"}]},{"group":"Send","pages":[{"openapi":"post /api/v2/sendBoc","title":"Send BoC","href":"/ecosystem/api/toncenter/v2/send/send-boc"},{"openapi":"post /api/v2/sendBocReturnHash","title":"Send BoC (return hash)","href":"/ecosystem/api/toncenter/v2/send/send-boc-return-hash"},{"openapi":"post /api/v2/estimateFee","title":"Estimate fee","href":"/ecosystem/api/toncenter/v2/send/estimate-fee"}]},{"group":"Utils","pages":[{"openapi":"get /api/v2/detectAddress","title":"Detect address","href":"/ecosystem/api/toncenter/v2/utils/detect-address"},{"openapi":"get /api/v2/detectHash","title":"Detect hash","href":"/ecosystem/api/toncenter/v2/utils/detect-hash"},{"openapi":"get /api/v2/packAddress","title":"Pack address","href":"/ecosystem/api/toncenter/v2/utils/pack-address"},{"openapi":"get /api/v2/unpackAddress","title":"Unpack address","href":"/ecosystem/api/toncenter/v2/utils/unpack-address"}]},{"group":"Configuration","pages":[{"openapi":"get /api/v2/getConfigParam","title":"Get config parameter","href":"/ecosystem/api/toncenter/v2/configuration/get-config-parameter"},{"openapi":"get /api/v2/getConfigAll","title":"Get all config parameters","href":"/ecosystem/api/toncenter/v2/configuration/get-all-config-parameters"},{"openapi":"get /api/v2/getLibraries","title":"Get libraries","href":"/ecosystem/api/toncenter/v2/configuration/get-libraries"}]},{"group":"RPC","pages":[{"openapi":"post /api/v2/jsonRPC","title":"JSON-RPC endpoint","href":"/ecosystem/api/toncenter/v2/rpc/json-rpc-endpoint"}]}]},{"group":"API v3","pages":[{"title":"API v3 overview","sidebarTitle":"Overview","href":"/ecosystem/api/toncenter/v3/overview"},{"title":"API error codes","sidebarTitle":"Error codes","href":"/ecosystem/api/toncenter/v3-errors"},{"title":"API authentication","sidebarTitle":"Authentication","href":"/ecosystem/api/toncenter/v3-authentication"},{"title":"Pagination","href":"/ecosystem/api/toncenter/v3-pagination"},{"group":"Accounts","pages":[{"openapi":"get /api/v3/accountStates","title":"Get Account States","href":"/ecosystem/api/toncenter/v3/accounts/get-account-states"},{"openapi":"get /api/v3/addressBook","title":"Address Book","href":"/ecosystem/api/toncenter/v3/accounts/address-book"},{"openapi":"get /api/v3/metadata","title":"Metadata","href":"/ecosystem/api/toncenter/v3/accounts/metadata"},{"openapi":"get /api/v3/walletStates","title":"Get Wallet States","href":"/ecosystem/api/toncenter/v3/accounts/get-wallet-states"}]},{"group":"Actions and traces","pages":[{"openapi":"get /api/v3/actions","title":"Get Actions","href":"/ecosystem/api/toncenter/v3/actions-and-traces/get-actions"},{"openapi":"get /api/v3/pendingActions","title":"Get Pending Actions","href":"/ecosystem/api/toncenter/v3/actions-and-traces/get-pending-actions"},{"openapi":"get /api/v3/pendingTraces","title":"Get Pending Traces","href":"/ecosystem/api/toncenter/v3/actions-and-traces/get-pending-traces"},{"openapi":"get /api/v3/traces","title":"Get Traces","href":"/ecosystem/api/toncenter/v3/actions-and-traces/get-traces"}]},{"group":"Api/v2","pages":[{"openapi":"get /api/v3/addressInformation","title":"Get Address Information","href":"/ecosystem/api/toncenter/v3/apiv2/get-address-information"},{"openapi":"post /api/v3/estimateFee","title":"Estimate Fee","href":"/ecosystem/api/toncenter/v3/apiv2/estimate-fee"},{"openapi":"post /api/v3/message","title":"Send Message","href":"/ecosystem/api/toncenter/v3/apiv2/send-message"},{"openapi":"post /api/v3/runGetMethod","title":"Run Get-Method","href":"/ecosystem/api/toncenter/v3/apiv2/run-get-method"},{"openapi":"get /api/v3/walletInformation","title":"Get Wallet Information","href":"/ecosystem/api/toncenter/v3/apiv2/get-wallet-information"}]},{"group":"Blockchain Data","pages":[{"openapi":"get /api/v3/adjacentTransactions","title":"Get Adjacent Transactions","href":"/ecosystem/api/toncenter/v3/blockchain-data/get-adjacent-transactions"},{"openapi":"get /api/v3/blocks","title":"Get blocks","href":"/ecosystem/api/toncenter/v3/blockchain-data/get-blocks"},{"openapi":"get /api/v3/masterchainBlockShardState","title":"Get masterchain block shard state","href":"/ecosystem/api/toncenter/v3/blockchain-data/get-masterchain-block-shard-state"},{"openapi":"get /api/v3/masterchainBlockShards","title":"Get masterchain block shard state","href":"/ecosystem/api/toncenter/v3/blockchain-data/get-masterchain-block-shard-state-1"},{"openapi":"get /api/v3/masterchainInfo","title":"Get Masterchain Info","href":"/ecosystem/api/toncenter/v3/blockchain-data/get-masterchain-info"},{"openapi":"get /api/v3/messages","title":"Get messages","href":"/ecosystem/api/toncenter/v3/blockchain-data/get-messages"},{"openapi":"get /api/v3/pendingTransactions","title":"Get pending transactions","href":"/ecosystem/api/toncenter/v3/blockchain-data/get-pending-transactions"},{"openapi":"get /api/v3/transactions","title":"Get transactions","href":"/ecosystem/api/toncenter/v3/blockchain-data/get-transactions"},{"openapi":"get /api/v3/transactionsByMasterchainBlock","title":"Get transactions by Masterchain block","href":"/ecosystem/api/toncenter/v3/blockchain-data/get-transactions-by-masterchain-block"},{"openapi":"get /api/v3/transactionsByMessage","title":"Get transactions by message","href":"/ecosystem/api/toncenter/v3/blockchain-data/get-transactions-by-message"}]},{"group":"Utils","pages":[{"openapi":"get /api/v3/decode","title":"Decode Opcodes and Bodies","href":"/ecosystem/api/toncenter/v3/utils/decode-opcodes-and-bodies"},{"openapi":"post /api/v3/decode","title":"Decode Opcodes and Bodies","href":"/ecosystem/api/toncenter/v3/utils/decode-opcodes-and-bodies-1"}]},{"group":"Dns","pages":[{"openapi":"get /api/v3/dns/records","title":"Get DNS Records","href":"/ecosystem/api/toncenter/v3/dns/get-dns-records"}]},{"group":"Jettons","pages":[{"openapi":"get /api/v3/jetton/burns","title":"Get Jetton Burns","href":"/ecosystem/api/toncenter/v3/jettons/get-jetton-burns"},{"openapi":"get /api/v3/jetton/masters","title":"Get Jetton Masters","href":"/ecosystem/api/toncenter/v3/jettons/get-jetton-masters"},{"openapi":"get /api/v3/jetton/transfers","title":"Get Jetton Transfers","href":"/ecosystem/api/toncenter/v3/jettons/get-jetton-transfers"},{"openapi":"get /api/v3/jetton/wallets","title":"Get Jetton Wallets","href":"/ecosystem/api/toncenter/v3/jettons/get-jetton-wallets"}]},{"group":"Multisig","pages":[{"openapi":"get /api/v3/multisig/orders","title":"Get Multisig Orders","href":"/ecosystem/api/toncenter/v3/multisig/get-multisig-orders"},{"openapi":"get /api/v3/multisig/wallets","title":"Get Multisig Wallets","href":"/ecosystem/api/toncenter/v3/multisig/get-multisig-wallets"}]},{"group":"NFTs","pages":[{"openapi":"get /api/v3/nft/collections","title":"Get NFT collections","href":"/ecosystem/api/toncenter/v3/nfts/get-nft-collections"},{"openapi":"get /api/v3/nft/items","title":"Get NFT items","href":"/ecosystem/api/toncenter/v3/nfts/get-nft-items"},{"openapi":"get /api/v3/nft/transfers","title":"Get NFT Transfers","href":"/ecosystem/api/toncenter/v3/nfts/get-nft-transfers"}]},{"group":"Stats","pages":[{"openapi":"get /api/v3/topAccountsByBalance","title":"Get Top Accounts By Balance","href":"/ecosystem/api/toncenter/v3/stats/get-top-accounts-by-balance"}]},{"group":"Vesting","pages":[{"openapi":"get /api/v3/vesting","title":"Get Vesting Contracts","href":"/ecosystem/api/toncenter/v3/vesting/get-vesting-contracts"}]}]},{"group":"Streaming API","tag":"v2","pages":[{"title":"Streaming API overview","sidebarTitle":"Overview","href":"/ecosystem/api/toncenter/streaming/overview"},{"title":"Streaming API: Server-Sent Events","sidebarTitle":"Server-Sent Events","href":"/ecosystem/api/toncenter/streaming/sse"},{"title":"Streaming API: WebSocket","sidebarTitle":"WebSocket","href":"/ecosystem/api/toncenter/streaming/wss"},{"title":"Streaming API notification reference","sidebarTitle":"Notification reference","href":"/ecosystem/api/toncenter/streaming/reference"}]},{"group":"Nominator Pools API","pages":[{"group":"API Reference","pages":[{"openapi":"get /lifecheck","title":"Lifecheck Method","href":"/ecosystem/api/toncenter/smc-index/lifecheck-method"},{"openapi":"get /getNominator","title":"Get Nominator Method","href":"/ecosystem/api/toncenter/smc-index/get-nominator-method"},{"openapi":"get /getPool","title":"Get Pool Method","href":"/ecosystem/api/toncenter/smc-index/get-pool-method"},{"openapi":"get /getNominatorBookings","title":"Get Nominator Bookings Method","href":"/ecosystem/api/toncenter/smc-index/get-nominator-bookings-method"},{"openapi":"get /getNominatorEarnings","title":"Get Nominator Earnings Method","href":"/ecosystem/api/toncenter/smc-index/get-nominator-earnings-method"},{"openapi":"get /getPoolBookings","title":"Get Pool Bookings Method","href":"/ecosystem/api/toncenter/smc-index/get-pool-bookings-method"}]}]}]},{"title":"Jetton prices API","href":"/ecosystem/api/price"}]},{"title":"How to adopt sub-second finality","sidebarTitle":"Sub-second finality","tag":"take action","href":"/ecosystem/subsecond"},{"title":"Network status","href":"/ecosystem/status"},{"title":"Analytics and data providers","sidebarTitle":"Analytics","href":"/ecosystem/analytics"},{"group":"Oracles","pages":[{"title":"Oracles overview","sidebarTitle":"Overview","href":"/ecosystem/oracles/overview"},{"title":"RedStone oracle","href":"/ecosystem/oracles/redstone"},{"title":"Pyth oracle","href":"/ecosystem/oracles/pyth"}]},{"title":"Bridges","href":"/ecosystem/bridges"},{"group":"TON Connect","pages":[{"title":"TON Connect overview","sidebarTitle":"Overview","href":"/ecosystem/ton-connect/overview"},{"title":"WalletConnect support","sidebarTitle":"WalletConnect support","href":"/ecosystem/ton-connect/wallet-connect"},{"title":"How to integrate a decentralized application (dApp)","sidebarTitle":"Integrate a dApp","href":"/ecosystem/ton-connect/dapp"},{"title":"How to integrate a wallet with TON","sidebarTitle":"Integrate a wallet","href":"/ecosystem/ton-connect/wallet"},{"title":"TON Connect manifests","sidebarTitle":"Manifests","href":"/ecosystem/ton-connect/manifest"},{"title":"Message lookup","href":"/ecosystem/ton-connect/message-lookup"}]},{"group":"AppKit","pages":[{"title":"AppKit: SDK for decentralized applications (dApps)","sidebarTitle":"Overview","href":"/ecosystem/appkit/overview"},{"title":"How to initialize the TON Connect's AppKit","sidebarTitle":"Initialize the kit","href":"/ecosystem/appkit/init"},{"title":"How to work with Toncoin using AppKit","sidebarTitle":"Work with Toncoin","href":"/ecosystem/appkit/toncoin"},{"title":"How to work with Jettons using AppKit","sidebarTitle":"Work with Jettons","href":"/ecosystem/appkit/jettons"},{"title":"How to work with NFTs using AppKit","sidebarTitle":"Work with NFTs","href":"/ecosystem/appkit/nfts"},{"title":"How to swap tokens using AppKit","sidebarTitle":"Swap tokens","href":"/ecosystem/appkit/swap"},{"title":"How to stake Toncoin using AppKit","sidebarTitle":"Stake Toncoin","href":"/ecosystem/appkit/stake"}]},{"group":"WalletKit","pages":[{"title":"WalletKit: SDK for custodial and non-custodial wallet services","sidebarTitle":"Overview","href":"/ecosystem/walletkit/overview"},{"group":"Web","pages":[{"title":"How to initialize the TON Connect's WalletKit on the Web platform","sidebarTitle":"Initialize the kit","href":"/ecosystem/walletkit/web/init"},{"title":"How to manage TON wallets with WalletKit on the Web platform","sidebarTitle":"Manage TON wallets","href":"/ecosystem/walletkit/web/wallets"},{"title":"How to handle connections with WalletKit on the Web platform","sidebarTitle":"Handle connections","href":"/ecosystem/walletkit/web/connections"},{"title":"How to handle other events with WalletKit on the Web platform","sidebarTitle":"Handle other events","href":"/ecosystem/walletkit/web/events"},{"title":"How to work with Toncoin using WalletKit on the Web platform","sidebarTitle":"Work with Toncoin","href":"/ecosystem/walletkit/web/toncoin"},{"title":"How to work with Jettons using WalletKit on the Web platform","sidebarTitle":"Work with Jettons","href":"/ecosystem/walletkit/web/jettons"},{"title":"How to work with NFTs using WalletKit on the Web platform","sidebarTitle":"Work with NFTs","href":"/ecosystem/walletkit/web/nfts"}]},{"group":"iOS","pages":[{"title":"How to install the TON Connect's WalletKit on the iOS platform","sidebarTitle":"Install the kit","href":"/ecosystem/walletkit/ios/installation"},{"title":"How to initialize the TON Connect's WalletKit on the iOS platform","sidebarTitle":"Init the kit","href":"/ecosystem/walletkit/ios/init"},{"title":"How to manage TON wallets with WalletKit on the iOS platform","sidebarTitle":"Manage TON wallets","href":"/ecosystem/walletkit/ios/wallets"},{"title":"How to retrieve wallet information, jettons, and NFTs with WalletKit on the iOS platform","sidebarTitle":"Receiving information","href":"/ecosystem/walletkit/ios/data"},{"title":"How to transfer Toncoin, Jettons and NFTs with WalletKit on the iOS platform","sidebarTitle":"Transactions","href":"/ecosystem/walletkit/ios/transactions"},{"title":"How to connect to dApp and handle wallet events on the iOS platform","sidebarTitle":"Handle events","href":"/ecosystem/walletkit/ios/events"},{"title":"How to inject TON's WalletKit into WebView on iOS platform","sidebarTitle":"WebView injection","href":"/ecosystem/walletkit/ios/webview"}]},{"group":"Android","pages":[{"title":"How to install the TON Connect's WalletKit on the Android platform","sidebarTitle":"Install the kit","href":"/ecosystem/walletkit/android/installation"},{"title":"How to initialize the TON Connect's WalletKit on the Android platform","sidebarTitle":"Init the kit","href":"/ecosystem/walletkit/android/init"},{"title":"How to manage TON wallets with WalletKit on the Android platform","sidebarTitle":"Manage TON wallets","href":"/ecosystem/walletkit/android/wallets"},{"title":"How to retrieve wallet information, jettons, and NFTs with WalletKit on the Android platform","sidebarTitle":"Receiving information","href":"/ecosystem/walletkit/android/data"},{"title":"How to connect to dApp and handle wallet events on the Android platform","sidebarTitle":"Handle events","href":"/ecosystem/walletkit/android/events"},{"title":"How to transfer Toncoin, Jettons and NFTs with WalletKit on the Android platform","sidebarTitle":"Transactions","href":"/ecosystem/walletkit/android/transactions"},{"title":"How to inject TON's WalletKit into WebView on Android platform","sidebarTitle":"WebView injection","href":"/ecosystem/walletkit/android/webview"}]},{"group":"Manual implementation","pages":[{"title":"TON Connect integration QA guide","sidebarTitle":"Integration QA guide","href":"/ecosystem/walletkit/qa-guide"},{"title":"Custodian integration for native and web wallets","sidebarTitle":"Native and web wallets","href":"/ecosystem/walletkit/native-web"},{"title":"Custodian integration for in-wallet browsers and browser extensions","sidebarTitle":"In-app or browser extension wallets","href":"/ecosystem/walletkit/browser-extension"}]}]},{"group":"TON Pay","pages":[{"title":"TON Pay SDK overview","sidebarTitle":"Overview","href":"/ecosystem/ton-pay/overview"},{"title":"Quick start","sidebarTitle":"Quick start","href":"/ecosystem/ton-pay/quick-start"},{"title":"On-ramp in TON Pay SDK","sidebarTitle":"On-ramp","href":"/ecosystem/ton-pay/on-ramp"},{"group":"Payment integration","pages":[{"title":"How to build a transfer","sidebarTitle":"Build a transfer","href":"/ecosystem/ton-pay/payment-integration/transfer"},{"title":"How to send payments using TON Pay React hook","sidebarTitle":"Send payments React","href":"/ecosystem/ton-pay/payment-integration/payments-react"},{"title":"How to send payments using TON Connect","sidebarTitle":"Send payments TON Connect","href":"/ecosystem/ton-pay/payment-integration/payments-tonconnect"},{"title":"How to check status and retrieve info","sidebarTitle":"Check status and retrieve info","href":"/ecosystem/ton-pay/payment-integration/status-info"}]},{"group":"UI integration","pages":[{"title":"How to add a TON Pay button using React","sidebarTitle":"Add TON Pay button React","href":"/ecosystem/ton-pay/ui-integration/button-react"},{"title":"How to add a TON Pay button using JS","sidebarTitle":"Add TON Pay button JS","href":"/ecosystem/ton-pay/ui-integration/button-js"}]},{"title":"TON Pay webhooks","sidebarTitle":"Webhooks","tag":"beta","href":"/ecosystem/ton-pay/webhooks"},{"title":"API reference","sidebarTitle":"API reference","href":"/ecosystem/ton-pay/api-reference"}]},{"group":"TMA: Telegram Mini Apps","pages":[{"title":"TMA: Telegram Mini Apps overview","sidebarTitle":"Overview","href":"/ecosystem/tma/overview"},{"title":"TMA create CLI","href":"/ecosystem/tma/create-mini-app"},{"group":"Telegram UI","pages":[{"title":"Overview","href":"/ecosystem/tma/telegram-ui/overview"},{"title":"Getting started","href":"/ecosystem/tma/telegram-ui/getting-started"},{"title":"AppRoot component","href":"/ecosystem/tma/telegram-ui/platform-and-palette"},{"group":"Reference","pages":[{"title":"Avatar","href":"/ecosystem/tma/telegram-ui/reference/avatar"}]}]},{"group":"Analytics","pages":[{"title":"Telegram analytics","href":"/ecosystem/tma/analytics/analytics"},{"title":"Supported events","href":"/ecosystem/tma/analytics/supported-events"},{"title":"Preparations","href":"/ecosystem/tma/analytics/preparation"},{"title":"Installation via script tag","description":null,"href":"/ecosystem/tma/analytics/install-via-script"},{"title":"Installation via NPM package","href":"/ecosystem/tma/analytics/install-via-npm"},{"title":"API Endpoints","description":null,"href":"/ecosystem/tma/analytics/api-endpoints"},{"title":"Managing integration","href":"/ecosystem/tma/analytics/managing-integration"},{"title":"FAQ","href":"/ecosystem/tma/analytics/faq"}]}]},{"group":"Blockchain nodes","expanded":true,"pages":[{"title":"Blockchain nodes overview","sidebarTitle":"Overview","href":"/ecosystem/nodes/overview"},{"group":"C++ node","pages":[{"title":"Run a node with MyTonCtrl","href":"/ecosystem/nodes/cpp/setup-mytonctrl"},{"title":"Run a validator","href":"/ecosystem/nodes/cpp/run-validator"},{"title":"Run an archive liteserver","href":"/ecosystem/nodes/cpp/run-archive-liteserver"},{"title":"Integrate MyTonCtrl with Prometheus","href":"/ecosystem/nodes/cpp/integrating-with-prometheus"},{"title":"Setting up a local blockchain using MyLocalTon","href":"/ecosystem/nodes/cpp/setup-mylocalton"},{"group":"MyTonCtrl reference","pages":[{"title":"Overview","href":"/ecosystem/nodes/cpp/mytonctrl/overview"},{"title":"Core","href":"/ecosystem/nodes/cpp/mytonctrl/core"},{"title":"Installer","href":"/ecosystem/nodes/cpp/mytonctrl/installer"},{"title":"Wallet","href":"/ecosystem/nodes/cpp/mytonctrl/wallet"},{"title":"Validator","href":"/ecosystem/nodes/cpp/mytonctrl/validator"},{"title":"Collator","href":"/ecosystem/nodes/cpp/mytonctrl/collator"},{"title":"Nominator pools","href":"/ecosystem/nodes/cpp/mytonctrl/pools"},{"title":"Liquid staking","href":"/ecosystem/nodes/cpp/mytonctrl/liquid-staking"},{"title":"Custom overlays","href":"/ecosystem/nodes/cpp/mytonctrl/custom-overlays"},{"title":"Utilities","href":"/ecosystem/nodes/cpp/mytonctrl/utilities"},{"title":"Telegram alerting","href":"/ecosystem/nodes/cpp/mytonctrl/alerting"},{"title":"Backup","href":"/ecosystem/nodes/cpp/mytonctrl/backups"},{"title":"BTC Teleport","href":"/ecosystem/nodes/cpp/mytonctrl/btc-teleport"}]}]},{"group":"Rust node","pages":[{"title":"Rust node quick start","sidebarTitle":"Quick start","href":"/ecosystem/nodes/rust/quick-start"},{"title":"Architecture reference","sidebarTitle":"Architecture","href":"/ecosystem/nodes/rust/architecture"},{"title":"How to configure global JSON file","sidebarTitle":"Global configuration","href":"/ecosystem/nodes/rust/global-config"},{"title":"How to configure logging YAML file","sidebarTitle":"Logging configuration","href":"/ecosystem/nodes/rust/logs-config"},{"title":"How to configure node JSON file","sidebarTitle":"Node configuration","href":"/ecosystem/nodes/rust/node-config"},{"title":"Metrics","href":"/ecosystem/nodes/rust/metrics"},{"title":"Node configuration reference","sidebarTitle":"Node configuration reference","href":"/ecosystem/nodes/rust/node-config-ref"},{"title":"Health probes","href":"/ecosystem/nodes/rust/probes"},{"title":"Monitoring","sidebarTitle":"Monitoring","href":"/ecosystem/nodes/rust/monitoring"}]}]},{"group":"Staking","pages":[{"title":"Staking overview","sidebarTitle":"Overview","href":"/ecosystem/staking/overview"},{"title":"Stake calculation","href":"/ecosystem/staking/stake-calculation"},{"title":"Liquid staking contracts","sidebarTitle":"Liquid staking","href":"/ecosystem/staking/liquid-staking"},{"title":"Single nominator pool contracts","sidebarTitle":"Single nominator pools","href":"/ecosystem/staking/single-nominator"},{"title":"Nominator pool contracts","sidebarTitle":"Nominator pools","href":"/ecosystem/staking/nominator-pools"}]}]},{"group":"Payment processing","pages":[{"title":"Payment processing overview","sidebarTitle":"Overview","href":"/payments/overview"},{"title":"Toncoin payments processing","sidebarTitle":"Toncoin","href":"/payments/toncoin"},{"title":"Jettons payments processing","sidebarTitle":"Jettons","href":"/payments/jettons"}]},{"group":"Standard contracts","pages":[{"group":"Wallets","pages":[{"title":"How TON wallets work","sidebarTitle":"How they work","href":"/standard/wallets/how-it-works"},{"title":"TON wallet mnemonics","sidebarTitle":"Mnemonics","href":"/standard/wallets/mnemonics"},{"title":"Comparison","href":"/standard/wallets/comparison"},{"title":"How to interact with wallets","sidebarTitle":"Interact with wallets","href":"/standard/wallets/interact"},{"title":"Gasless transactions","sidebarTitle":"Gasless transactions","href":"/standard/wallets/gasless"},{"group":"Wallet V5","tag":"latest","pages":[{"title":"Wallet V5","sidebarTitle":"Overview","href":"/standard/wallets/v5"},{"title":"Wallet V5 interface: messages and get methods","sidebarTitle":"Messages and get methods","href":"/standard/wallets/v5-api"}]},{"title":"Wallet V4","sidebarTitle":"Wallet V4","href":"/standard/wallets/v4"},{"group":"Highload wallets","pages":[{"title":"Highload wallets","sidebarTitle":"Overview","href":"/standard/wallets/highload/overview"},{"group":"Highload wallet v3","pages":[{"title":"How to create a highload wallet v3","sidebarTitle":"Create and deploy","href":"/standard/wallets/highload/v3/create"},{"title":"How to send a single transfer","sidebarTitle":"Send single transfer","href":"/standard/wallets/highload/v3/send-single-transfer"},{"title":"How to send a batch of transfers","sidebarTitle":"Send batch transfers","href":"/standard/wallets/highload/v3/send-batch-transfers"},{"title":"How to verify that a message is processed","sidebarTitle":"Verify message is processed","href":"/standard/wallets/highload/v3/verify-is-processed"},{"title":"Highload Wallet v3 — specification","sidebarTitle":"Specification","href":"/standard/wallets/highload/v3/specification"}]},{"group":"Highload wallet v2","pages":[{"title":"Highload wallet v2: Specification","sidebarTitle":"Specification","href":"/standard/wallets/highload/v2/specification"}]}]},{"title":"Lockup wallet","href":"/standard/wallets/lockup"},{"group":"Preprocessed wallet","tag":"v2","pages":[{"title":"How to interact with preprocessed wallet v2","sidebarTitle":"Interact","href":"/standard/wallets/preprocessed-v2/interact"},{"title":"Preprocessed wallet v2: Specification","sidebarTitle":"Specification","href":"/standard/wallets/preprocessed-v2/specification"}]},{"title":"Restricted wallet","href":"/standard/wallets/restricted"},{"title":"Wallets performance benchmark","sidebarTitle":"Performance benchmark","mode":"wide","href":"/standard/wallets/performance"},{"title":"Wallet sources","sidebarTitle":"Sources","mode":"wide","href":"/standard/wallets/sources"},{"title":"Wallets history","sidebarTitle":"History","href":"/standard/wallets/history"}]},{"group":"Tokens","expanded":true,"pages":[{"title":"Token overview","sidebarTitle":"Overview","href":"/standard/tokens/overview"},{"title":"Token metadata","sidebarTitle":"Metadata","href":"/standard/tokens/metadata"},{"group":"Jettons","pages":[{"title":"Overview","href":"/standard/tokens/jettons/overview"},{"title":"Jetton: How it works","sidebarTitle":"How jetton works","href":"/standard/tokens/jettons/how-it-works"},{"title":"Jetton implementations comparison","sidebarTitle":"Comparison","href":"/standard/tokens/jettons/comparison"},{"title":"How to mint new jettons","sidebarTitle":"Mint jettons","href":"/standard/tokens/jettons/mint"},{"title":"How to transfer jettons","sidebarTitle":"Transfer jettons","href":"/standard/tokens/jettons/transfer"},{"title":"How to burn jettons","sidebarTitle":"Burn jettons","href":"/standard/tokens/jettons/burn"},{"title":"How to find jetton wallet","sidebarTitle":"Find jetton wallet","href":"/standard/tokens/jettons/find"},{"title":"How to get jetton wallet data","sidebarTitle":"Get jetton wallet data","href":"/standard/tokens/jettons/wallet-data"},{"title":"How to get jetton supply data","sidebarTitle":"Get jetton supply data","href":"/standard/tokens/jettons/supply-data"},{"title":"Mintless jetton","sidebarTitle":"Mintless jetton","href":"/standard/tokens/jettons/mintless/overview"},{"title":"How to deploy mintless jetton","sidebarTitle":"Deploy mintless jetton","href":"/standard/tokens/jettons/mintless/deploy"},{"title":"Jetton interface: messages and get methods","sidebarTitle":"Messages and get methods","href":"/standard/tokens/jettons/api"}]},{"group":"NFT","pages":[{"title":"NFT: Non-fungible token","sidebarTitle":"Overview","href":"/standard/tokens/nft/overview"},{"title":"NFT: How it works","sidebarTitle":"How NFT works","href":"/standard/tokens/nft/how-it-works"},{"title":"SBT: How it works","sidebarTitle":"How SBT works","href":"/standard/tokens/nft/sbt"},{"title":"NFT implementations comparison","sidebarTitle":"Comparison","href":"/standard/tokens/nft/comparison"},{"title":"How to deploy an NFT item","sidebarTitle":"Deploy NFT item","href":"/standard/tokens/nft/deploy"},{"title":"How to transfer an NFT item","sidebarTitle":"Transfer NFT item","href":"/standard/tokens/nft/transfer"},{"title":"How to get NFT item metadata","sidebarTitle":"Get NFT item metadata","href":"/standard/tokens/nft/metadata"},{"title":"How to verify an NFT item","sidebarTitle":"Verify NFT item","href":"/standard/tokens/nft/verify"},{"title":"NFT interface: messages and get methods","sidebarTitle":"Messages and get methods","href":"/standard/tokens/nft/api"},{"title":"NFT: reference implementation","sidebarTitle":"Reference implementation","href":"/standard/tokens/nft/nft-reference"}]},{"title":"Token airdrop","sidebarTitle":"Airdrop","href":"/standard/tokens/airdrop"}]},{"title":"Vesting contracts","sidebarTitle":"Vesting","href":"/standard/vesting"}]},{"group":"Contract development","pages":[{"title":"Acton toolchain","url":"https://ton-blockchain.github.io/acton/docs/welcome","href":"/contract-dev/acton"},{"group":"IDEs and editor plugins","pages":[{"title":"TON extension for Visual Studio Code (VS Code) and VSCode-based editors","sidebarTitle":"VSCode and forks","href":"/contract-dev/ide/vscode"},{"title":"TON plugin for IDEs from JetBrains","sidebarTitle":"JetBrains IDEs","href":"/contract-dev/ide/jetbrains"}]},{"group":"Techniques","expanded":true,"pages":[{"title":"Signing messages","href":"/contract-dev/techniques/signing"},{"title":"Contract sharding","href":"/contract-dev/techniques/contract-sharding"},{"title":"Security best practices","href":"/contract-dev/techniques/security"},{"title":"Estimate gas usage in TON contracts","href":"/contract-dev/techniques/gas"},{"title":"On-chain jetton processing","sidebarTitle":"Jetton processing","href":"/contract-dev/techniques/on-chain-jetton-processing"},{"title":"How to use on-chain libraries","sidebarTitle":"Using on-chain libraries","href":"/contract-dev/techniques/using-on-chain-libraries"},{"title":"Random number generation","sidebarTitle":"Random numbers","href":"/contract-dev/techniques/random"},{"title":"Upgrading contracts","href":"/contract-dev/techniques/upgrades"},{"title":"How to use a vanity contract","sidebarTitle":"Use a vanity contract","href":"/contract-dev/techniques/vanity"},{"title":"Zero-knowledge proofs on TON","sidebarTitle":"Zero-knowledge proofs","href":"/contract-dev/techniques/zero-knowledge"},{"title":"How to verify Groth16 examples on TON","sidebarTitle":"Groth16 examples","href":"/contract-dev/techniques/groth16-examples"}]},{"group":"Blueprint","tag":"legacy","pages":[{"title":"Blueprint overview","sidebarTitle":"Overview","href":"/contract-dev/blueprint/overview"},{"title":"Write your first smart contract with Blueprint","sidebarTitle":"First smart contract","href":"/contract-dev/blueprint/first-smart-contract"},{"title":"Smart contract development with Blueprint","sidebarTitle":"Smart contract development","href":"/contract-dev/blueprint/develop"},{"group":"Testing","pages":[{"title":"Testing smart contracts with Blueprint","sidebarTitle":"Overview","href":"/contract-dev/testing/overview"},{"title":"Testing style guide for Blueprint projects","sidebarTitle":"Style guide","href":"/contract-dev/testing/style-guide"},{"title":"Reference for testing with Blueprint","sidebarTitle":"Reference","href":"/contract-dev/testing/reference"}]},{"title":"Debugging smart contracts with Blueprint","sidebarTitle":"Debugging","href":"/contract-dev/blueprint/debug"},{"title":"Deployment and interaction with Blueprint","sidebarTitle":"Deployment and interaction","href":"/contract-dev/blueprint/deploy"},{"title":"Collecting test coverage with Blueprint","sidebarTitle":"Collecting test coverage","href":"/contract-dev/blueprint/coverage"},{"title":"Benchmarking performance with Blueprint","sidebarTitle":"Benchmarking performance","href":"/contract-dev/blueprint/benchmarks"},{"title":"Configuring Blueprint","href":"/contract-dev/blueprint/config"},{"title":"Blueprint CLI reference","sidebarTitle":"Blueprint CLI","href":"/contract-dev/blueprint/cli"},{"title":"Blueprint TypeScript API","href":"/contract-dev/blueprint/api"}]}]},{"group":"Tolk language","tag":"recommended","pages":[{"title":"Tolk language","sidebarTitle":"Overview","href":"/tolk/overview"},{"title":"Basic syntax","sidebarTitle":"Basic syntax","href":"/tolk/basic-syntax"},{"title":"Idioms and conventions","href":"/tolk/idioms-conventions"},{"title":"Tolk contract examples","sidebarTitle":"Examples","href":"/tolk/examples"},{"group":"Type system","pages":[{"title":"Type system overview","sidebarTitle":"List of types","href":"/tolk/types/list-of-types"},{"title":"Numbers","href":"/tolk/types/numbers"},{"title":"Booleans","href":"/tolk/types/booleans"},{"title":"Address","href":"/tolk/types/address"},{"title":"Cells, slices, builders","href":"/tolk/types/cells"},{"title":"Strings","sidebarTitle":"Strings","href":"/tolk/types/strings"},{"title":"Structures","href":"/tolk/types/structures"},{"title":"Type aliases","href":"/tolk/types/aliases"},{"title":"Generic structs and aliases","sidebarTitle":"Generics","href":"/tolk/types/generics"},{"title":"Enums","href":"/tolk/types/enums"},{"title":"Nullable types and null safety","sidebarTitle":"Nullable types","href":"/tolk/types/nullable"},{"title":"Union types","href":"/tolk/types/unions"},{"title":"Tensors","sidebarTitle":"Tensors","href":"/tolk/types/tensors"},{"title":"Arrays and tuples","sidebarTitle":"Arrays","href":"/tolk/types/tuples"},{"title":"Maps","href":"/tolk/types/maps"},{"title":"Callables","href":"/tolk/types/callables"},{"title":"The unknown type","sidebarTitle":"Unknown","href":"/tolk/types/unknown"},{"title":"Void and never types","sidebarTitle":"Void and never","href":"/tolk/types/void-never"},{"title":"Type checks and casts","href":"/tolk/types/type-checks-and-casts"},{"title":"TVM stack representation","sidebarTitle":"TVM stack","href":"/tolk/types/overall-tvm-stack"},{"title":"Serialization","sidebarTitle":"Serialization","href":"/tolk/types/overall-serialization"}]},{"group":"Syntax details","pages":[{"title":"Variables","href":"/tolk/syntax/variables"},{"title":"Conditions and loops","href":"/tolk/syntax/conditions-loops"},{"title":"Exceptions in Tolk","sidebarTitle":"Exceptions","href":"/tolk/syntax/exceptions"},{"title":"Functions and methods","href":"/tolk/syntax/functions-methods"},{"title":"Structures and fields","href":"/tolk/syntax/structures-fields"},{"title":"Pattern matching","href":"/tolk/syntax/pattern-matching"},{"title":"Mutability","href":"/tolk/syntax/mutability"},{"title":"Operators","href":"/tolk/syntax/operators"},{"title":"Imports and name resolution","sidebarTitle":"Imports","href":"/tolk/syntax/imports"}]},{"group":"Language features","pages":[{"title":"Handling messages","href":"/tolk/features/message-handling"},{"title":"Contract storage","href":"/tolk/features/contract-storage"},{"title":"Contract getters","href":"/tolk/features/contract-getters"},{"title":"Contract declaration and ABI","sidebarTitle":"Contract and ABI","href":"/tolk/features/contract-abi"},{"title":"Sending messages","href":"/tolk/features/message-sending"},{"title":"Automatic serialization","href":"/tolk/features/auto-serialization"},{"title":"Lazy loading","href":"/tolk/features/lazy-loading"},{"title":"Forward payload in jettons","sidebarTitle":"Payload in jettons","href":"/tolk/features/jetton-payload"},{"title":"Standard library","sidebarTitle":"Standard library","href":"/tolk/features/standard-library"},{"title":"Assembler functions","href":"/tolk/features/asm-functions"},{"title":"Compiler optimizations","href":"/tolk/features/compiler-optimizations"}]},{"group":"Migrating from FunC","pages":[{"title":"Tolk vs FunC","href":"/tolk/from-func/tolk-vs-func"},{"title":"Standard libraries comparison","sidebarTitle":"Standard libraries","href":"/tolk/from-func/stdlib-comparison"},{"title":"FunC-to-Tolk converter","sidebarTitle":"Converter","href":"/tolk/from-func/converter"}]},{"title":"Changelog","href":"/tolk/changelog"}]},{"group":"TVM: TON Virtual Machine","pages":[{"title":"TVM overview","sidebarTitle":"Overview","href":"/tvm/overview"},{"group":"Tools","pages":[{"title":"TxTracer","href":"/tvm/tools/txtracer"},{"title":"Retracer","href":"/tvm/tools/retracer"},{"title":"TVM Explorer","href":"/tvm/tools/tvm-explorer"},{"title":"TON Decompiler","href":"/tvm/tools/ton-decompiler"}]},{"title":"Instructions","mode":"wide","href":"/tvm/instructions"},{"title":"Builders and Slices","href":"/tvm/builders-and-slices"},{"title":"Continuations","href":"/tvm/continuations"},{"title":"TVM registers","sidebarTitle":"Registers","href":"/tvm/registers"},{"title":"Gas","href":"/tvm/gas"},{"title":"Initialization","href":"/tvm/initialization"},{"title":"Exit codes","href":"/tvm/exit-codes"},{"title":"Get methods","href":"/tvm/get-method"}]},{"group":"Blockchain foundations","pages":[{"group":"TL-B","pages":[{"title":"TL-B overview","sidebarTitle":"Overview","href":"/foundations/tlb/overview"},{"title":"TL-B syntax and semantics","sidebarTitle":"Syntax and semantics","href":"/foundations/tlb/syntax-and-semantics"},{"title":"Simple TL-B examples","sidebarTitle":"Simple examples","href":"/foundations/tlb/simple-examples"},{"title":"Complex and non-trivial TL-B examples","sidebarTitle":"Complex and non-trivial examples","href":"/foundations/tlb/complex-and-non-trivial-examples"},{"title":"TEP TL-B examples","sidebarTitle":"TEP examples","href":"/foundations/tlb/tep-examples"},{"title":"TL-B tooling","sidebarTitle":"Tooling","href":"/foundations/tlb/tooling"}]},{"group":"Serialization","pages":[{"title":"Cells","href":"/foundations/serialization/cells"},{"title":"Library references","href":"/foundations/serialization/library"},{"title":"Merkle proofs","href":"/foundations/serialization/merkle"},{"title":"Merkle updates","href":"/foundations/serialization/merkle-update"},{"title":"Pruned branches","href":"/foundations/serialization/pruned"},{"title":"Bag of cells","href":"/foundations/serialization/boc"}]},{"group":"Addresses","pages":[{"title":"Addresses overview","sidebarTitle":"Overview","href":"/foundations/addresses/overview"},{"title":"Internal address formats","href":"/foundations/addresses/formats"},{"title":"Reading and writing addresses","href":"/foundations/addresses/serialize"},{"title":"Deriving addresses","sidebarTitle":"Deriving","href":"/foundations/addresses/derive"}]},{"group":"Messages \u0026 Transactions","pages":[{"title":"Overview","href":"/foundations/messages/overview"},{"title":"Internal messages","href":"/foundations/messages/internal"},{"title":"Incoming external messages","href":"/foundations/messages/external-in"},{"title":"Outbound external messages","href":"/foundations/messages/external-out"},{"title":"Deploy message","href":"/foundations/messages/deploy"},{"title":"Sending modes","href":"/foundations/messages/modes"},{"title":"Ordinary transactions","href":"/foundations/messages/ordinary-tx"}]},{"group":"Actions","pages":[{"title":"Actions","sidebarTitle":"Overview","href":"/foundations/actions/overview"},{"title":"Send message","href":"/foundations/actions/send"},{"title":"Reserve coins","href":"/foundations/actions/reserve"},{"title":"Set code","href":"/foundations/actions/set-code"},{"title":"Change library","href":"/foundations/actions/change-library"}]},{"group":"Consensus","pages":[{"title":"Catchain overview","sidebarTitle":"Overview","href":"/foundations/consensus/catchain-overview"},{"title":"Catchain 1.0 and BCP visualizer","sidebarTitle":"Catchain visualizer","mode":"wide","href":"/foundations/consensus/catchain-visualizer"}]},{"title":"Account status","href":"/foundations/status"},{"title":"Execution phases","href":"/foundations/phases"},{"title":"Transaction fees","href":"/foundations/fees"},{"title":"Traces","href":"/foundations/traces"},{"title":"Blockchain sharding","href":"/foundations/shards"},{"title":"Blockchain limits","sidebarTitle":"Limits","href":"/foundations/limits"},{"title":"Blockchain configuration","sidebarTitle":"Config","href":"/foundations/config"},{"group":"Web3 services","pages":[{"title":"Web3 services","sidebarTitle":"Overview","href":"/foundations/web3/overview"},{"title":"TON DNS","href":"/foundations/web3/ton-dns"},{"title":"TON Storage","href":"/foundations/web3/ton-storage"},{"title":"TON Proxy","href":"/foundations/web3/ton-proxy"},{"title":"TON Sites","href":"/foundations/web3/ton-sites"}]},{"group":"Merkle proofs","pages":[{"title":"Overview","href":"/foundations/proofs/overview"},{"title":"Liteserver proof verification","href":"/foundations/proofs/verifying-liteserver-proofs"}]},{"title":"System contracts","href":"/foundations/system"},{"title":"Precompiled contracts","href":"/foundations/precompiled"},{"group":"Whitepapers","pages":[{"title":"Overview","href":"/foundations/whitepapers/overview"},{"title":"Whitepaper comments","sidebarTitle":"Comments","href":"/foundations/whitepapers/comments"},{"title":"Telegram Open Network Virtual Machine","sidebarTitle":"TVM","href":"/foundations/whitepapers/tvm"},{"title":"Telegram Open Network (TON) Blockchain Specification","sidebarTitle":"TON Blockchain","href":"/foundations/whitepapers/tblkch"},{"title":"The Open Network","sidebarTitle":"The Open Network","href":"/foundations/whitepapers/ton"},{"title":"Catchain consensus: an outline","sidebarTitle":"Catchain consensus","href":"/foundations/whitepapers/catchain"}]},{"title":"Glossary","href":"/foundations/glossary"}]},{"group":"Legacy languages","pages":[{"group":"Fift","pages":[{"title":"Fift language overview","sidebarTitle":"Overview","href":"/languages/fift/overview"},{"title":"Fift types","sidebarTitle":"Types","href":"/languages/fift/types"},{"title":"Basic values and literals in Fift","sidebarTitle":"Basic values","href":"/languages/fift/basic-values"},{"title":"Words, constants, and variables in Fift","sidebarTitle":"Words, constants, and variables","href":"/languages/fift/variables"},{"title":"Control flow in Fift","sidebarTitle":"Control flow","href":"/languages/fift/control"},{"title":"Fift assembler","sidebarTitle":"Assembler","href":"/languages/fift/fift-assembler"},{"title":"Fift and TVM assembly","href":"/languages/fift/fift-and-tvm-assembly"},{"title":"Fift deep dive","sidebarTitle":"Deep dive","href":"/languages/fift/deep-dive"},{"title":"Simple multisig contract with Fift","sidebarTitle":"Simple multisig contract","href":"/languages/fift/multisig"},{"title":"How to change TON configuration parameters with Fift","sidebarTitle":"Change TON config params","href":"/languages/fift/ton-config"},{"title":"Fift: A Brief Introduction","sidebarTitle":"Whitepaper","href":"/languages/fift/whitepaper"}]},{"group":"FunC","pages":[{"title":"FunC language overview","sidebarTitle":"Overview","href":"/languages/func/overview"},{"title":"FunC cookbook","sidebarTitle":"Cookbook","href":"/languages/func/cookbook"},{"group":"Language","expanded":true,"pages":[{"title":"FunC comments","sidebarTitle":"Comments","href":"/languages/func/comments"},{"title":"FunC types","sidebarTitle":"Types","href":"/languages/func/types"},{"title":"FunC literals","sidebarTitle":"Literals","href":"/languages/func/literals"},{"title":"FunC operators","sidebarTitle":"Operators","href":"/languages/func/operators"},{"title":"FunC expressions","sidebarTitle":"Expressions","href":"/languages/func/expressions"},{"title":"FunC statements","sidebarTitle":"Statements","href":"/languages/func/statements"},{"group":"Program declarations","expanded":true,"pages":[{"title":"FunC program declarations","sidebarTitle":"Overview","href":"/languages/func/declarations-overview"},{"title":"FunC functions","sidebarTitle":"Functions","href":"/languages/func/functions"},{"title":"Reserved functions of FunC","sidebarTitle":"Reserved functions","href":"/languages/func/special-functions"},{"title":"FunC assembler functions","sidebarTitle":"Assembler functions","href":"/languages/func/asm-functions"},{"title":"FunC global variables","sidebarTitle":"Global variables","href":"/languages/func/global-variables"},{"title":"FunC compiler directives","sidebarTitle":"Compiler directives","href":"/languages/func/compiler-directives"}]},{"title":"FunC reserved words and built-ins","sidebarTitle":"Reserved words and built-ins","href":"/languages/func/built-ins"},{"title":"FunC dictionaries","sidebarTitle":"Dictionaries","href":"/languages/func/dictionaries"}]},{"group":"Libraries","expanded":true,"pages":[{"title":"Standard library of FunC","sidebarTitle":"Standard library","href":"/languages/func/stdlib"},{"title":"Other FunC libraries","sidebarTitle":"Other libraries","href":"/languages/func/libraries"}]},{"title":"FunC changelog","sidebarTitle":"Changelog","href":"/languages/func/changelog"},{"title":"Known issues of FunC","sidebarTitle":"Known issues","href":"/languages/func/known-issues"}]},{"title":"Tact language","sidebarTitle":"Tact","tag":"deprecated","href":"/languages/tact"}]},{"group":"Contributing","pages":[{"title":"Documentation style guide","sidebarTitle":"Style guide","href":"/contribute/style-guide"},{"group":"Components and snippets","pages":[{"title":"Using components and snippets","sidebarTitle":"Overview","href":"/contribute/snippets/overview"},{"title":"Aside component","sidebarTitle":"Aside","href":"/contribute/snippets/aside"},{"title":"Image component","sidebarTitle":"Image","href":"/contribute/snippets/image"},{"title":"FileTree component","sidebarTitle":"FileTree","href":"/contribute/snippets/filetree"}]}]}]},"basePath":"","title":"Installation via NPM package - TON Docs","deploymentId":"dpl_EwfxjeKENdVkfzdag8rM6mKzcTUJ","buildId":"dpl_EwfxjeKENdVkfzdag8rM6mKzcTUJ","dynamics":[],"chunks":[]}