{"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.4342","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":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"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":"languages/func/declarations-overview","slug":"/languages/func/declarations-overview","pageMetadata":{"title":"FunC program declarations","sidebarTitle":"Overview","noindex":"true","description":null,"href":"/languages/func/declarations-overview"},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];const Image=({src,darkSrc,alt=``,darkAlt,href,target,height=342,width=608,noZoom=false,center=false})=>{const _components={a:`a`,..._provideComponents()},{Danger}=_components;if(!Danger)_missingMdxReference(`Danger`,true);const isSVG=src.match(/\\.svg(?:[#?].*?)?$/i)!==null;const shouldInvert=isSVG\u0026\u0026!darkSrc;const shouldCreateLink=href!==undefined;const minPx=9;const maxPx=608;const expectedPx=`a number or a string with a number that is greater than ${minPx-1} and less than or equal to ${maxPx}`;const createInvalidPropCallout=(title,received,expected)=>{return _jsxs(Danger,{children:[_jsxs(`span`,{className:`mint-font-bold`,children:[`Invalid `,_jsx(`code`,{children:title.toString()}),` passed!`]}),_jsx(`br`,{}),_jsx(`span`,{className:`mint-font-bold`,children:`Received: `}),received.toString(),_jsx(`br`,{}),_jsx(`span`,{className:`mint-font-bold`,children:`Expected: `}),expected.toString()]})};const checkValidDimensionValue=value=>{switch(typeof value){case`string`:case`number`:const num=Number(value);return Number.isSafeInteger(num)\u0026\u0026num>=minPx\u0026\u0026num\u003c=maxPx;default:return false}};let callouts=[];if(height\u0026\u0026!checkValidDimensionValue(height)){callouts.push(createInvalidPropCallout(`height`,height,expectedPx))}if(width\u0026\u0026!checkValidDimensionValue(width)){callouts.push(createInvalidPropCallout(`width`,width,expectedPx))}if(callouts.length!==0){return callouts}const heightPx=Number(height);const widthPx=Number(width);const shouldCenter=center===`true`||center===true?true:false;const shouldNotZoom=noZoom===`true`||noZoom===true?true:false;const images=_jsxs(_Fragment,{children:[_jsx(`img`,{className:`mint-block dark:mint-hidden`,src,alt,...height\u0026\u0026{height:heightPx},...width\u0026\u0026{width:widthPx},...(shouldCreateLink||shouldInvert||shouldNotZoom)\u0026\u0026{noZoom:`true`}}),_jsx(`img`,{className:`mint-hidden dark:mint-block ${shouldInvert?`mint-invert`:``}`,src:darkSrc??src,alt:darkAlt??alt,...height\u0026\u0026{height:heightPx},...width\u0026\u0026{width:widthPx},...(shouldCreateLink||shouldInvert||shouldNotZoom)\u0026\u0026{noZoom:`true`}})]});if(shouldCreateLink){if(shouldCenter){return _jsx(`div`,{style:{display:`flex`,justifyContent:`center`},children:_jsx(_components.a,{href,target:target??`_self`,children:images})})}return _jsx(_components.a,{href,target:target??`_self`,children:images})}if(shouldCenter){return _jsx(`div`,{style:{display:`flex`,justifyContent:`center`},children:images})}return images};const Aside=({type=`note`,title=``,icon=``,iconType=`regular`,children})=>{const{Icon}=_provideComponents()||{};if(!Icon)_missingMdxReference(`Icon`,true);const asideVariants=[`note`,`tip`,`caution`,`danger`];const asideComponents={note:{outerStyle:`border-sky-500/20 bg-sky-50/50 dark:border-sky-500/30 dark:bg-sky-500/10`,innerStyle:`text-sky-900 dark:text-sky-200`,calloutType:`note`,icon:_jsx(`svg`,{width:`14`,height:`14`,viewBox:`0 0 14 14`,fill:`currentColor`,xmlns:`http://www.w3.org/2000/svg`,className:`mint-w-4 mint-h-4 mint-text-sky-500`,\"aria-label\":`Note`,children:_jsx(`path`,{\"fill-rule\":`evenodd`,\"clip-rule\":`evenodd`,d:`M7 1.3C10.14 1.3 12.7 3.86 12.7 7C12.7 10.14 10.14 12.7 7 12.7C5.48908 12.6974 4.0408 12.096 2.97241 11.0276C1.90403 9.9592 1.30264 8.51092 1.3 7C1.3 3.86 3.86 1.3 7 1.3ZM7 0C3.14 0 0 3.14 0 7C0 10.86 3.14 14 7 14C10.86 14 14 10.86 14 7C14 3.14 10.86 0 7 0ZM8 3H6V8H8V3ZM8 9H6V11H8V9Z`})})},tip:{outerStyle:`border-emerald-500/20 bg-emerald-50/50 dark:border-emerald-500/30 dark:bg-emerald-500/10`,innerStyle:`text-emerald-900 dark:text-emerald-200`,calloutType:`tip`,icon:_jsx(`svg`,{width:`11`,height:`14`,viewBox:`0 0 11 14`,fill:`currentColor`,xmlns:`http://www.w3.org/2000/svg`,className:`mint-text-emerald-600 dark:mint-text-emerald-400/80 mint-w-3.5 mint-h-auto`,\"aria-label\":`Tip`,children:_jsx(`path`,{d:`M3.12794 12.4232C3.12794 12.5954 3.1776 12.7634 3.27244 12.907L3.74114 13.6095C3.88471 13.8248 4.21067 14 4.46964 14H6.15606C6.41415 14 6.74017 13.825 6.88373 13.6095L7.3508 12.9073C7.43114 12.7859 7.49705 12.569 7.49705 12.4232L7.50055 11.3513H3.12521L3.12794 12.4232ZM5.31288 0C2.52414 0.00875889 0.5 2.26889 0.5 4.78826C0.5 6.00188 0.949566 7.10829 1.69119 7.95492C2.14321 8.47011 2.84901 9.54727 3.11919 10.4557C3.12005 10.4625 3.12175 10.4698 3.12261 10.4771H7.50342C7.50427 10.4698 7.50598 10.463 7.50684 10.4557C7.77688 9.54727 8.48281 8.47011 8.93484 7.95492C9.67728 7.13181 10.1258 6.02703 10.1258 4.78826C10.1258 2.15486 7.9709 0.000106649 5.31288 0ZM7.94902 7.11267C7.52078 7.60079 6.99082 8.37878 6.6077 9.18794H4.02051C3.63739 8.37878 3.10743 7.60079 2.67947 7.11294C2.11997 6.47551 1.8126 5.63599 1.8126 4.78826C1.8126 3.09829 3.12794 1.31944 5.28827 1.3126C7.2435 1.3126 8.81315 2.88226 8.81315 4.78826C8.81315 5.63599 8.50688 6.47551 7.94902 7.11267ZM4.87534 2.18767C3.66939 2.18767 2.68767 3.16939 2.68767 4.37534C2.68767 4.61719 2.88336 4.81288 3.12521 4.81288C3.36705 4.81288 3.56274 4.61599 3.56274 4.37534C3.56274 3.6515 4.1515 3.06274 4.87534 3.06274C5.11719 3.06274 5.31288 2.86727 5.31288 2.62548C5.31288 2.38369 5.11599 2.18767 4.87534 2.18767Z`})})},caution:{outerStyle:`border-amber-500/20 bg-amber-50/50 dark:border-amber-500/30 dark:bg-amber-500/10`,innerStyle:`text-amber-900 dark:text-amber-200`,calloutType:`warning`,icon:_jsx(`svg`,{className:`mint-flex-none mint-w-5 mint-h-5 mint-text-amber-400 dark:mint-text-amber-300/80`,fill:`none`,viewBox:`0 0 24 24`,stroke:`currentColor`,\"stroke-width\":`2`,\"aria-label\":`Warning`,children:_jsx(`path`,{\"stroke-linecap\":`round`,\"stroke-linejoin\":`round`,d:`M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z`})})},danger:{outerStyle:`border-red-500/20 bg-red-50/50 dark:border-red-500/30 dark:bg-red-500/10`,innerStyle:`text-red-900 dark:text-red-200`,calloutType:`danger`,icon:_jsx(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`,fill:`currentColor`,className:`mint-text-red-600 dark:mint-text-red-400/80 mint-w-4 mint-h-4`,\"aria-label\":`Danger`,children:_jsx(`path`,{d:`M17.1 292c-12.9-22.3-12.9-49.7 0-72L105.4 67.1c12.9-22.3 36.6-36 62.4-36l176.6 0c25.7 0 49.5 13.7 62.4 36L494.9 220c12.9 22.3 12.9 49.7 0 72L406.6 444.9c-12.9 22.3-36.6 36-62.4 36l-176.6 0c-25.7 0-49.5-13.7-62.4-36L17.1 292zm41.6-48c-4.3 7.4-4.3 16.6 0 24l88.3 152.9c4.3 7.4 12.2 12 20.8 12l176.6 0c8.6 0 16.5-4.6 20.8-12L453.4 268c4.3-7.4 4.3-16.6 0-24L365.1 91.1c-4.3-7.4-12.2-12-20.8-12l-176.6 0c-8.6 0-16.5 4.6-20.8 12L58.6 244zM256 128c13.3 0 24 10.7 24 24l0 112c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z`})})}};let variant=type;let gotInvalidVariant=false;if(!asideVariants.includes(type)){gotInvalidVariant=true;variant=`danger`}const iconVariants=[`regular`,`solid`,`light`,`thin`,`sharp-solid`,`duotone`,`brands`];if(!iconVariants.includes(iconType)){iconType=`regular`}return _jsx(_Fragment,{children:_jsxs(`div`,{className:`callout mint-my-4 mint-px-5 mint-py-4 mint-overflow-hidden mint-rounded-2xl mint-flex mint-gap-3 mint-border ${asideComponents[variant].outerStyle}`,\"data-callout-type\":asideComponents[variant].calloutType,children:[_jsx(`div`,{className:`mint-mt-0.5 mint-w-4`,\"data-component-part\":`callout-icon`,children:icon===``?asideComponents[variant].icon:_jsx(Icon,{icon,iconType,size:14})}),_jsx(`div`,{className:`mint-text-sm prose mint-min-w-0 mint-w-full ${asideComponents[variant].innerStyle}`,\"data-component-part\":`callout-content`,children:gotInvalidVariant?_jsxs(`p`,{children:[_jsxs(`span`,{className:`mint-font-bold`,children:[`Invalid `,_jsx(`code`,{children:`type`}),` passed!`]}),_jsx(`br`,{}),_jsx(`span`,{className:`mint-font-bold`,children:`Received: `}),type,_jsx(`br`,{}),_jsx(`span`,{className:`mint-font-bold`,children:`Expected one of: `}),asideVariants.join(`, `)]}):_jsxs(_Fragment,{children:[title\u0026\u0026_jsx(`p`,{className:`mint-font-bold`,children:title}),children]})})]})})};function _createMdxContent(props){const _components={a:`a`,li:`li`,p:`p`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{_MdxComponentBoundary}=_components;if(!_MdxComponentBoundary)_missingMdxReference(`_MdxComponentBoundary`,true);return _jsxs(_Fragment,{children:[_jsx(_MdxComponentBoundary,{name:`Aside`,children:_jsxs(Aside,{type:`note`,children:[_jsxs(_components.p,{children:[`The official smart contract language of TON Blockchain is `,_jsx(_components.a,{href:`/tolk/overview`,children:`Tolk`}),`. FunC is now a `,_jsx(_components.strong,{children:`legacy`}),` language, with its compiler no longer maintained.`]}),_jsxs(_components.p,{children:[`Learn how to `,_jsx(_components.a,{href:`/tolk/from-func/tolk-vs-func`,children:`migrate from FunC to Tolk`}),`. For new smart contract projects, use the `,_jsx(_components.a,{href:`/contract-dev/acton`,children:`Acton toolchain`}),`.`]})]})}),`\n`,_jsx(_components.p,{children:`A FunC program is a list of:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/languages/func/functions`,children:`Function declarations and definitions`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/languages/func/global-variables`,children:`Global variable declarations`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/languages/func/compiler-directives`,children:`Compiler directives`})}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{Image,Aside,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":"FunC program declarations","sidebarTitle":"Overview","noindex":"true","description":null,"href":"/languages/func/declarations-overview"}}},"mdxSourceWithNoJs":null,"noJsSplices":[[141,8027,")=>null;const Aside=()=>null;function _c"]]},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/companyname-a7d5b98e/8dbfabe739c27c0a/extra.js","/_mintlify/custom/companyname-a7d5b98e/bec5a969afdba522/scripts/sidebars/sidebars.js"],"dynamicCss":".mint-my-4 {\n margin-top: 1rem;\n margin-bottom: 1rem\n}\n.mint-mt-0\\.5 {\n margin-top: 0.125rem\n}\n.mint-block {\n display: block\n}\n.mint-flex {\n display: flex\n}\n.mint-hidden {\n display: none\n}\n.mint-h-4 {\n height: 1rem\n}\n.mint-h-5 {\n height: 1.25rem\n}\n.mint-h-auto {\n height: auto\n}\n.mint-w-3\\.5 {\n width: 0.875rem\n}\n.mint-w-4 {\n width: 1rem\n}\n.mint-w-5 {\n width: 1.25rem\n}\n.mint-w-full {\n width: 100%\n}\n.mint-min-w-0 {\n min-width: 0px\n}\n.mint-flex-none {\n flex: none\n}\n.mint-gap-3 {\n gap: 0.75rem\n}\n.mint-overflow-hidden {\n overflow: hidden\n}\n.mint-rounded-2xl {\n border-radius: 1rem\n}\n.mint-border {\n border-width: 1px\n}\n.mint-px-5 {\n padding-left: 1.25rem;\n padding-right: 1.25rem\n}\n.mint-py-4 {\n padding-top: 1rem;\n padding-bottom: 1rem\n}\n.mint-text-sm {\n font-size: 0.875rem;\n line-height: 1.25rem\n}\n.mint-font-bold {\n font-weight: 700\n}\n.mint-text-amber-400 {\n --tw-text-opacity: 1;\n color: rgb(251 191 36 / var(--tw-text-opacity, 1))\n}\n.mint-text-emerald-600 {\n --tw-text-opacity: 1;\n color: rgb(5 150 105 / var(--tw-text-opacity, 1))\n}\n.mint-text-red-600 {\n --tw-text-opacity: 1;\n color: rgb(220 38 38 / var(--tw-text-opacity, 1))\n}\n.mint-text-sky-500 {\n --tw-text-opacity: 1;\n color: rgb(14 165 233 / var(--tw-text-opacity, 1))\n}\n.mint-invert {\n --tw-invert: invert(100%);\n filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)\n}\n.dark\\:mint-block:is(.dark *) {\n display: block\n}\n.dark\\:mint-hidden:is(.dark *) {\n display: none\n}\n.dark\\:mint-text-amber-300\\/80:is(.dark *) {\n color: rgb(252 211 77 / 0.8)\n}\n.dark\\:mint-text-emerald-400\\/80:is(.dark *) {\n color: rgb(52 211 153 / 0.8)\n}\n.dark\\:mint-text-red-400\\/80:is(.dark *) {\n color: rgb(248 113 113 / 0.8)\n}","subdomain":"companyname-a7d5b98e","siteName":"TON Docs","title":"FunC program declarations - TON Docs","contextualStarterQuestions":[{"_id":"6a1f136488558046f24bc8a5","deploymentId":"68886db420e64889958d5cc7","questionText":"What syntax rules apply?","status":"active","generatedBy":"contextual","path":"languages/func/declarations-overview","createdAt":"2026-06-02T17:31:16.435Z","updatedAt":"2026-06-02T17:31:16.435Z","__v":0},{"_id":"6a1f136488558046f24bc8a4","deploymentId":"68886db420e64889958d5cc7","questionText":"How do I declare functions?","status":"active","generatedBy":"contextual","path":"languages/func/declarations-overview","createdAt":"2026-06-02T17:31:16.435Z","updatedAt":"2026-06-02T17:31:16.435Z","__v":0},{"_id":"6a1f136488558046f24bc8a3","deploymentId":"68886db420e64889958d5cc7","questionText":"What are FunC declarations?","status":"active","generatedBy":"contextual","path":"languages/func/declarations-overview","createdAt":"2026-06-02T17:31:16.435Z","updatedAt":"2026-06-02T17:31:16.435Z","__v":0}],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-06-02T17:30:38.489Z","originalFileLocation":"languages/func/declarations-overview.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\">\u003cmeta data-mint-head name=\"robots\" content=\"noindex\">\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=\"FunC program declarations - 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/languages/func/declarations-overview\">\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=Program+declarations\u0026amp;title=FunC+program+declarations\u0026amp;theme=fb6da8bd440e499740228277\u0026amp;signature=6d26500d1f025d3e5efd4529fb68831880d1da3cfd47dddfa7fa7c3f9c38c21e\">\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=\"FunC program declarations - TON Docs\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://companyname-a7d5b98e.mintlify.site/_mintlify/api/og/v2?division=Program+declarations\u0026amp;title=FunC+program+declarations\u0026amp;theme=fb6da8bd440e499740228277\u0026amp;signature=6d26500d1f025d3e5efd4529fb68831880d1da3cfd47dddfa7fa7c3f9c38c21e\">\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/languages/func/declarations-overview\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/languages/func/declarations-overview.md\">\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":"/languages/func/declarations-overview.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","href":"/ecosystem/tma/analytics/install-via-script"},{"title":"Installation via NPM package","href":"/ecosystem/tma/analytics/install-via-npm"},{"title":"API Endpoints","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","description":null,"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","description":null,"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":"FunC program declarations - TON Docs","deploymentId":"dpl_QQ3G2kinQNQFFK6Sh8dmX2teK74w","buildId":"dpl_QQ3G2kinQNQFFK6Sh8dmX2teK74w","dynamics":[],"chunks":[]}