Grant the Permit2 contract sufficient ERC-20 allowance before submitting a signed intent approval.
Overview
Before submitting an off-chain Permit2 signature, grant the Permit2 contract sufficient allowance on the source ERC-20 token. The on-chain allowance transaction is separate from the signed approval submitted to the Utexo API.
import { ethers } from "ethers";const ERC20_ABI = [ "function approve(address spender, uint256 value) external returns (bool)",];async function approvePermit2( tokenAddress: string, permit2Address: string, signer: ethers.Signer,): Promise<ethers.TransactionReceipt> { const token = new ethers.Contract(tokenAddress, ERC20_ABI, signer); const transaction = await token.approve(permit2Address, ethers.MaxUint256); const receipt = await transaction.wait(); if (!receipt) { throw new Error("The Permit2 approval transaction did not produce a receipt"); } return receipt;}
Check the existing allowance before submitting a new approval transaction and wait for confirmation before signing the Permit2 payload.
{"docsConfig":{"theme":"aspen","$schema":"https://mintlify.com/docs.json","name":"Utexo Protocol Docs","colors":{"primary":"#233116","light":"#2F421D","dark":"#A5B596"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"utexo-e7ed9bd0","hasAudioNarration":false,"actualSubdomain":"utexo-e7ed9bd0","customDomains":["docs.utexo.com"],"gitSource":{"type":"github","owner":"utexo-protocol","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b0049c4f9253d723a60e850","clientVersion":"0.0.4270","searchFilterCounts":[{"language":"default","tag":"Product Suite","count":58},{"language":"default","tag":"Swap","count":30},{"language":"default","tag":"Node","count":16},{"language":"default","tag":"API Reference","count":15},{"language":"default","tag":"Utexo Cloud","count":11},{"language":"default","tag":"Intents","count":10},{"language":"default","tag":"Getting Started","count":8},{"language":"default","tag":"Resolver Integration","count":8},{"language":"default","tag":"Node Management","count":7},{"language":"default","tag":"SDK","count":7}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"product-suite/swap/on-chain-helpers/approve-for-permit2","slug":"/product-suite/swap/on-chain-helpers/approve-for-permit2","pageMetadata":{"title":"Approve for Permit2","description":"Grant the Permit2 contract sufficient ERC-20 allowance before submitting a signed intent approval.","sidebarTitle":"Approve for Permit2","href":"/product-suite/swap/on-chain-helpers/approve-for-permit2"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Grant the Permit2 contract sufficient ERC-20 allowance before submitting a signed intent approval.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"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={code:`code`,p:`p`,pre:`pre`,span:`span`,..._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:`overview`,children:`Overview`}),`\n`,_jsx(_components.p,{children:`Before submitting an off-chain Permit2 signature, grant the Permit2 contract sufficient allowance on the source ERC-20 token. The on-chain allowance transaction is separate from the signed approval submitted to the Utexo API.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`21`,language:`typescript`,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:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`21`,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\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ethers`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"ethers\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` ERC20_ABI`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"function approve(address spender, uint256 value) external returns (bool)\"`}),_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`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`async`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` function`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` approvePermit2`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` tokenAddress`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` string`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` permit2Address`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` string`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` signer`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` ethers`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`Signer`}),_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\":`#D4D4D4`},children:`)`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` Promise`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`ethers`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`TransactionReceipt`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`> {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` token`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` ethers`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Contract`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`tokenAddress`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`ERC20_ABI`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`signer`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` transaction`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` token`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`approve`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`permit2Address`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ethers`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`MaxUint256`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` receipt`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` transaction`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`wait`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`!`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`receipt`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` throw`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"The Permit2 approval transaction did not produce a receipt\"`}),_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`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` return`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` receipt`}),_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(_components.p,{children:`Check the existing allowance before submitting a new approval transaction and wait for confirmation before signing the Permit2 payload.`})]})}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":{"config":{},"pageMetadata":{"title":"Approve for Permit2","description":"Grant the Permit2 contract sufficient ERC-20 allowance before submitting a signed intent approval.","sidebarTitle":"Approve for Permit2","href":"/product-suite/swap/on-chain-helpers/approve-for-permit2"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Overview","slug":"overview","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"utexo-e7ed9bd0","siteName":"Utexo Protocol Docs","title":"Approve for Permit2 - Utexo Protocol Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-08-04T12:50:51.782Z","originalFileLocation":"product-suite/swap/on-chain-helpers/approve-for-permit2.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=\"description\" content=\"Grant the Permit2 contract sufficient ERC-20 allowance before submitting a signed intent approval.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Utexo Protocol Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/utexo-e7ed9bd0/_generated/favicon/apple-touch-icon.png?v=3\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/utexo-e7ed9bd0/_generated/favicon/favicon-32x32.png?v=3\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/utexo-e7ed9bd0/_generated/favicon/favicon-16x16.png?v=3\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/utexo-e7ed9bd0/_generated/favicon/favicon.ico?v=3\">\u003cmeta data-mint-head property=\"og:title\" content=\"Approve for Permit2 - Utexo Protocol Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Grant the Permit2 contract sufficient ERC-20 allowance before submitting a signed intent approval.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Utexo Protocol Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.utexo.com/product-suite/swap/on-chain-helpers/approve-for-permit2\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://utexo-e7ed9bd0.mintlify.site/_mintlify/api/og/v2?division=On-chain+Helpers\u0026amp;title=Approve+for+Permit2\u0026amp;description=Grant+the+Permit2+contract+sufficient+ERC-20+allowance+before+submitting+a+signed+intent+approval.\u0026amp;theme=a6a1b26f11c0efed96cb80d7\u0026amp;signature=5e8db2f0842f7f8e9bfaf5ff3c04d5a8926c2a05446b4fc77b8d1054e536581d\">\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=\"Approve for Permit2 - Utexo Protocol Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Grant the Permit2 contract sufficient ERC-20 allowance before submitting a signed intent approval.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://utexo-e7ed9bd0.mintlify.site/_mintlify/api/og/v2?division=On-chain+Helpers\u0026amp;title=Approve+for+Permit2\u0026amp;description=Grant+the+Permit2+contract+sufficient+ERC-20+allowance+before+submitting+a+signed+intent+approval.\u0026amp;theme=a6a1b26f11c0efed96cb80d7\u0026amp;signature=5e8db2f0842f7f8e9bfaf5ff3c04d5a8926c2a05446b4fc77b8d1054e536581d\">\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=\"https://mintlify.s3.us-west-1.amazonaws.com/utexo-e7ed9bd0/_generated/favicon/browserconfig.xml?v=3\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Utexo Protocol Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#233116\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.utexo.com/product-suite/swap/on-chain-helpers/approve-for-permit2\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/product-suite/swap/on-chain-helpers/approve-for-permit2.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.utexo.com/#organization\",\"name\":\"Utexo Protocol Docs\",\"url\":\"https://docs.utexo.com\"},{\"@type\":\"WebSite\",\"@id\":\"https://docs.utexo.com#website\",\"name\":\"Utexo Protocol Docs\",\"url\":\"https://docs.utexo.com\",\"publisher\":{\"@id\":\"https://docs.utexo.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.utexo.com/product-suite/swap/on-chain-helpers/approve-for-permit2#webpage\",\"url\":\"https://docs.utexo.com/product-suite/swap/on-chain-helpers/approve-for-permit2\",\"name\":\"Approve for Permit2\",\"description\":\"Grant the Permit2 contract sufficient ERC-20 allowance before submitting a signed intent approval.\",\"dateModified\":\"2026-08-04T12:50:51.782Z\",\"isPartOf\":{\"@id\":\"https://docs.utexo.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.utexo.com/product-suite/swap/on-chain-helpers/approve-for-permit2#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.utexo.com/product-suite/swap/on-chain-helpers/approve-for-permit2#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Product Suite\",\"item\":\"https://docs.utexo.com/getting-started/product-suite\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Swap\",\"item\":\"https://docs.utexo.com/product-suite/swap\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"On-chain Helpers\",\"item\":\"https://docs.utexo.com/product-suite/swap/on-chain-helpers/wrap-native-tokens\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Approve for Permit2\",\"item\":\"https://docs.utexo.com/product-suite/swap/on-chain-helpers/approve-for-permit2\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.utexo.com/product-suite/swap/on-chain-helpers/approve-for-permit2#article\",\"headline\":\"Approve for Permit2\",\"name\":\"Approve for Permit2\",\"description\":\"Grant the Permit2 contract sufficient ERC-20 allowance before submitting a signed intent approval.\",\"url\":\"https://docs.utexo.com/product-suite/swap/on-chain-helpers/approve-for-permit2\",\"mainEntityOfPage\":{\"@id\":\"https://docs.utexo.com/product-suite/swap/on-chain-helpers/approve-for-permit2#webpage\"},\"dateModified\":\"2026-08-04T12:50:51.782Z\",\"publisher\":{\"@id\":\"https://docs.utexo.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.utexo.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Utexo Protocol Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Utexo Protocol Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/product-suite/swap/on-chain-helpers/approve-for-permit2.md","siteName":"Utexo Protocol Docs","nav":{"global":null,"groups":[{"group":"What Utexo Is","pages":[{"title":"Utexo Overview","sidebarTitle":"Utexo Overview","href":"/what-utexo-is"}]},{"group":"Getting Started","pages":[{"title":"The Problem","sidebarTitle":"The Problem","href":"/getting-started/the-problem"},{"title":"Architecture","sidebarTitle":"Architecture","href":"/getting-started/architecture"},{"group":"Quickstart","pages":[{"title":"Quickstart Overview","sidebarTitle":"Overview","href":"/getting-started/quickstart/overview"},{"title":"Node.js Quickstart","sidebarTitle":"Node.js","href":"/getting-started/quickstart/node-js"},{"title":"React Native Quickstart","sidebarTitle":"React Native","href":"/getting-started/quickstart/react-native"},{"title":"Web Quickstart","sidebarTitle":"Web","href":"/getting-started/quickstart/web"}]},{"title":"Getting Started with RGB","sidebarTitle":"RGB Concepts","href":"/getting-started/rgb-concepts"},{"title":"Glossary","href":"/getting-started/glossary"}]},{"group":"Product Suite","pages":[{"title":"Product Suite","sidebarTitle":"Product Suite","href":"/getting-started/product-suite"},{"group":"SDK","pages":[{"title":"Utexo SDK","sidebarTitle":"Overview","href":"/product-suite/sdk"},{"title":"RGB SDK Facade","sidebarTitle":"RGB SDK Facade","href":"/sdk/rgb-sdk"},{"title":"React Native SDK Reference","sidebarTitle":"React Native SDK","href":"/sdk/react-native-sdk"},{"title":"Web SDK Reference","sidebarTitle":"Web SDK","href":"/sdk/web-sdk"},{"group":"WDK","pages":[{"title":"WDK Overview","sidebarTitle":"Overview","href":"/sdk/wdk-overview"},{"title":"wdk-wallet-rgb Reference","sidebarTitle":"wdk-wallet-rgb","href":"/sdk/wdk-wallet-rgb"},{"title":"wdk-rgb-lightning Reference","sidebarTitle":"wdk-rgb-lightning","href":"/sdk/wdk-rgb-lightning"}]}]},{"group":"Swap","pages":[{"title":"Swap overview","sidebarTitle":"Overview","href":"/product-suite/swap"},{"title":"Swap security model","sidebarTitle":"Security model","href":"/product-suite/swap/security-model"},{"group":"Development","pages":[{"title":"Execute a swap","sidebarTitle":"User flow","href":"/product-suite/swap/development/user-flow"},{"title":"Authorization","sidebarTitle":"Authorization","href":"/product-suite/swap/development/authorization"},{"title":"Errors","sidebarTitle":"Errors","href":"/product-suite/swap/development/errors"},{"title":"Resources","sidebarTitle":"Resources","href":"/product-suite/swap/development/resources"}]},{"group":"API Reference","pages":[{"title":"Networks and tokens","sidebarTitle":"Networks and Tokens","href":"/product-suite/swap/api/networks-and-tokens"},{"title":"Quotes","sidebarTitle":"Quotes","href":"/product-suite/swap/api/quotes"},{"group":"Intents","pages":[{"title":"Intents","sidebarTitle":"Overview","href":"/product-suite/swap/api/intents"},{"title":"Intent creation","sidebarTitle":"Creation","href":"/product-suite/swap/api/intents/creation"},{"group":"Approvals","pages":[{"title":"Approvals","sidebarTitle":"Approvals","href":"/product-suite/swap/api/intents/approvals"},{"title":"Sign an EVM intent","sidebarTitle":"EVM","href":"/product-suite/swap/api/intents/approvals/evm"},{"title":"Sign a Tron intent","sidebarTitle":"Tron","href":"/product-suite/swap/api/intents/approvals/tron"},{"title":"Sign a Solana intent","sidebarTitle":"Solana","href":"/product-suite/swap/api/intents/approvals/solana"},{"title":"Sign a Bitcoin intent","sidebarTitle":"Bitcoin","href":"/product-suite/swap/api/intents/approvals/bitcoin"},{"title":"Fund an RGB intent","sidebarTitle":"RGB USDT","href":"/product-suite/swap/api/intents/approvals/rgb"}]},{"title":"Report a user deposit","sidebarTitle":"User deposits","href":"/product-suite/swap/api/intents/deposits"},{"title":"Intent status","sidebarTitle":"Intent status","href":"/product-suite/swap/api/intents/status"}]},{"title":"Swap history","sidebarTitle":"Swap history","href":"/product-suite/swap/api/swap-history"},{"title":"System liveness","sidebarTitle":"Health check","href":"/product-suite/swap/api/system-health-check"}]},{"group":"On-chain Helpers","pages":[{"title":"Wrap native tokens","description":"Wrap native blockchain assets into token contracts before Utexo Swap execution.","sidebarTitle":"Wrap native tokens","href":"/product-suite/swap/on-chain-helpers/wrap-native-tokens"},{"title":"Approve for Permit2","sidebarTitle":"Approve for Permit2","href":"/product-suite/swap/on-chain-helpers/approve-for-permit2"}]},{"group":"Resolver Integration","pages":[{"title":"Resolver overview","description":"Understand resolver responsibilities, intent lifecycle, and how Utexo coordinates quoting, settlement, and refunds.","sidebarTitle":"Overview","href":"/product-suite/swap/resolver-integration/overview"},{"title":"Protocol API","sidebarTitle":"Protocol API","href":"/product-suite/swap/resolver-integration/protocol-api"},{"title":"Resolver callbacks","sidebarTitle":"Resolver API","href":"/product-suite/swap/resolver-integration/resolver-api"},{"title":"Webhooks and lifecycle","sidebarTitle":"Webhooks and lifecycle","href":"/product-suite/swap/resolver-integration/webhooks-and-lifecycle"},{"title":"EVM and Tron settlement","sidebarTitle":"EVM and Tron","href":"/product-suite/swap/resolver-integration/evm-tron-settlement"},{"title":"Solana Settlement","sidebarTitle":"Solana","href":"/product-suite/swap/resolver-integration/solana-settlement"},{"title":"Bitcoin settlement","sidebarTitle":"Bitcoin","href":"/product-suite/swap/resolver-integration/bitcoin-settlement"},{"title":"RGB USDT settlement","sidebarTitle":"RGB USDT","href":"/product-suite/swap/resolver-integration/rgb-settlement"}]}]},{"group":"Node","pages":[{"title":"Node Overview","sidebarTitle":"Overview","href":"/overview"},{"group":"RGB Lightning Node","pages":[{"title":"RLN Quick Start","sidebarTitle":"Quick Start","href":"/rgb-lightning-node/quickstart"},{"title":"Self-Hosted RGB Lightning Node","sidebarTitle":"Self-Hosted RGB Lightning Node","href":"/rgb-lightning-node/self-hosted-rgb-lightning-node"},{"title":"RGB Lightning Node API","href":"/rgb-lightning-node/rgb-lightning-node-api"},{"group":"Security","pages":[{"title":"RLN Remote Signer","href":"/security/rln-remote-signer"}]}]},{"group":"Utexo Cloud","pages":[{"group":"Node Management","pages":[{"title":"Node Management","href":"/cloud/getting-started"},{"group":"Create RLN Node","pages":[{"title":"Create RLN Node","sidebarTitle":"Create RLN Node","href":"/cloud/rln-node/create-rln-node"},{"title":"Node UI Actions","sidebarTitle":"Node UI Actions","href":"/cloud/rln-node/node-ui-actions"}]},{"title":"Upgrade RLN Node","sidebarTitle":"Upgrade RLN Node","href":"/cloud/rln-node/upgrade-rln-node"},{"title":"Destroy your Node","sidebarTitle":"Destroy your Node","href":"/cloud/rln-node/destroy-rln-node"},{"title":"Connect to RLN Node","sidebarTitle":"Connect to RLN Node","href":"/cloud/rln-node/connect-rln-node"},{"title":"Node Backup / Restore","sidebarTitle":"Node Backup / Restore","href":"/cloud/rln-node/node-backup-restore"}]},{"group":"Access Token Authorization","pages":[{"title":"Create API Token","href":"/access-token-authorization/create-api-token"},{"title":"Cloud API","href":"/access-token-authorization/cloud-api"}]},{"title":"Utexo Cloud Overview","sidebarTitle":"Overview","href":"/product-suite/RLN-overview"},{"title":"Webhooks","sidebarTitle":"Webhooks","href":"/cloud/webhooks"}]}]},{"group":"Mint","pages":[{"title":"Mint","sidebarTitle":"Mint","href":"/product-suite/mint"},{"title":"Getting Started","href":"/mint/getting-started"},{"title":"Mint and Burn Integration","sidebarTitle":"Mint \u0026 Burn Integration","href":"/mint/mint-burn-integration"},{"title":"Mint API Reference","href":"/product-suite/mint-api-reference"}]}]},{"group":"API Reference","pages":[{"title":"API Reference Overview","sidebarTitle":"Overview","href":"/api-reference/overview"}]}]},"basePath":"","title":"Approve for Permit2 - Utexo Protocol Docs","deploymentId":"dpl_DyXGnKeCjZyA3sUdfMJ7FjkdBefg","buildId":"dpl_DyXGnKeCjZyA3sUdfMJ7FjkdBefg","dynamics":[],"chunks":[]}