Understanding why and how to approve tokens for raffles.
When you want to pay for a raffle ticket using an ERC20 token (like $POLLY, $USDC, or a partner token), you might see an “Approve” button before you can click “Buy”. This is a standard and important security feature of interacting with smart contracts on EVM-compatible blockchains.
Why is Approval Needed?
You Own Your Tokens: By default, a smart contract (like the PollyPrize raffle contract) cannot access or move tokens directly from your wallet. You have sole control.
Granting Permission: To pay with an ERC20 token, you need to explicitly grant the raffle contract permission to transfer a specific amount of that token from your wallet to itself when you initiate the purchase.
The approve Function: This permission is granted by calling the approve function on the token’s contract, not the raffle contract. You are telling the token contract, “Allow the raffle contract (the spender) to withdraw up to X amount of my tokens.”
How Does it Work?
Click Approve: You click the “Approve [Token Symbol]” button in the PollyPrize interface.
Wallet Confirmation: Your connected wallet (MetaMask, Abstract Wallet, etc.) pops up, showing a transaction details screen. This transaction calls the approve function on the specific token contract (e.g., the $POLLY contract).
Spender: It will clearly show the PollyPrize raffle contract address as the “spender” being granted permission.
Amount: Modern dApps often request approval for a very large amount (maxUint256) or the exact amount needed for the transaction. Approving a large amount is convenient as you only need to do it once per token per dApp, but be aware of the implications (see warning below). PollyPrize might request approval only for the cost of the tickets you are currently buying.
Confirm Transaction: You approve the transaction in your wallet, paying a small gas fee.
Permission Granted: Once the transaction is confirmed on the blockchain, the token contract records that the PollyPrize contract is allowed to withdraw the specified amount from your balance.
Buy Button Enabled: The PollyPrize interface detects the successful approval, and the “Buy Tickets” button becomes active. When you click “Buy Tickets”, the raffle contract can now successfully call transferFrom on the token contract to pull the payment from your wallet.
Security Note on Approvals: Be cautious about approving unlimited amounts (maxUint256) to contracts you don’t fully trust. While convenient, if that contract were ever compromised, an attacker could potentially drain all of your approved tokens. Approving only the necessary amount for each transaction is safer but less convenient. This is what we chose to implement for PollyPrize.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"PollyPrize Raffle","colors":{"primary":"#e78fb3","light":"#ffc2d1","dark":"#e78fb3"},"logo":{"light":"https://mintcdn.com/polly/VLhZX2aiRWluxEdP/logo/polly_logo_2x.png?fit=max\u0026auto=format\u0026n=VLhZX2aiRWluxEdP\u0026q=85\u0026s=38ce7705456862e7d4a5c0975597263b","dark":"https://mintcdn.com/polly/VLhZX2aiRWluxEdP/logo/polly_logo_2x.png?fit=max\u0026auto=format\u0026n=VLhZX2aiRWluxEdP\u0026q=85\u0026s=38ce7705456862e7d4a5c0975597263b"},"favicon":"/favicon.svg","background":{"decoration":"gradient"},"navbar":{"primary":{"type":"button","label":"Launch PollyPrize","href":"https://pollyabstract.xyz"}},"footer":{"socials":{"x":"https://x.com/pollyabstract","telegram":"http://t.me/PollyAbstractPortal"}},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"polly","hasAudioNarration":false,"actualSubdomain":"polly","customDomains":["docs.pollyprize.xyz"],"gitSource":{"type":"github","owner":"agardez","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"entitlements":{},"buildId":"6ae927def855326d31561185:success","clientVersion":"0.0.4342","searchFilterCounts":[{"language":"default","tag":"User Guide","count":22},{"language":"default","tag":"Raffle Mechanics","count":6},{"language":"default","tag":"How to Enter","count":4},{"language":"default","tag":"Partners","count":4},{"language":"default","tag":"Partnering with PollyPrize","count":4},{"language":"default","tag":"Help","count":2},{"language":"default","tag":"Gating (Entry Rules)","count":2},{"language":"default","tag":"PollyPrize","count":2},{"language":"default","tag":"Loyalty: XP \u0026 VIP","count":2},{"language":"default","tag":"Raffles","count":2}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"entering/approving-tokens","slug":"/entering/approving-tokens","pageMetadata":{"title":"Approving Tokens","description":"Understanding why and how to approve tokens for raffles.","href":"/entering/approving-tokens"},"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: \"Understanding why and how to approve tokens for raffles.\"\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`,em:`em`,li:`li`,ol:`ol`,p:`p`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{Heading,Warning}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`When you want to pay for a raffle ticket using an ERC20 token (like $POLLY, $USDC, or a partner token), you might see an “Approve” button before you can click “Buy”. This is a standard and important security feature of interacting with smart contracts on EVM-compatible blockchains.`}),`\n`,_jsx(Heading,{level:`2`,id:`why-is-approval-needed`,children:`Why is Approval Needed?`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`You Own Your Tokens:`}),` By default, a smart contract (like the PollyPrize raffle contract) cannot access or move tokens directly from your wallet. You have sole control.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Granting Permission:`}),` To pay with an ERC20 token, you need to explicitly grant the raffle contract `,_jsx(_components.em,{children:`permission`}),` to transfer a specific amount of that token `,_jsx(_components.em,{children:`from your wallet to itself`}),` when you initiate the purchase.`]}),`\n`,_jsxs(_components.li,{children:[_jsxs(_components.strong,{children:[`The `,_jsx(_components.code,{children:`approve`}),` Function:`]}),` This permission is granted by calling the `,_jsx(_components.code,{children:`approve`}),` function on the `,_jsx(_components.em,{children:`token’s contract`}),`, not the raffle contract. You are telling the token contract, “Allow the raffle contract (the spender) to withdraw up to X amount of my tokens.”`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`how-does-it-work`,children:`How Does it Work?`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Click Approve:`}),` You click the “Approve [Token Symbol]” button in the PollyPrize interface.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Wallet Confirmation:`}),` Your connected wallet (MetaMask, Abstract Wallet, etc.) pops up, showing a transaction details screen. This transaction calls the `,_jsx(_components.code,{children:`approve`}),` function on the specific token contract (e.g., the $POLLY contract).`,`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Spender:`}),` It will clearly show the PollyPrize raffle contract address as the “spender” being granted permission.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Amount:`}),` Modern dApps often request approval for a very large amount (`,_jsx(_components.code,{children:`maxUint256`}),`) or the exact amount needed for the transaction. Approving a large amount is convenient as you only need to do it once per token per dApp, but be aware of the implications (see warning below). PollyPrize might request approval only for the cost of the tickets you are currently buying.`]}),`\n`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Confirm Transaction:`}),` You approve the transaction in your wallet, paying a small gas fee.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Permission Granted:`}),` Once the transaction is confirmed on the blockchain, the token contract records that the PollyPrize contract is allowed to withdraw the specified amount from your balance.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Buy Button Enabled:`}),` The PollyPrize interface detects the successful approval, and the “Buy Tickets” button becomes active. When you click “Buy Tickets”, the raffle contract can now successfully call `,_jsx(_components.code,{children:`transferFrom`}),` on the token contract to pull the payment from your wallet.`]}),`\n`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Security Note on Approvals:`}),` Be cautious about approving unlimited amounts (`,_jsx(_components.code,{children:`maxUint256`}),`) to contracts you don’t fully trust. While convenient, if that contract were ever compromised, an attacker could potentially drain all of your approved tokens. Approving only the necessary amount for each transaction is safer but less convenient. This is what we chose to implement for PollyPrize.`]})})]})}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":"Approving Tokens","description":"Understanding why and how to approve tokens for raffles.","href":"/entering/approving-tokens"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Why is Approval Needed?","slug":"why-is-approval-needed","depth":2,"children":[]},{"title":"How Does it Work?","slug":"how-does-it-work","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"polly","siteName":"PollyPrize Raffle","title":"Approving Tokens - PollyPrize Raffle","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-01-07T08:01:43.948Z","originalFileLocation":"entering/approving-tokens.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=\"Understanding why and how to approve tokens for raffles.\">\u003cmeta data-mint-head name=\"application-name\" content=\"PollyPrize Raffle\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/polly/E0toYukgmBxSbI5c/_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/polly/E0toYukgmBxSbI5c/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/polly/E0toYukgmBxSbI5c/_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/polly/E0toYukgmBxSbI5c/_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/polly/E0toYukgmBxSbI5c/_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/polly/E0toYukgmBxSbI5c/_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/polly/E0toYukgmBxSbI5c/_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/polly/E0toYukgmBxSbI5c/_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/polly/E0toYukgmBxSbI5c/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Approving Tokens - PollyPrize Raffle\">\u003cmeta data-mint-head property=\"og:description\" content=\"Understanding why and how to approve tokens for raffles.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"PollyPrize Raffle\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.pollyprize.xyz/entering/approving-tokens\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://polly.mintlify.site/_mintlify/api/og/v2?division=How+to+Enter\u0026amp;title=Approving+Tokens\u0026amp;description=Understanding+why+and+how+to+approve+tokens+for+raffles.\u0026amp;theme=2791ad6f1ea7521f3985d450\u0026amp;signature=9ec810dffffab06839e70655ea2da1d49ffeef89868ef2b446aabc3b2523f6f7\">\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=\"Approving Tokens - PollyPrize Raffle\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Understanding why and how to approve tokens for raffles.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://polly.mintlify.site/_mintlify/api/og/v2?division=How+to+Enter\u0026amp;title=Approving+Tokens\u0026amp;description=Understanding+why+and+how+to+approve+tokens+for+raffles.\u0026amp;theme=2791ad6f1ea7521f3985d450\u0026amp;signature=9ec810dffffab06839e70655ea2da1d49ffeef89868ef2b446aabc3b2523f6f7\">\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/polly/E0toYukgmBxSbI5c/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"PollyPrize Raffle\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#e78fb3\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.pollyprize.xyz/entering/approving-tokens\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/entering/approving-tokens.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.pollyprize.xyz/#organization\",\"name\":\"PollyPrize Raffle\",\"url\":\"https://docs.pollyprize.xyz\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/polly/VLhZX2aiRWluxEdP/logo/polly_logo_2x.png?fit=max\u0026auto=format\u0026n=VLhZX2aiRWluxEdP\u0026q=85\u0026s=38ce7705456862e7d4a5c0975597263b\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.pollyprize.xyz#website\",\"name\":\"PollyPrize Raffle\",\"url\":\"https://docs.pollyprize.xyz\",\"publisher\":{\"@id\":\"https://docs.pollyprize.xyz/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.pollyprize.xyz/entering/approving-tokens#webpage\",\"url\":\"https://docs.pollyprize.xyz/entering/approving-tokens\",\"name\":\"Approving Tokens\",\"description\":\"Understanding why and how to approve tokens for raffles.\",\"dateModified\":\"2026-01-07T08:01:43.948Z\",\"isPartOf\":{\"@id\":\"https://docs.pollyprize.xyz#website\"},\"breadcrumb\":{\"@id\":\"https://docs.pollyprize.xyz/entering/approving-tokens#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.pollyprize.xyz/entering/approving-tokens#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"How to Enter\",\"item\":\"https://docs.pollyprize.xyz/entering/buy-tickets\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Approving Tokens\",\"item\":\"https://docs.pollyprize.xyz/entering/approving-tokens\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.pollyprize.xyz/entering/approving-tokens#article\",\"headline\":\"Approving Tokens\",\"name\":\"Approving Tokens\",\"description\":\"Understanding why and how to approve tokens for raffles.\",\"url\":\"https://docs.pollyprize.xyz/entering/approving-tokens\",\"mainEntityOfPage\":{\"@id\":\"https://docs.pollyprize.xyz/entering/approving-tokens#webpage\"},\"dateModified\":\"2026-01-07T08:01:43.948Z\",\"publisher\":{\"@id\":\"https://docs.pollyprize.xyz/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.pollyprize.xyz#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"PollyPrize Raffle\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"PollyPrize Raffle\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/entering/approving-tokens.md","siteName":"PollyPrize Raffle","nav":{"global":null,"tabs":[{"tab":"User Guide","groups":[{"group":"PollyPrize","pages":[{"title":"Welcome to PollyPrize!","href":"/welcome"},{"title":"Getting Started","href":"/getting-started"}]},{"group":"Raffles","pages":[{"title":"Exploring Raffles","href":"/raffles/exploring"},{"title":"Understanding Raffle Details","href":"/raffles/details"}]},{"group":"How to Enter","pages":[{"title":"Buying with Tokens/ETH","description":"How to purchase raffle tickets using cryptocurrency.","href":"/entering/buy-tickets"},{"title":"Approving Tokens","href":"/entering/approving-tokens"},{"title":"Entering with PP","description":"Using your Polly Points to enter raffles.","href":"/entering/using-xp"},{"title":"Claiming Free Entries","href":"/entering/free-entries"}]},{"group":"Raffle Mechanics","pages":[{"title":"Ticket Pricing","href":"/mechanics/pricing"},{"title":"Token Burning 🔥","href":"/mechanics/burning"},{"title":"Batch Bonuses","href":"/mechanics/batch-bonuses"},{"title":"Timing \u0026 Caps","href":"/mechanics/timing-caps"},{"title":"Prizes \u0026 Distribution","href":"/mechanics/prizes"},{"title":"Randomness \u0026 Fairness (Pyth Entropy)","href":"/mechanics/randomness"}]},{"group":"Loyalty: XP \u0026 VIP","pages":[{"title":"Earning \u0026 Using PP","href":"/loyalty/xp-points"},{"title":"VIP Tiers \u0026 Benefits","href":"/loyalty/vip-tiers"}]},{"group":"Gating (Entry Rules)","pages":[{"title":"What is Gating?","href":"/gating/overview"},{"title":"Types of Gating","href":"/gating/types"}]},{"group":"Security \u0026 Trust","pages":[{"title":"How PollyPrize is Secured","href":"/security/how-it-works"},{"title":"User Responsibilities \u0026 Safety","href":"/security/user-safety"}]},{"group":"Help","pages":[{"title":"FAQ","href":"/faq"},{"title":"Community \u0026 Support","href":"/support"}]}]},{"tab":"Partners","pages":[{"title":"Partners","href":"/partners/introduction"}]}]},"basePath":"","title":"Approving Tokens - PollyPrize Raffle","deploymentId":"dpl_QQ3G2kinQNQFFK6Sh8dmX2teK74w","buildId":"dpl_QQ3G2kinQNQFFK6Sh8dmX2teK74w","dynamics":[],"chunks":[]}