[{"data":1,"prerenderedAt":4337},["ShallowReactive",2],{"navigation_docs":3,"-guides-crypto-sponsorship":354,"-guides-crypto-sponsorship-surround":4332},[4,14,146,163,170,176,183,248,255],{"title":5,"path":6,"page":7,"children":8},"Start here","\u002Fgetting-started",false,[9],{"title":10,"path":11,"stem":12,"icon":13},"Public products","\u002Fgetting-started\u002Fintroduction","1.getting-started\u002F1.introduction","i-lucide-compass",{"title":15,"path":16,"page":7,"children":17,"icon":61},"Belong CheckIn","\u002Fbelong-checkin",[18,22,27,32,37,42,47,52,57,62,67,71,76,81,86,91,96,100,105],{"title":19,"path":16,"stem":20,"icon":21},"Overview","3.belong-checkin\u002Findex","i-lucide-map-pin",{"title":23,"path":24,"stem":25,"icon":26},"App Features","\u002Fbelong-checkin\u002Fapp-features","3.belong-checkin\u002F1.app-features","i-lucide-list-checks",{"title":28,"path":29,"stem":30,"icon":31},"Telegram Bot","\u002Fbelong-checkin\u002Ftelegram-bot","3.belong-checkin\u002F10.telegram-bot","i-lucide-send",{"title":33,"path":34,"stem":35,"icon":36},"Apple Wallet","\u002Fbelong-checkin\u002Fapple-wallet","3.belong-checkin\u002F11.apple-wallet","i-lucide-ticket",{"title":38,"path":39,"stem":40,"icon":41},"Payments","\u002Fbelong-checkin\u002Fpayments-and-onramp","3.belong-checkin\u002F12.payments-and-onramp","i-lucide-credit-card",{"title":43,"path":44,"stem":45,"icon":46},"Sponsored Gas","\u002Fbelong-checkin\u002Fsponsored-gas","3.belong-checkin\u002F13.sponsored-gas","i-lucide-fuel",{"title":48,"path":49,"stem":50,"icon":51},"Fees & Staking","\u002Fbelong-checkin\u002Ffees-and-staking","3.belong-checkin\u002F14.fees-and-staking","i-lucide-percent",{"title":53,"path":54,"stem":55,"icon":56},"Connect AI Deploy","\u002Fbelong-checkin\u002Fconnect-ai-deploy","3.belong-checkin\u002F15.connect-ai-deploy","i-lucide-bot",{"title":58,"path":59,"stem":60,"icon":61},"QR Signage Examples","\u002Fbelong-checkin\u002Fvenue-qr-signage-examples","3.belong-checkin\u002F16.venue-qr-signage-examples","i-lucide-qr-code",{"title":63,"path":64,"stem":65,"icon":66},"Whitepaper","\u002Fbelong-checkin\u002Fwhitepaper","3.belong-checkin\u002F18.whitepaper","i-lucide-file-text",{"title":68,"path":69,"stem":70,"icon":61},"Check-In Modes","\u002Fbelong-checkin\u002Fcheck-in-modes","3.belong-checkin\u002F2.check-in-modes",{"title":72,"path":73,"stem":74,"icon":75},"Venue Quick Start","\u002Fbelong-checkin\u002Fvenue-quickstart","3.belong-checkin\u002F3.venue-quickstart","i-lucide-store",{"title":77,"path":78,"stem":79,"icon":80},"Customer Rewards","\u002Fbelong-checkin\u002Fcustomer_rewards_guide","3.belong-checkin\u002F4.customer_rewards_guide","i-lucide-gift",{"title":82,"path":83,"stem":84,"icon":85},"Promoter Earnings","\u002Fbelong-checkin\u002Fpromoter-earnings-guide","3.belong-checkin\u002F5.promoter-earnings-guide","i-lucide-wallet",{"title":87,"path":88,"stem":89,"icon":90},"Venue Partner","\u002Fbelong-checkin\u002Fvenue-partner","3.belong-checkin\u002F6.venue-partner","i-lucide-building",{"title":92,"path":93,"stem":94,"icon":95},"Event Creation","\u002Fbelong-checkin\u002Fevent-creation","3.belong-checkin\u002F7.event-creation","i-lucide-calendar-plus",{"title":97,"path":98,"stem":99,"icon":85},"Wallet & Sign-In","\u002Fbelong-checkin\u002Fwallet-and-auth","3.belong-checkin\u002F8.wallet-and-auth",{"title":101,"path":102,"stem":103,"icon":104},"AI & Voice","\u002Fbelong-checkin\u002Fai-and-voice","3.belong-checkin\u002F9.ai-and-voice","i-lucide-mic",{"title":106,"path":107,"page":7,"children":108},"Developer integration","\u002Fbelong-checkin\u002Fdeveloper",[109,112,117,122,126,131,136,141],{"title":15,"path":110,"stem":111,"icon":21},"\u002Fguides\u002Fcrypto\u002Fcheckin","2.guides\u002F1.crypto\u002FcheckIn",{"title":113,"path":114,"stem":115,"icon":116},"Integration Overview","\u002Fbelong-checkin\u002Fdeveloper\u002Fintegration-overview","3.belong-checkin\u002F19.developer\u002F1.integration-overview","i-lucide-plug",{"title":118,"path":119,"stem":120,"icon":121},"API Reference","\u002Fbelong-checkin\u002Fdeveloper\u002Fapi-reference","3.belong-checkin\u002F19.developer\u002F2.api-reference","i-lucide-book-open-text",{"title":123,"path":124,"stem":125,"icon":56},"MCP Tools","\u002Fbelong-checkin\u002Fdeveloper\u002Fmcp-tools","3.belong-checkin\u002F19.developer\u002F3.mcp-tools",{"title":127,"path":128,"stem":129,"icon":130},"Networks","\u002Fbelong-checkin\u002Fdeveloper\u002Fnetworks","3.belong-checkin\u002F19.developer\u002F4.networks","i-lucide-network",{"title":132,"path":133,"stem":134,"icon":135},"Enterprise Apps","\u002Fbelong-checkin\u002Fdeveloper\u002Fenterprise-whitelabel","3.belong-checkin\u002F19.developer\u002F5.enterprise-whitelabel","i-lucide-package",{"title":137,"path":138,"stem":139,"icon":140},"POS & Events","\u002Fbelong-checkin\u002Fdeveloper\u002Fwebhooks-and-pos","3.belong-checkin\u002F19.developer\u002F6.webhooks-and-pos","i-lucide-receipt",{"title":142,"path":143,"stem":144,"icon":145},"NFT Checkout","\u002Fbelong-checkin\u002Fdeveloper\u002Fnft-checkout","3.belong-checkin\u002F19.developer\u002F7.nft-checkout","i-lucide-shopping-cart",{"title":147,"path":148,"page":7,"children":149,"icon":152},"Belong Platform","\u002Fbelong-platform",[150,153,158],{"title":19,"path":148,"stem":151,"icon":152},"6.belong-platform\u002Findex","i-lucide-panels-top-left",{"title":154,"path":155,"stem":156,"icon":157},"Media Upload","\u002Fguides\u002Fmedia\u002Fcollection","2.guides\u002F2.media\u002Fcollection","i-lucide-image",{"title":159,"path":160,"stem":161,"icon":162},"Whitelabel","\u002Fguides\u002Fwhitelabel","2.guides\u002F5.whitelabel","i-lucide-badge-check",{"title":164,"path":165,"page":7,"children":166,"icon":169},"Belong Events","\u002Fbelong-events",[167],{"title":19,"path":165,"stem":168,"icon":169},"7.belong-events\u002Findex","i-lucide-calendar-days",{"title":171,"path":172,"page":7,"children":173,"icon":56},"LONG Events","\u002Flong-events",[174],{"title":19,"path":172,"stem":175,"icon":56},"8.long-events\u002Findex",{"title":177,"path":178,"page":7,"children":179,"icon":182},"Crypto Events","\u002Fcrypto-events",[180],{"title":19,"path":178,"stem":181,"icon":182},"9.crypto-events\u002Findex","i-lucide-globe",{"title":184,"path":185,"page":7,"children":186,"icon":189},"AI Deploy","\u002Fai-deploy\u002Foverview",[187,190,195,200,205,210,228,233,238,243],{"title":19,"path":185,"stem":188,"icon":189},"5.ai-deploy\u002F1.overview","i-lucide-rocket",{"title":191,"path":192,"stem":193,"icon":194},"Open Source","\u002Fai-deploy\u002Fopen-source","5.ai-deploy\u002F10.open-source","i-lucide-github",{"title":196,"path":197,"stem":198,"icon":199},"Quick Start","\u002Fai-deploy\u002Fquickstart","5.ai-deploy\u002F2.quickstart","i-lucide-zap",{"title":201,"path":202,"stem":203,"icon":204},"Cloud Providers","\u002Fai-deploy\u002Fcloud-providers","5.ai-deploy\u002F3.cloud-providers","i-lucide-cloud",{"title":206,"path":207,"stem":208,"icon":209},"AI Providers","\u002Fai-deploy\u002Fai-providers","5.ai-deploy\u002F4.ai-providers","i-lucide-brain",{"title":211,"path":212,"page":7,"children":213},"Channels","\u002Fai-deploy\u002Fchannels",[214,218,223],{"title":215,"path":216,"stem":217,"icon":31},"Telegram","\u002Fai-deploy\u002Fchannels\u002Ftelegram","5.ai-deploy\u002F5.channels\u002F1.telegram",{"title":219,"path":220,"stem":221,"icon":222},"WhatsApp","\u002Fai-deploy\u002Fchannels\u002Fwhatsapp","5.ai-deploy\u002F5.channels\u002F2.whatsapp","i-lucide-message-circle",{"title":224,"path":225,"stem":226,"icon":227},"Slack","\u002Fai-deploy\u002Fchannels\u002Fslack","5.ai-deploy\u002F5.channels\u002F3.slack","i-lucide-hash",{"title":229,"path":230,"stem":231,"icon":232},"Private Access","\u002Fai-deploy\u002Fprivate-access","5.ai-deploy\u002F6.private-access","i-lucide-shield",{"title":234,"path":235,"stem":236,"icon":237},"Troubleshooting","\u002Fai-deploy\u002Ftroubleshooting","5.ai-deploy\u002F7.troubleshooting","i-lucide-wrench",{"title":239,"path":240,"stem":241,"icon":242},"Enterprise & API","\u002Fai-deploy\u002Fenterprise-api","5.ai-deploy\u002F8.enterprise-api","i-lucide-server-cog",{"title":244,"path":245,"stem":246,"icon":247},"OVHcloud","\u002Fai-deploy\u002Fovhcloud","5.ai-deploy\u002F9.ovhcloud","i-lucide-cloud-cog",{"title":249,"path":250,"page":7,"children":251,"icon":254},"Hexagon MM","\u002Fhexagon-mm",[252],{"title":19,"path":250,"stem":253,"icon":254},"10.hexagon-mm\u002Findex","i-lucide-chart-no-axes-combined",{"title":256,"path":257,"page":7,"children":258,"icon":261},"Belong API & Docs","\u002Fdeveloper-platform",[259,262,282,311],{"title":19,"path":257,"stem":260,"icon":261},"11.developer-platform\u002Findex","i-lucide-code-xml",{"title":263,"path":6,"page":7,"children":264},"API, SDK & contracts",[265,269,273,277],{"title":266,"path":267,"stem":268,"icon":121},"API","\u002Fgetting-started\u002Fapi-docs","1.getting-started\u002F2.api-docs",{"title":270,"path":271,"stem":272,"icon":56},"MCP","\u002Fgetting-started\u002Fmcp","1.getting-started\u002F3.mcp",{"title":274,"path":275,"stem":276,"icon":261},"SDK","\u002Fgetting-started\u002Fsdk","1.getting-started\u002F4.sdk",{"title":278,"path":279,"stem":280,"icon":281},"Smart Contract","\u002Fgetting-started\u002Fcontracts","1.getting-started\u002F5.contracts","i-lucide-clock",{"title":283,"path":284,"page":7,"children":285},"Contract guides","\u002Fguides\u002Fcrypto",[286,291,294,298,303,307],{"title":287,"path":288,"stem":289,"icon":290},"EVM NFT Minting","\u002Fguides\u002Fcrypto\u002Fminting","2.guides\u002F1.crypto\u002Fminting","i-lucide-box",{"title":43,"path":292,"stem":293,"icon":85},"\u002Fguides\u002Fcrypto\u002Fsponsorship","2.guides\u002F1.crypto\u002Fsponsorship",{"title":295,"path":296,"stem":297,"icon":290},"LONG Staking","\u002Fguides\u002Fcrypto\u002Fstaking","2.guides\u002F1.crypto\u002Fstaking",{"title":299,"path":300,"stem":301,"icon":302},"Starknet NFT Minting","\u002Fguides\u002Fcrypto\u002Fstarknet","2.guides\u002F1.crypto\u002Fstarknet","i-lucide-circuit-board",{"title":304,"path":305,"stem":306,"icon":290},"Sui NFT Minting","\u002Fguides\u002Fcrypto\u002Fsui","2.guides\u002F1.crypto\u002Fsui",{"title":308,"path":309,"stem":310,"icon":281},"LONG Vesting","\u002Fguides\u002Fcrypto\u002Fvesting","2.guides\u002F1.crypto\u002Fvesting",{"title":312,"path":313,"page":7,"children":314},"MCP tool reference","\u002Fmcp",[315,318,322,326,330,334,338,342,346,350],{"title":19,"path":316,"stem":317,"icon":56},"\u002Fmcp\u002Foverview","4.mcp\u002Foverview",{"title":319,"path":320,"stem":321,"icon":56},"Addresses","\u002Fmcp\u002Ftools-addresses","4.mcp\u002Ftools-addresses",{"title":323,"path":324,"stem":325,"icon":56},"CheckIn","\u002Fmcp\u002Ftools-check-in","4.mcp\u002Ftools-check-In",{"title":327,"path":328,"stem":329,"icon":56},"Events","\u002Fmcp\u002Ftools-events","4.mcp\u002Ftools-events",{"title":331,"path":332,"stem":333,"icon":56},"Hubs","\u002Fmcp\u002Ftools-hubs","4.mcp\u002Ftools-hubs",{"title":335,"path":336,"stem":337,"icon":290},"Minting","\u002Fmcp\u002Ftools-minting","4.mcp\u002Ftools-minting",{"title":339,"path":340,"stem":341,"icon":56},"Notes","\u002Fmcp\u002Ftools-notes","4.mcp\u002Ftools-notes",{"title":343,"path":344,"stem":345,"icon":56},"Registration","\u002Fmcp\u002Ftools-registration","4.mcp\u002Ftools-registration",{"title":347,"path":348,"stem":349,"icon":56},"Starknet","\u002Fmcp\u002Ftools-starknet","4.mcp\u002Ftools-starknet",{"title":351,"path":352,"stem":353,"icon":281},"Vesting","\u002Fmcp\u002Ftools-vesting","4.mcp\u002Ftools-vesting",{"id":355,"title":356,"body":357,"description":4325,"extension":4326,"links":4327,"meta":4328,"navigation":4329,"path":292,"seo":4330,"stem":293,"__hash__":4331},"docs\u002F2.guides\u002F1.crypto\u002Fsponsorship.md","Sponsored Gas Ledger Guide",{"type":358,"value":359,"toc":4301},"minimark",[360,370,374,378,381,384,399,407,427,439,442,466,481,488,491,495,498,505,508,515,524,527,545,550,559,562,566,569,586,589,616,620,623,646,655,665,670,673,678,782,788,791,796,821,827,831,835,840,865,869,874,881,885,890,897,901,906,924,928,933,1019,1026,1030,1035,1118,1120,1160,1164,1168,1173,1337,1341,1442,1446,1544,1546,1576,1587,1590,1922,1925,1942,1946,1951,1954,1972,1975,2077,2080,2087,2091,2095,2098,2104,2107,2113,2116,2138,2177,2337,2340,2563,2566,2592,2598,2642,2648,2651,2685,2688,2713,2717,2721,2724,2743,2769,2958,2962,3203,3206,3257,3260,3375,3378,3382,3386,3394,3398,3567,3571,3686,3690,3805,3807,3845,3847,3922,3929,3933,3937,4124,4127,4144,4147,4201,4205,4251,4256,4260,4297],[361,362],"doc-figure",{":height":363,":width":364,"alt":365,"caption":366,"placement":367,"source-url":368,"src":369},"562","800","A ticket illustration with the words No Gas Needed, Mint the Pass.","","lead","https:\u002F\u002Ft.me\u002Fbelongnet\u002F433","\u002Fmedia\u002Fsocial\u002Fsponsored-network-fees.webp",[371,372,19],"h2",{"id":373},"overview",[375,376,377],"p",{},"Belong API includes a sponsorship ledger for shared sponsored-gas flows.",[375,379,380],{},"Use this guide when integrating gas sponsorship in a browser or trusted service. Treat the ledger as budget accounting and verification: reserving gas allowance is a different step from broadcasting a transaction. A customer can still owe the purchase price even when the network fee is sponsored.",[375,382,383],{},"This is a general backend layer, not a CheckIn-only feature. It is designed to support:",[385,386,387,390,393,396],"ul",{},[388,389,323],"li",{},[388,391,392],{},"NFT mint",[388,394,395],{},"future NFT membership flows",[388,397,398],{},"other sponsored EVM operations",[375,400,401,402,406],{},"For browser-based thirdweb sponsorship, the backend does ",[403,404,405],"strong",{},"not"," broadcast the\ntransaction. It only:",[385,408,409,412,415,418,421,424],{},[388,410,411],{},"verifies sponsor top-ups into the shared platform wallet",[388,413,414],{},"tracks sponsor balances inside Belong API",[388,416,417],{},"stores sponsor operation settings",[388,419,420],{},"checks eligibility before a sponsored operation",[388,422,423],{},"verifies thirdweb sponsored-gas callbacks against the checked calldata",[388,425,426],{},"records sponsored usage from transaction receipts after completion",[375,428,429,430,434,435,438],{},"There is one server-side exception: CheckIn promoter reward withdrawals can be\nbackend-submitted when the venue sponsor has explicitly enabled\n",[431,432,433],"code",{},"distribute_promoter_payments"," and has enough gas-bank balance. In that flow,\nBelong API reserves the estimated gas, signs and broadcasts\n",[431,436,437],{},"distributePromoterPayments",", returns the tx hash to the client, and later records\nactual receipt gas against the sponsor ledger.",[375,440,441],{},"For browser-based thirdweb sponsored gas, the enforced flow is:",[443,444,445,451,454,460],"ol",{},[388,446,447,448],{},"call ",[431,449,450],{},"POST \u002Fapi\u002Fv3\u002Fsponsorship\u002Fcheck",[388,452,453],{},"submit the sponsored transaction through thirdweb",[388,455,456,457],{},"thirdweb calls ",[431,458,459],{},"POST \u002Fapi\u002Fv3\u002Fsponsorship\u002Fthirdweb\u002Fverify",[388,461,462,463],{},"after the transaction has a receipt, the frontend calls ",[431,464,465],{},"POST \u002Fapi\u002Fv3\u002Fsponsorship\u002Fthirdweb\u002Fcomplete",[375,467,468,469,472,473,476,477,480],{},"If thirdweb rejects the sponsored transaction before broadcast and there is no ",[431,470,471],{},"txHash",", the frontend may call ",[431,474,475],{},"POST \u002Fapi\u002Fv3\u002Fsponsorship\u002Fthirdweb\u002Fcancel"," to release the temporary reservation. Once a transaction is broadcast or a receipt exists, use ",[431,478,479],{},"\u002Fthirdweb\u002Fcomplete"," even when the receipt failed, because sponsored gas may already have been spent.",[375,482,483,484,487],{},"For server-side integrations that do not use thirdweb verifier callbacks, a trusted backend can still call ",[431,485,486],{},"POST \u002Fapi\u002Fv3\u002Fsponsorship\u002Fusage\u002Frecord"," directly with a Belong API key.",[375,489,490],{},"There should be no sponsored execution path that bypasses the check and ledger reservation.",[371,492,494],{"id":493},"core-model","Core Model",[375,496,497],{},"Ledger key:",[385,499,500],{},[388,501,502],{},[431,503,504],{},"sponsorAddress + chainId",[375,506,507],{},"Balance formula:",[385,509,510],{},[388,511,512],{},[431,513,514],{},"remainingWei = confirmed deposits - recorded\u002Fconfirmed\u002Ffailed usage",[375,516,517,520,521,523],{},[431,518,519],{},"failed"," usage is counted as spent because a failed on-chain transaction can still burn sponsored gas. Do not record ",[431,522,519],{}," usage for operations that were never broadcast.",[375,525,526],{},"Important properties:",[385,528,529,532,535,540],{},[388,530,531],{},"one shared sponsorship wallet can be topped up by many sponsors",[388,533,534],{},"sponsor balances are isolated inside Belong API",[388,536,537,538],{},"deposits are idempotent by ",[431,539,471],{},[388,541,542,543],{},"usage records are idempotent by ",[431,544,471],{},[375,546,547,549],{},[431,548,450],{}," reserves a maximum gas budget. Completion records actual gas from on-chain proof:",[551,552,557],"pre",{"className":553,"code":555,"language":556,"meta":366},[554],"language-text","direct tx \u002F EIP-7702 sponsored tx:\nactualGasWei = receipt.gasUsed * receipt.effectiveGasPrice\n\nERC-4337:\nactualGasWei = UserOperationEvent.actualGasCost\n","text",[431,558,555],{"__ignoreMap":366},[375,560,561],{},"Actual gas may be lower than the reservation. Usage is rejected only when actual gas exceeds the reserved amount.",[371,563,565],{"id":564},"supported-operation-types","Supported Operation Types",[375,567,568],{},"Current preflight sponsorship checks support:",[385,570,571,576,581],{},[388,572,573],{},[431,574,575],{},"approve",[388,577,578],{},[431,579,580],{},"mint",[388,582,583],{},[431,584,585],{},"pay_to_venue",[375,587,588],{},"Behavior:",[385,590,591,599,607],{},[388,592,593,595,596],{},[431,594,575],{}," is implicit when a target is ",[431,597,598],{},"gasless: true",[388,600,601,603,604,606],{},[431,602,580],{}," and ",[431,605,585],{}," must be explicitly enabled in sponsor settings",[388,608,609,611,612,615],{},[431,610,433],{}," can be enabled in sponsor settings, but it is\nused only by the CheckIn backend-submitted promoter withdrawal flow. It is not\na browser ",[431,613,614],{},"\u002Fsponsorship\u002Fcheck"," operation.",[371,617,619],{"id":618},"gasless-targets","Gasless Targets",[375,621,622],{},"Sponsorship eligibility depends on both the sponsor and the target:",[385,624,625,630,636,641],{},[388,626,627],{},[431,628,629],{},"Venue.gasless",[388,631,632,633],{},"linked ",[431,634,635],{},"Activity.gasless",[388,637,632,638],{},[431,639,640],{},"Hub.gasless",[388,642,643],{},[431,644,645],{},"NftCollection.gasless",[375,647,648,649,651,652,654],{},"For venues, sponsorship is enabled when the venue itself, its linked activity, or its linked hub has ",[431,650,598],{},". For NFT collections, sponsorship is enabled by ",[431,653,645],{},".",[375,656,657,658,661,662,654],{},"If ",[431,659,660],{},"gasless"," is disabled for the resolved target, sponsorship check returns ",[431,663,664],{},"canSponsor: false",[666,667,669],"h3",{"id":668},"toggle-gasless-targets","Toggle Gasless Targets",[375,671,672],{},"Venue gasless eligibility can be toggled with:",[375,674,675],{},[431,676,677],{},"POST \u002Fapi\u002Fv3\u002Fcrypto\u002Fevm\u002Fvenue-gasless",[551,679,683],{"className":680,"code":681,"language":682,"meta":366,"style":366},"language-json shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","{\n  \"ownerAddress\": \"0xOwnerAddress\",\n  \"venueAddress\": \"0xVenueAddress\",\n  \"chainId\": 137,\n  \"enabled\": true\n}\n","json",[431,684,685,694,722,743,761,776],{"__ignoreMap":366},[686,687,690],"span",{"class":688,"line":689},"line",1,[686,691,693],{"class":692},"sMK4o","{\n",[686,695,697,700,704,707,710,713,717,719],{"class":688,"line":696},2,[686,698,699],{"class":692},"  \"",[686,701,703],{"class":702},"spNyl","ownerAddress",[686,705,706],{"class":692},"\"",[686,708,709],{"class":692},":",[686,711,712],{"class":692}," \"",[686,714,716],{"class":715},"sfazB","0xOwnerAddress",[686,718,706],{"class":692},[686,720,721],{"class":692},",\n",[686,723,725,727,730,732,734,736,739,741],{"class":688,"line":724},3,[686,726,699],{"class":692},[686,728,729],{"class":702},"venueAddress",[686,731,706],{"class":692},[686,733,709],{"class":692},[686,735,712],{"class":692},[686,737,738],{"class":715},"0xVenueAddress",[686,740,706],{"class":692},[686,742,721],{"class":692},[686,744,746,748,751,753,755,759],{"class":688,"line":745},4,[686,747,699],{"class":692},[686,749,750],{"class":702},"chainId",[686,752,706],{"class":692},[686,754,709],{"class":692},[686,756,758],{"class":757},"sbssI"," 137",[686,760,721],{"class":692},[686,762,764,766,769,771,773],{"class":688,"line":763},5,[686,765,699],{"class":692},[686,767,768],{"class":702},"enabled",[686,770,706],{"class":692},[686,772,709],{"class":692},[686,774,775],{"class":692}," true\n",[686,777,779],{"class":688,"line":778},6,[686,780,781],{"class":692},"}\n",[375,783,784,785,787],{},"This route requires authentication and venue ownership. It updates off-chain ",[431,786,660],{}," settings only; it does not send or sponsor a transaction.",[375,789,790],{},"NFT collection gasless eligibility can be toggled with:",[375,792,793],{},[431,794,795],{},"POST \u002Fapi\u002Fv3\u002Fnft-collection\u002F:id\u002Fgasless",[551,797,799],{"className":680,"code":798,"language":682,"meta":366,"style":366},"{\n  \"enabled\": true\n}\n",[431,800,801,805,817],{"__ignoreMap":366},[686,802,803],{"class":688,"line":689},[686,804,693],{"class":692},[686,806,807,809,811,813,815],{"class":688,"line":696},[686,808,699],{"class":692},[686,810,768],{"class":702},[686,812,706],{"class":692},[686,814,709],{"class":692},[686,816,775],{"class":692},[686,818,819],{"class":688,"line":724},[686,820,781],{"class":692},[375,822,823,824,826],{},"This route requires authentication and collection ownership. It updates ",[431,825,645],{}," and keeps the linked hub\u002Factivity gasless flag in sync when present.",[371,828,830],{"id":829},"api-routes","API Routes",[666,832,834],{"id":833},"get-balance","Get Balance",[375,836,837],{},[431,838,839],{},"GET \u002Fapi\u002Fv3\u002Fsponsorship\u002Fbalance?walletAddress=0x...&chainId=137",[385,841,842,845],{},[388,843,844],{},"owner-only",[388,846,847,848],{},"returns:\n",[385,849,850,855,860],{},[388,851,852],{},[431,853,854],{},"totalDepositedWei",[388,856,857],{},[431,858,859],{},"totalSpentWei",[388,861,862],{},[431,863,864],{},"remainingWei",[666,866,868],{"id":867},"get-usage","Get Usage",[375,870,871],{},[431,872,873],{},"GET \u002Fapi\u002Fv3\u002Fsponsorship\u002Fusage?walletAddress=0x...&chainId=137",[385,875,876,878],{},[388,877,844],{},[388,879,880],{},"returns sponsorship usage history for that sponsor wallet and chain",[666,882,884],{"id":883},"get-deposits","Get Deposits",[375,886,887],{},[431,888,889],{},"GET \u002Fapi\u002Fv3\u002Fsponsorship\u002Fdeposits?walletAddress=0x...&chainId=137",[385,891,892,894],{},[388,893,844],{},[388,895,896],{},"returns sponsorship deposit history for that sponsor wallet and chain",[666,898,900],{"id":899},"get-settings","Get Settings",[375,902,903],{},[431,904,905],{},"GET \u002Fapi\u002Fv3\u002Fsponsorship\u002Fsettings?walletAddress=0x...&chainId=137",[385,907,908,910],{},[388,909,844],{},[388,911,847,912],{},[385,913,914,919],{},[388,915,916],{},[431,917,918],{},"defaultOperationTypes: [\"approve\"]",[388,920,921],{},[431,922,923],{},"additionalOperationTypes",[666,925,927],{"id":926},"update-settings","Update Settings",[375,929,930],{},[431,931,932],{},"POST \u002Fapi\u002Fv3\u002Fsponsorship\u002Fsettings",[551,934,936],{"className":680,"code":935,"language":682,"meta":366,"style":366},"{\n  \"walletAddress\": \"0x...\",\n  \"chainId\": 137,\n  \"additionalOperationTypes\": [\"mint\", \"pay_to_venue\", \"distribute_promoter_payments\"]\n}\n",[431,937,938,942,962,976,1015],{"__ignoreMap":366},[686,939,940],{"class":688,"line":689},[686,941,693],{"class":692},[686,943,944,946,949,951,953,955,958,960],{"class":688,"line":696},[686,945,699],{"class":692},[686,947,948],{"class":702},"walletAddress",[686,950,706],{"class":692},[686,952,709],{"class":692},[686,954,712],{"class":692},[686,956,957],{"class":715},"0x...",[686,959,706],{"class":692},[686,961,721],{"class":692},[686,963,964,966,968,970,972,974],{"class":688,"line":724},[686,965,699],{"class":692},[686,967,750],{"class":702},[686,969,706],{"class":692},[686,971,709],{"class":692},[686,973,758],{"class":757},[686,975,721],{"class":692},[686,977,978,980,982,984,986,989,991,993,995,998,1000,1002,1004,1006,1008,1010,1012],{"class":688,"line":745},[686,979,699],{"class":692},[686,981,923],{"class":702},[686,983,706],{"class":692},[686,985,709],{"class":692},[686,987,988],{"class":692}," [",[686,990,706],{"class":692},[686,992,580],{"class":715},[686,994,706],{"class":692},[686,996,997],{"class":692},",",[686,999,712],{"class":692},[686,1001,585],{"class":715},[686,1003,706],{"class":692},[686,1005,997],{"class":692},[686,1007,712],{"class":692},[686,1009,433],{"class":715},[686,1011,706],{"class":692},[686,1013,1014],{"class":692},"]\n",[686,1016,1017],{"class":688,"line":763},[686,1018,781],{"class":692},[385,1020,1021,1023],{},[388,1022,844],{},[388,1024,1025],{},"updates sponsor-level allowed operation types",[666,1027,1029],{"id":1028},"record-deposit","Record Deposit",[375,1031,1032],{},[431,1033,1034],{},"POST \u002Fapi\u002Fv3\u002Fsponsorship\u002Fdeposits\u002Frecord",[551,1036,1038],{"className":680,"code":1037,"language":682,"meta":366,"style":366},"{\n  \"sponsorAddress\": \"0x...\",\n  \"chainId\": 137,\n  \"txHash\": \"0x...\",\n  \"amountWei\": \"10000000000000000\"\n}\n",[431,1039,1040,1044,1063,1077,1095,1114],{"__ignoreMap":366},[686,1041,1042],{"class":688,"line":689},[686,1043,693],{"class":692},[686,1045,1046,1048,1051,1053,1055,1057,1059,1061],{"class":688,"line":696},[686,1047,699],{"class":692},[686,1049,1050],{"class":702},"sponsorAddress",[686,1052,706],{"class":692},[686,1054,709],{"class":692},[686,1056,712],{"class":692},[686,1058,957],{"class":715},[686,1060,706],{"class":692},[686,1062,721],{"class":692},[686,1064,1065,1067,1069,1071,1073,1075],{"class":688,"line":724},[686,1066,699],{"class":692},[686,1068,750],{"class":702},[686,1070,706],{"class":692},[686,1072,709],{"class":692},[686,1074,758],{"class":757},[686,1076,721],{"class":692},[686,1078,1079,1081,1083,1085,1087,1089,1091,1093],{"class":688,"line":745},[686,1080,699],{"class":692},[686,1082,471],{"class":702},[686,1084,706],{"class":692},[686,1086,709],{"class":692},[686,1088,712],{"class":692},[686,1090,957],{"class":715},[686,1092,706],{"class":692},[686,1094,721],{"class":692},[686,1096,1097,1099,1102,1104,1106,1108,1111],{"class":688,"line":763},[686,1098,699],{"class":692},[686,1100,1101],{"class":702},"amountWei",[686,1103,706],{"class":692},[686,1105,709],{"class":692},[686,1107,712],{"class":692},[686,1109,1110],{"class":715},"10000000000000000",[686,1112,1113],{"class":692},"\"\n",[686,1115,1116],{"class":688,"line":778},[686,1117,781],{"class":692},[375,1119,588],{},[385,1121,1122,1125,1149,1154,1157],{},[388,1123,1124],{},"verifies the on-chain transaction",[388,1126,1127,1128],{},"checks:\n",[385,1129,1130,1134,1139,1144],{},[388,1131,1132],{},[431,1133,750],{},[388,1135,1136],{},[431,1137,1138],{},"from == sponsorAddress",[388,1140,1141],{},[431,1142,1143],{},"to == platform sponsorship wallet for the chain",[388,1145,1146],{},[431,1147,1148],{},"value == amountWei",[388,1150,1151,1152],{},"records the deposit idempotently by ",[431,1153,471],{},[388,1155,1156],{},"rate-limited to reduce repeated RPC lookups",[388,1158,1159],{},"does not move funds or withdraw from any wallet",[666,1161,1163],{"id":1162},"check-sponsorship-eligibility","Check Sponsorship Eligibility",[375,1165,1166],{},[431,1167,450],{},[375,1169,1170,1171,709],{},"For ",[431,1172,575],{},[551,1174,1176],{"className":680,"code":1175,"language":682,"meta":366,"style":366},"{\n  \"chainId\": 137,\n  \"operationType\": \"approve\",\n  \"amountWei\": \"25000000000000000\",\n  \"approveAmountWei\": \"50000000\",\n  \"venueAddress\": \"0xVenueAddress\",\n  \"ownerAddress\": \"0xUserWallet\",\n  \"tokenAddress\": \"0xTokenAddress\",\n  \"spenderAddress\": \"0xSpenderAddress\"\n}\n",[431,1177,1178,1182,1196,1215,1234,1254,1272,1292,1313,1332],{"__ignoreMap":366},[686,1179,1180],{"class":688,"line":689},[686,1181,693],{"class":692},[686,1183,1184,1186,1188,1190,1192,1194],{"class":688,"line":696},[686,1185,699],{"class":692},[686,1187,750],{"class":702},[686,1189,706],{"class":692},[686,1191,709],{"class":692},[686,1193,758],{"class":757},[686,1195,721],{"class":692},[686,1197,1198,1200,1203,1205,1207,1209,1211,1213],{"class":688,"line":724},[686,1199,699],{"class":692},[686,1201,1202],{"class":702},"operationType",[686,1204,706],{"class":692},[686,1206,709],{"class":692},[686,1208,712],{"class":692},[686,1210,575],{"class":715},[686,1212,706],{"class":692},[686,1214,721],{"class":692},[686,1216,1217,1219,1221,1223,1225,1227,1230,1232],{"class":688,"line":745},[686,1218,699],{"class":692},[686,1220,1101],{"class":702},[686,1222,706],{"class":692},[686,1224,709],{"class":692},[686,1226,712],{"class":692},[686,1228,1229],{"class":715},"25000000000000000",[686,1231,706],{"class":692},[686,1233,721],{"class":692},[686,1235,1236,1238,1241,1243,1245,1247,1250,1252],{"class":688,"line":763},[686,1237,699],{"class":692},[686,1239,1240],{"class":702},"approveAmountWei",[686,1242,706],{"class":692},[686,1244,709],{"class":692},[686,1246,712],{"class":692},[686,1248,1249],{"class":715},"50000000",[686,1251,706],{"class":692},[686,1253,721],{"class":692},[686,1255,1256,1258,1260,1262,1264,1266,1268,1270],{"class":688,"line":778},[686,1257,699],{"class":692},[686,1259,729],{"class":702},[686,1261,706],{"class":692},[686,1263,709],{"class":692},[686,1265,712],{"class":692},[686,1267,738],{"class":715},[686,1269,706],{"class":692},[686,1271,721],{"class":692},[686,1273,1275,1277,1279,1281,1283,1285,1288,1290],{"class":688,"line":1274},7,[686,1276,699],{"class":692},[686,1278,703],{"class":702},[686,1280,706],{"class":692},[686,1282,709],{"class":692},[686,1284,712],{"class":692},[686,1286,1287],{"class":715},"0xUserWallet",[686,1289,706],{"class":692},[686,1291,721],{"class":692},[686,1293,1295,1297,1300,1302,1304,1306,1309,1311],{"class":688,"line":1294},8,[686,1296,699],{"class":692},[686,1298,1299],{"class":702},"tokenAddress",[686,1301,706],{"class":692},[686,1303,709],{"class":692},[686,1305,712],{"class":692},[686,1307,1308],{"class":715},"0xTokenAddress",[686,1310,706],{"class":692},[686,1312,721],{"class":692},[686,1314,1316,1318,1321,1323,1325,1327,1330],{"class":688,"line":1315},9,[686,1317,699],{"class":692},[686,1319,1320],{"class":702},"spenderAddress",[686,1322,706],{"class":692},[686,1324,709],{"class":692},[686,1326,712],{"class":692},[686,1328,1329],{"class":715},"0xSpenderAddress",[686,1331,1113],{"class":692},[686,1333,1335],{"class":688,"line":1334},10,[686,1336,781],{"class":692},[375,1338,1170,1339,709],{},[431,1340,580],{},[551,1342,1344],{"className":680,"code":1343,"language":682,"meta":366,"style":366},"{\n  \"chainId\": 137,\n  \"operationType\": \"mint\",\n  \"amountWei\": \"6000000000000000\",\n  \"collectionId\": \"collection-id\",\n  \"actorAddress\": \"0xUserWallet\"\n}\n",[431,1345,1346,1350,1364,1382,1401,1421,1438],{"__ignoreMap":366},[686,1347,1348],{"class":688,"line":689},[686,1349,693],{"class":692},[686,1351,1352,1354,1356,1358,1360,1362],{"class":688,"line":696},[686,1353,699],{"class":692},[686,1355,750],{"class":702},[686,1357,706],{"class":692},[686,1359,709],{"class":692},[686,1361,758],{"class":757},[686,1363,721],{"class":692},[686,1365,1366,1368,1370,1372,1374,1376,1378,1380],{"class":688,"line":724},[686,1367,699],{"class":692},[686,1369,1202],{"class":702},[686,1371,706],{"class":692},[686,1373,709],{"class":692},[686,1375,712],{"class":692},[686,1377,580],{"class":715},[686,1379,706],{"class":692},[686,1381,721],{"class":692},[686,1383,1384,1386,1388,1390,1392,1394,1397,1399],{"class":688,"line":745},[686,1385,699],{"class":692},[686,1387,1101],{"class":702},[686,1389,706],{"class":692},[686,1391,709],{"class":692},[686,1393,712],{"class":692},[686,1395,1396],{"class":715},"6000000000000000",[686,1398,706],{"class":692},[686,1400,721],{"class":692},[686,1402,1403,1405,1408,1410,1412,1414,1417,1419],{"class":688,"line":763},[686,1404,699],{"class":692},[686,1406,1407],{"class":702},"collectionId",[686,1409,706],{"class":692},[686,1411,709],{"class":692},[686,1413,712],{"class":692},[686,1415,1416],{"class":715},"collection-id",[686,1418,706],{"class":692},[686,1420,721],{"class":692},[686,1422,1423,1425,1428,1430,1432,1434,1436],{"class":688,"line":778},[686,1424,699],{"class":692},[686,1426,1427],{"class":702},"actorAddress",[686,1429,706],{"class":692},[686,1431,709],{"class":692},[686,1433,712],{"class":692},[686,1435,1287],{"class":715},[686,1437,1113],{"class":692},[686,1439,1440],{"class":688,"line":1274},[686,1441,781],{"class":692},[375,1443,1170,1444,709],{},[431,1445,585],{},[551,1447,1449],{"className":680,"code":1448,"language":682,"meta":366,"style":366},"{\n  \"chainId\": 137,\n  \"operationType\": \"pay_to_venue\",\n  \"amountWei\": \"2500000000000000\",\n  \"venueAddress\": \"0xVenueAddress\",\n  \"actorAddress\": \"0xUserWallet\"\n}\n",[431,1450,1451,1455,1469,1487,1506,1524,1540],{"__ignoreMap":366},[686,1452,1453],{"class":688,"line":689},[686,1454,693],{"class":692},[686,1456,1457,1459,1461,1463,1465,1467],{"class":688,"line":696},[686,1458,699],{"class":692},[686,1460,750],{"class":702},[686,1462,706],{"class":692},[686,1464,709],{"class":692},[686,1466,758],{"class":757},[686,1468,721],{"class":692},[686,1470,1471,1473,1475,1477,1479,1481,1483,1485],{"class":688,"line":724},[686,1472,699],{"class":692},[686,1474,1202],{"class":702},[686,1476,706],{"class":692},[686,1478,709],{"class":692},[686,1480,712],{"class":692},[686,1482,585],{"class":715},[686,1484,706],{"class":692},[686,1486,721],{"class":692},[686,1488,1489,1491,1493,1495,1497,1499,1502,1504],{"class":688,"line":745},[686,1490,699],{"class":692},[686,1492,1101],{"class":702},[686,1494,706],{"class":692},[686,1496,709],{"class":692},[686,1498,712],{"class":692},[686,1500,1501],{"class":715},"2500000000000000",[686,1503,706],{"class":692},[686,1505,721],{"class":692},[686,1507,1508,1510,1512,1514,1516,1518,1520,1522],{"class":688,"line":763},[686,1509,699],{"class":692},[686,1511,729],{"class":702},[686,1513,706],{"class":692},[686,1515,709],{"class":692},[686,1517,712],{"class":692},[686,1519,738],{"class":715},[686,1521,706],{"class":692},[686,1523,721],{"class":692},[686,1525,1526,1528,1530,1532,1534,1536,1538],{"class":688,"line":778},[686,1527,699],{"class":692},[686,1529,1427],{"class":702},[686,1531,706],{"class":692},[686,1533,709],{"class":692},[686,1535,712],{"class":692},[686,1537,1287],{"class":715},[686,1539,1113],{"class":692},[686,1541,1542],{"class":688,"line":1274},[686,1543,781],{"class":692},[375,1545,588],{},[385,1547,1548,1551,1556,1559,1562,1570,1573],{},[388,1549,1550],{},"validates actor ownership for the authenticated user",[388,1552,1553,1554],{},"checks target existence and ",[431,1555,660],{},[388,1557,1558],{},"checks sponsor settings",[388,1560,1561],{},"checks sponsor balance",[388,1563,1564,1565,1567,1568],{},"for ",[431,1566,575],{},", verifies whether allowance is already sufficient for ",[431,1569,1240],{},[388,1571,1572],{},"creates a temporary reservation lock to reduce double-spend races",[388,1574,1575],{},"rate-limited per authenticated user\u002Fclient to reduce reservation spam",[375,1577,1578,1580,1581,1583,1584,1586],{},[431,1579,1101],{}," is the maximum gas reservation amount. For ",[431,1582,575],{},", ",[431,1585,1240],{}," is the token allowance amount being checked. These values are intentionally separate.",[375,1588,1589],{},"Typical response:",[551,1591,1593],{"className":680,"code":1592,"language":682,"meta":366,"style":366},"{\n  \"canSponsor\": true,\n  \"reasonCode\": \"ok\",\n  \"reasonMessage\": \"Sponsorship can cover this operation\",\n  \"chainId\": 137,\n  \"contextType\": \"checkin\",\n  \"operationType\": \"pay_to_venue\",\n  \"sponsorAddress\": \"0xsponsoraddress\",\n  \"gasless\": true,\n  \"remainingWei\": \"7500000000000000\",\n  \"amountWei\": \"2500000000000000\",\n  \"venueAddress\": \"0xvenueaddress\",\n  \"collectionId\": null,\n  \"actorAddress\": \"0xuserwallet\",\n  \"ownerAddress\": null,\n  \"tokenAddress\": null,\n  \"spenderAddress\": null,\n  \"approveAmountWei\": null,\n  \"additionalOperationTypes\": [\"mint\", \"pay_to_venue\", \"distribute_promoter_payments\"]\n}\n",[431,1594,1595,1599,1613,1633,1653,1667,1687,1705,1724,1736,1755,1774,1794,1808,1828,1841,1854,1867,1880,1917],{"__ignoreMap":366},[686,1596,1597],{"class":688,"line":689},[686,1598,693],{"class":692},[686,1600,1601,1603,1606,1608,1610],{"class":688,"line":696},[686,1602,699],{"class":692},[686,1604,1605],{"class":702},"canSponsor",[686,1607,706],{"class":692},[686,1609,709],{"class":692},[686,1611,1612],{"class":692}," true,\n",[686,1614,1615,1617,1620,1622,1624,1626,1629,1631],{"class":688,"line":724},[686,1616,699],{"class":692},[686,1618,1619],{"class":702},"reasonCode",[686,1621,706],{"class":692},[686,1623,709],{"class":692},[686,1625,712],{"class":692},[686,1627,1628],{"class":715},"ok",[686,1630,706],{"class":692},[686,1632,721],{"class":692},[686,1634,1635,1637,1640,1642,1644,1646,1649,1651],{"class":688,"line":745},[686,1636,699],{"class":692},[686,1638,1639],{"class":702},"reasonMessage",[686,1641,706],{"class":692},[686,1643,709],{"class":692},[686,1645,712],{"class":692},[686,1647,1648],{"class":715},"Sponsorship can cover this operation",[686,1650,706],{"class":692},[686,1652,721],{"class":692},[686,1654,1655,1657,1659,1661,1663,1665],{"class":688,"line":763},[686,1656,699],{"class":692},[686,1658,750],{"class":702},[686,1660,706],{"class":692},[686,1662,709],{"class":692},[686,1664,758],{"class":757},[686,1666,721],{"class":692},[686,1668,1669,1671,1674,1676,1678,1680,1683,1685],{"class":688,"line":778},[686,1670,699],{"class":692},[686,1672,1673],{"class":702},"contextType",[686,1675,706],{"class":692},[686,1677,709],{"class":692},[686,1679,712],{"class":692},[686,1681,1682],{"class":715},"checkin",[686,1684,706],{"class":692},[686,1686,721],{"class":692},[686,1688,1689,1691,1693,1695,1697,1699,1701,1703],{"class":688,"line":1274},[686,1690,699],{"class":692},[686,1692,1202],{"class":702},[686,1694,706],{"class":692},[686,1696,709],{"class":692},[686,1698,712],{"class":692},[686,1700,585],{"class":715},[686,1702,706],{"class":692},[686,1704,721],{"class":692},[686,1706,1707,1709,1711,1713,1715,1717,1720,1722],{"class":688,"line":1294},[686,1708,699],{"class":692},[686,1710,1050],{"class":702},[686,1712,706],{"class":692},[686,1714,709],{"class":692},[686,1716,712],{"class":692},[686,1718,1719],{"class":715},"0xsponsoraddress",[686,1721,706],{"class":692},[686,1723,721],{"class":692},[686,1725,1726,1728,1730,1732,1734],{"class":688,"line":1315},[686,1727,699],{"class":692},[686,1729,660],{"class":702},[686,1731,706],{"class":692},[686,1733,709],{"class":692},[686,1735,1612],{"class":692},[686,1737,1738,1740,1742,1744,1746,1748,1751,1753],{"class":688,"line":1334},[686,1739,699],{"class":692},[686,1741,864],{"class":702},[686,1743,706],{"class":692},[686,1745,709],{"class":692},[686,1747,712],{"class":692},[686,1749,1750],{"class":715},"7500000000000000",[686,1752,706],{"class":692},[686,1754,721],{"class":692},[686,1756,1758,1760,1762,1764,1766,1768,1770,1772],{"class":688,"line":1757},11,[686,1759,699],{"class":692},[686,1761,1101],{"class":702},[686,1763,706],{"class":692},[686,1765,709],{"class":692},[686,1767,712],{"class":692},[686,1769,1501],{"class":715},[686,1771,706],{"class":692},[686,1773,721],{"class":692},[686,1775,1777,1779,1781,1783,1785,1787,1790,1792],{"class":688,"line":1776},12,[686,1778,699],{"class":692},[686,1780,729],{"class":702},[686,1782,706],{"class":692},[686,1784,709],{"class":692},[686,1786,712],{"class":692},[686,1788,1789],{"class":715},"0xvenueaddress",[686,1791,706],{"class":692},[686,1793,721],{"class":692},[686,1795,1797,1799,1801,1803,1805],{"class":688,"line":1796},13,[686,1798,699],{"class":692},[686,1800,1407],{"class":702},[686,1802,706],{"class":692},[686,1804,709],{"class":692},[686,1806,1807],{"class":692}," null,\n",[686,1809,1811,1813,1815,1817,1819,1821,1824,1826],{"class":688,"line":1810},14,[686,1812,699],{"class":692},[686,1814,1427],{"class":702},[686,1816,706],{"class":692},[686,1818,709],{"class":692},[686,1820,712],{"class":692},[686,1822,1823],{"class":715},"0xuserwallet",[686,1825,706],{"class":692},[686,1827,721],{"class":692},[686,1829,1831,1833,1835,1837,1839],{"class":688,"line":1830},15,[686,1832,699],{"class":692},[686,1834,703],{"class":702},[686,1836,706],{"class":692},[686,1838,709],{"class":692},[686,1840,1807],{"class":692},[686,1842,1844,1846,1848,1850,1852],{"class":688,"line":1843},16,[686,1845,699],{"class":692},[686,1847,1299],{"class":702},[686,1849,706],{"class":692},[686,1851,709],{"class":692},[686,1853,1807],{"class":692},[686,1855,1857,1859,1861,1863,1865],{"class":688,"line":1856},17,[686,1858,699],{"class":692},[686,1860,1320],{"class":702},[686,1862,706],{"class":692},[686,1864,709],{"class":692},[686,1866,1807],{"class":692},[686,1868,1870,1872,1874,1876,1878],{"class":688,"line":1869},18,[686,1871,699],{"class":692},[686,1873,1240],{"class":702},[686,1875,706],{"class":692},[686,1877,709],{"class":692},[686,1879,1807],{"class":692},[686,1881,1883,1885,1887,1889,1891,1893,1895,1897,1899,1901,1903,1905,1907,1909,1911,1913,1915],{"class":688,"line":1882},19,[686,1884,699],{"class":692},[686,1886,923],{"class":702},[686,1888,706],{"class":692},[686,1890,709],{"class":692},[686,1892,988],{"class":692},[686,1894,706],{"class":692},[686,1896,580],{"class":715},[686,1898,706],{"class":692},[686,1900,997],{"class":692},[686,1902,712],{"class":692},[686,1904,585],{"class":715},[686,1906,706],{"class":692},[686,1908,997],{"class":692},[686,1910,712],{"class":692},[686,1912,433],{"class":715},[686,1914,706],{"class":692},[686,1916,1014],{"class":692},[686,1918,1920],{"class":688,"line":1919},20,[686,1921,781],{"class":692},[375,1923,1924],{},"When the authenticated actor does not own the sponsor wallet, sponsor details are hidden in the response:",[385,1926,1927,1932,1937],{},[388,1928,1929],{},[431,1930,1931],{},"sponsorAddress: null",[388,1933,1934],{},[431,1935,1936],{},"remainingWei: null",[388,1938,1939],{},[431,1940,1941],{},"additionalOperationTypes: []",[666,1943,1945],{"id":1944},"backend-submitted-checkin-promoter-withdrawals","Backend-Submitted CheckIn Promoter Withdrawals",[375,1947,1948,1950],{},[431,1949,433],{}," is not a browser preflight operation. It is an\nallowed sponsor setting for CheckIn promoter reward withdrawals.",[375,1952,1953],{},"When a promoter withdraws venue-funded rewards, Belong API can submit the\ncontract call itself if all conditions are true:",[385,1955,1956,1961,1966,1969],{},[388,1957,1958,1959],{},"the venue target is ",[431,1960,598],{},[388,1962,1963,1964],{},"the sponsor settings include ",[431,1965,433],{},[388,1967,1968],{},"the sponsor gas-bank ledger can reserve the estimated gas cost",[388,1970,1971],{},"signer policy allows backend distribution submission",[375,1973,1974],{},"The client receives:",[551,1976,1978],{"className":680,"code":1977,"language":682,"meta":366,"style":366},"{\n  \"address\": \"0xCheckInContract\",\n  \"submitted\": true,\n  \"txHash\": \"0x...\",\n  \"transactionStatus\": \"success\",\n  \"signatureExpiresAt\": \"2026-07-05T12:00:00.000Z\"\n}\n",[431,1979,1980,1984,2004,2017,2035,2055,2073],{"__ignoreMap":366},[686,1981,1982],{"class":688,"line":689},[686,1983,693],{"class":692},[686,1985,1986,1988,1991,1993,1995,1997,2000,2002],{"class":688,"line":696},[686,1987,699],{"class":692},[686,1989,1990],{"class":702},"address",[686,1992,706],{"class":692},[686,1994,709],{"class":692},[686,1996,712],{"class":692},[686,1998,1999],{"class":715},"0xCheckInContract",[686,2001,706],{"class":692},[686,2003,721],{"class":692},[686,2005,2006,2008,2011,2013,2015],{"class":688,"line":724},[686,2007,699],{"class":692},[686,2009,2010],{"class":702},"submitted",[686,2012,706],{"class":692},[686,2014,709],{"class":692},[686,2016,1612],{"class":692},[686,2018,2019,2021,2023,2025,2027,2029,2031,2033],{"class":688,"line":745},[686,2020,699],{"class":692},[686,2022,471],{"class":702},[686,2024,706],{"class":692},[686,2026,709],{"class":692},[686,2028,712],{"class":692},[686,2030,957],{"class":715},[686,2032,706],{"class":692},[686,2034,721],{"class":692},[686,2036,2037,2039,2042,2044,2046,2048,2051,2053],{"class":688,"line":763},[686,2038,699],{"class":692},[686,2040,2041],{"class":702},"transactionStatus",[686,2043,706],{"class":692},[686,2045,709],{"class":692},[686,2047,712],{"class":692},[686,2049,2050],{"class":715},"success",[686,2052,706],{"class":692},[686,2054,721],{"class":692},[686,2056,2057,2059,2062,2064,2066,2068,2071],{"class":688,"line":778},[686,2058,699],{"class":692},[686,2060,2061],{"class":702},"signatureExpiresAt",[686,2063,706],{"class":692},[686,2065,709],{"class":692},[686,2067,712],{"class":692},[686,2069,2070],{"class":715},"2026-07-05T12:00:00.000Z",[686,2072,1113],{"class":692},[686,2074,2075],{"class":688,"line":1274},[686,2076,781],{"class":692},[375,2078,2079],{},"If the sponsor is not eligible or the gas reservation cannot be created, the\nsame CheckIn endpoint falls back to client-submitted transaction params instead\nof spending platform gas.",[375,2081,2082,2083,2086],{},"Gas accounting is based on transaction receipts for tx hashes the backend\nalready submitted. It does not require broad ",[431,2084,2085],{},"eth_getLogs"," scans.",[666,2088,2090],{"id":2089},"thirdweb-verifier","Thirdweb Verifier",[375,2092,2093],{},[431,2094,459],{},[375,2096,2097],{},"Set this URL in the thirdweb dashboard as the Server Verifier URL:",[551,2099,2102],{"className":2100,"code":2101,"language":556,"meta":366},[554],"https:\u002F\u002F\u003Capi-host>\u002Fapi\u002Fv3\u002Fsponsorship\u002Fthirdweb\u002Fverify\n",[431,2103,2101],{"__ignoreMap":366},[375,2105,2106],{},"Configure thirdweb to send this custom header:",[551,2108,2111],{"className":2109,"code":2110,"language":556,"meta":366},[554],"x-belong-thirdweb-verifier-secret: \u003CTHIRDWEB_SPONSORSHIP_VERIFIER_SECRET>\n",[431,2112,2110],{"__ignoreMap":366},[375,2114,2115],{},"Environment:",[385,2117,2118,2124,2130],{},[388,2119,2120,2123],{},[431,2121,2122],{},"THIRDWEB_SPONSORSHIP_VERIFIER_SECRET"," is required for verifier callbacks",[388,2125,2126,2129],{},[431,2127,2128],{},"THIRDWEB_SPONSORSHIP_CLIENT_IDS"," is an optional comma-separated allowlist of thirdweb client IDs",[388,2131,2132,2135,2136],{},[431,2133,2134],{},"THIRDWEB_SPONSORSHIP_ENTRYPOINT_ADDRESSES"," is an optional comma-separated allowlist of ERC-4337 EntryPoint addresses accepted by ",[431,2137,479],{},[375,2139,2140,2141,1583,2144,2147,2148,2151,2152,1583,2155,2147,2158,2161,2162,2165,2166,2169,2170,2165,2173,2176],{},"For EIP-7702\u002Fdirect EOA sponsored execution, thirdweb sends the EOA execution account plus one call. The backend accepts equivalent field names used by thirdweb payload variants: ",[431,2142,2143],{},"from",[431,2145,2146],{},"accountAddress",", or ",[431,2149,2150],{},"sender"," for the EOA; ",[431,2153,2154],{},"targetAddress",[431,2156,2157],{},"to",[431,2159,2160],{},"contractAddress"," for the target; ",[431,2163,2164],{},"callData"," or ",[431,2167,2168],{},"data"," for calldata; and ",[431,2171,2172],{},"nativeValueWei",[431,2174,2175],{},"value"," for native value.",[551,2178,2180],{"className":680,"code":2179,"language":682,"meta":366,"style":366},"{\n  \"clientId\": \"thirdweb-client-id\",\n  \"chainId\": 137,\n  \"accountAddress\": \"0xUserEOA\",\n  \"targetAddress\": \"0xContract\",\n  \"callData\": \"0x...\",\n  \"nativeValueWei\": \"0\",\n  \"gasLimit\": \"120000\",\n  \"gasPrice\": \"30000000000\"\n}\n",[431,2181,2182,2186,2206,2220,2239,2258,2276,2295,2315,2333],{"__ignoreMap":366},[686,2183,2184],{"class":688,"line":689},[686,2185,693],{"class":692},[686,2187,2188,2190,2193,2195,2197,2199,2202,2204],{"class":688,"line":696},[686,2189,699],{"class":692},[686,2191,2192],{"class":702},"clientId",[686,2194,706],{"class":692},[686,2196,709],{"class":692},[686,2198,712],{"class":692},[686,2200,2201],{"class":715},"thirdweb-client-id",[686,2203,706],{"class":692},[686,2205,721],{"class":692},[686,2207,2208,2210,2212,2214,2216,2218],{"class":688,"line":724},[686,2209,699],{"class":692},[686,2211,750],{"class":702},[686,2213,706],{"class":692},[686,2215,709],{"class":692},[686,2217,758],{"class":757},[686,2219,721],{"class":692},[686,2221,2222,2224,2226,2228,2230,2232,2235,2237],{"class":688,"line":745},[686,2223,699],{"class":692},[686,2225,2146],{"class":702},[686,2227,706],{"class":692},[686,2229,709],{"class":692},[686,2231,712],{"class":692},[686,2233,2234],{"class":715},"0xUserEOA",[686,2236,706],{"class":692},[686,2238,721],{"class":692},[686,2240,2241,2243,2245,2247,2249,2251,2254,2256],{"class":688,"line":763},[686,2242,699],{"class":692},[686,2244,2154],{"class":702},[686,2246,706],{"class":692},[686,2248,709],{"class":692},[686,2250,712],{"class":692},[686,2252,2253],{"class":715},"0xContract",[686,2255,706],{"class":692},[686,2257,721],{"class":692},[686,2259,2260,2262,2264,2266,2268,2270,2272,2274],{"class":688,"line":778},[686,2261,699],{"class":692},[686,2263,2164],{"class":702},[686,2265,706],{"class":692},[686,2267,709],{"class":692},[686,2269,712],{"class":692},[686,2271,957],{"class":715},[686,2273,706],{"class":692},[686,2275,721],{"class":692},[686,2277,2278,2280,2282,2284,2286,2288,2291,2293],{"class":688,"line":1274},[686,2279,699],{"class":692},[686,2281,2172],{"class":702},[686,2283,706],{"class":692},[686,2285,709],{"class":692},[686,2287,712],{"class":692},[686,2289,2290],{"class":715},"0",[686,2292,706],{"class":692},[686,2294,721],{"class":692},[686,2296,2297,2299,2302,2304,2306,2308,2311,2313],{"class":688,"line":1294},[686,2298,699],{"class":692},[686,2300,2301],{"class":702},"gasLimit",[686,2303,706],{"class":692},[686,2305,709],{"class":692},[686,2307,712],{"class":692},[686,2309,2310],{"class":715},"120000",[686,2312,706],{"class":692},[686,2314,721],{"class":692},[686,2316,2317,2319,2322,2324,2326,2328,2331],{"class":688,"line":1315},[686,2318,699],{"class":692},[686,2320,2321],{"class":702},"gasPrice",[686,2323,706],{"class":692},[686,2325,709],{"class":692},[686,2327,712],{"class":692},[686,2329,2330],{"class":715},"30000000000",[686,2332,1113],{"class":692},[686,2334,2335],{"class":688,"line":1334},[686,2336,781],{"class":692},[375,2338,2339],{},"The legacy ERC-4337 payload is still supported:",[551,2341,2343],{"className":680,"code":2342,"language":682,"meta":366,"style":366},"{\n  \"clientId\": \"thirdweb-client-id\",\n  \"chainId\": 137,\n  \"userOp\": {\n    \"sender\": \"0xSmartAccount\",\n    \"targets\": [\"0xContract\"],\n    \"gasLimit\": \"120000\",\n    \"gasPrice\": \"30000000000\",\n    \"data\": {\n      \"targets\": [\"0xContract\"],\n      \"callDatas\": [\"0x...\"],\n      \"values\": [\"0\"]\n    }\n  }\n}\n",[431,2344,2345,2349,2367,2381,2395,2416,2438,2456,2474,2486,2507,2528,2549,2554,2559],{"__ignoreMap":366},[686,2346,2347],{"class":688,"line":689},[686,2348,693],{"class":692},[686,2350,2351,2353,2355,2357,2359,2361,2363,2365],{"class":688,"line":696},[686,2352,699],{"class":692},[686,2354,2192],{"class":702},[686,2356,706],{"class":692},[686,2358,709],{"class":692},[686,2360,712],{"class":692},[686,2362,2201],{"class":715},[686,2364,706],{"class":692},[686,2366,721],{"class":692},[686,2368,2369,2371,2373,2375,2377,2379],{"class":688,"line":724},[686,2370,699],{"class":692},[686,2372,750],{"class":702},[686,2374,706],{"class":692},[686,2376,709],{"class":692},[686,2378,758],{"class":757},[686,2380,721],{"class":692},[686,2382,2383,2385,2388,2390,2392],{"class":688,"line":745},[686,2384,699],{"class":692},[686,2386,2387],{"class":702},"userOp",[686,2389,706],{"class":692},[686,2391,709],{"class":692},[686,2393,2394],{"class":692}," {\n",[686,2396,2397,2400,2403,2405,2407,2409,2412,2414],{"class":688,"line":763},[686,2398,2399],{"class":692},"    \"",[686,2401,2150],{"class":2402},"sBMFI",[686,2404,706],{"class":692},[686,2406,709],{"class":692},[686,2408,712],{"class":692},[686,2410,2411],{"class":715},"0xSmartAccount",[686,2413,706],{"class":692},[686,2415,721],{"class":692},[686,2417,2418,2420,2423,2425,2427,2429,2431,2433,2435],{"class":688,"line":778},[686,2419,2399],{"class":692},[686,2421,2422],{"class":2402},"targets",[686,2424,706],{"class":692},[686,2426,709],{"class":692},[686,2428,988],{"class":692},[686,2430,706],{"class":692},[686,2432,2253],{"class":715},[686,2434,706],{"class":692},[686,2436,2437],{"class":692},"],\n",[686,2439,2440,2442,2444,2446,2448,2450,2452,2454],{"class":688,"line":1274},[686,2441,2399],{"class":692},[686,2443,2301],{"class":2402},[686,2445,706],{"class":692},[686,2447,709],{"class":692},[686,2449,712],{"class":692},[686,2451,2310],{"class":715},[686,2453,706],{"class":692},[686,2455,721],{"class":692},[686,2457,2458,2460,2462,2464,2466,2468,2470,2472],{"class":688,"line":1294},[686,2459,2399],{"class":692},[686,2461,2321],{"class":2402},[686,2463,706],{"class":692},[686,2465,709],{"class":692},[686,2467,712],{"class":692},[686,2469,2330],{"class":715},[686,2471,706],{"class":692},[686,2473,721],{"class":692},[686,2475,2476,2478,2480,2482,2484],{"class":688,"line":1315},[686,2477,2399],{"class":692},[686,2479,2168],{"class":2402},[686,2481,706],{"class":692},[686,2483,709],{"class":692},[686,2485,2394],{"class":692},[686,2487,2488,2491,2493,2495,2497,2499,2501,2503,2505],{"class":688,"line":1334},[686,2489,2490],{"class":692},"      \"",[686,2492,2422],{"class":757},[686,2494,706],{"class":692},[686,2496,709],{"class":692},[686,2498,988],{"class":692},[686,2500,706],{"class":692},[686,2502,2253],{"class":715},[686,2504,706],{"class":692},[686,2506,2437],{"class":692},[686,2508,2509,2511,2514,2516,2518,2520,2522,2524,2526],{"class":688,"line":1757},[686,2510,2490],{"class":692},[686,2512,2513],{"class":757},"callDatas",[686,2515,706],{"class":692},[686,2517,709],{"class":692},[686,2519,988],{"class":692},[686,2521,706],{"class":692},[686,2523,957],{"class":715},[686,2525,706],{"class":692},[686,2527,2437],{"class":692},[686,2529,2530,2532,2535,2537,2539,2541,2543,2545,2547],{"class":688,"line":1776},[686,2531,2490],{"class":692},[686,2533,2534],{"class":757},"values",[686,2536,706],{"class":692},[686,2538,709],{"class":692},[686,2540,988],{"class":692},[686,2542,706],{"class":692},[686,2544,2290],{"class":715},[686,2546,706],{"class":692},[686,2548,1014],{"class":692},[686,2550,2551],{"class":688,"line":1796},[686,2552,2553],{"class":692},"    }\n",[686,2555,2556],{"class":688,"line":1810},[686,2557,2558],{"class":692},"  }\n",[686,2560,2561],{"class":688,"line":1830},[686,2562,781],{"class":692},[375,2564,2565],{},"Response:",[551,2567,2569],{"className":680,"code":2568,"language":682,"meta":366,"style":366},"{\n  \"isAllowed\": true\n}\n",[431,2570,2571,2575,2588],{"__ignoreMap":366},[686,2572,2573],{"class":688,"line":689},[686,2574,693],{"class":692},[686,2576,2577,2579,2582,2584,2586],{"class":688,"line":696},[686,2578,699],{"class":692},[686,2580,2581],{"class":702},"isAllowed",[686,2583,706],{"class":692},[686,2585,709],{"class":692},[686,2587,775],{"class":692},[686,2589,2590],{"class":688,"line":724},[686,2591,781],{"class":692},[375,2593,2594,2595,709],{},"Policy denials return ",[431,2596,2597],{},"200",[551,2599,2601],{"className":680,"code":2600,"language":682,"meta":366,"style":366},"{\n  \"isAllowed\": false,\n  \"reason\": \"Matching sponsorship reservation was not found\"\n}\n",[431,2602,2603,2607,2620,2638],{"__ignoreMap":366},[686,2604,2605],{"class":688,"line":689},[686,2606,693],{"class":692},[686,2608,2609,2611,2613,2615,2617],{"class":688,"line":696},[686,2610,699],{"class":692},[686,2612,2581],{"class":702},[686,2614,706],{"class":692},[686,2616,709],{"class":692},[686,2618,2619],{"class":692}," false,\n",[686,2621,2622,2624,2627,2629,2631,2633,2636],{"class":688,"line":724},[686,2623,699],{"class":692},[686,2625,2626],{"class":702},"reason",[686,2628,706],{"class":692},[686,2630,709],{"class":692},[686,2632,712],{"class":692},[686,2634,2635],{"class":715},"Matching sponsorship reservation was not found",[686,2637,1113],{"class":692},[686,2639,2640],{"class":688,"line":745},[686,2641,781],{"class":692},[375,2643,2644,2645,654],{},"Missing or invalid verifier secret returns ",[431,2646,2647],{},"401",[375,2649,2650],{},"Verifier behavior:",[385,2652,2653,2656,2667,2673,2676,2679,2682],{},[388,2654,2655],{},"rejects batch operations; exactly one target, calldata, and value are allowed",[388,2657,2658,2659,2661,2662,603,2664,2666],{},"rejects non-zero native value for ERC20 ",[431,2660,575],{},"; ",[431,2663,580],{},[431,2665,585],{}," may use native value when the decoded operation and reservation match",[388,2668,2669,2670],{},"calculates ",[431,2671,2672],{},"gasBudgetWei = gasLimit * gasPrice",[388,2674,2675],{},"decodes calldata instead of trusting frontend labels",[388,2677,2678],{},"checks target contract, business context, sponsor settings, gasless state, and active reservation",[388,2680,2681],{},"rejects approve calldata if token, spender, or approve amount differs from the checked reservation",[388,2683,2684],{},"stores a short-lived server-side approval marker for the exact EOA actor\u002Fowner, execution account, target, calldata, native value, sponsor, chain, and operation that was allowed",[375,2686,2687],{},"Supported calldata:",[385,2689,2690,2696,2702,2708],{},[388,2691,2692,2693],{},"ERC20 ",[431,2694,2695],{},"approve(address spender, uint256 amount)",[388,2697,2698,2699],{},"CheckIn ",[431,2700,2701],{},"payToVenue(...)",[388,2703,2704,2705],{},"NFT ",[431,2706,2707],{},"mintDynamicPrice(...)",[388,2709,2704,2710],{},[431,2711,2712],{},"mintStaticPrice(...)",[666,2714,2716],{"id":2715},"complete-thirdweb-usage","Complete Thirdweb Usage",[375,2718,2719],{},[431,2720,465],{},[375,2722,2723],{},"Frontend calls this route after the thirdweb-sponsored transaction has a receipt.",[375,2725,2726,2727,2730,2731,2165,2733,2735,2736,1583,2738,1583,2740,2742],{},"For direct EOA and thirdweb EIP-7702 transactions, ",[431,2728,2729],{},"smartAccountAddress"," is not required. The backend records the operation against ",[431,2732,1427],{},[431,2734,703],{}," and uses the execution account from ",[431,2737,2729],{},[431,2739,2146],{},[431,2741,2143],{},", or the actor\u002Fowner address.",[375,2744,2745,2746,1583,2748,1583,2750,2753,2754,2756,2757,2760,2761,2764,2765,2768],{},"Direct EOA completion verifies that the RPC transaction ",[431,2747,2143],{},[431,2749,2157],{},[431,2751,2752],{},"input",", and ",[431,2755,2175],{}," match the completed operation. Thirdweb EIP-7702 sponsored completion verifies the transaction type 4 \u002F ",[431,2758,2759],{},"authorizationList"," proof, requires ",[431,2762,2763],{},"tx.to"," to be the delegated EOA execution account, decodes the wrapped ",[431,2766,2767],{},"executeWithSig"," call, and verifies the inner target, calldata, and native value.",[551,2770,2772],{"className":680,"code":2771,"language":682,"meta":366,"style":366},"{\n  \"clientId\": \"thirdweb-client-id\",\n  \"chainId\": 137,\n  \"txHash\": \"0x...\",\n  \"targetAddress\": \"0xCollectionContract\",\n  \"callData\": \"0x...\",\n  \"nativeValueWei\": \"0\",\n  \"operationType\": \"mint\",\n  \"contextType\": \"nft\",\n  \"collectionId\": \"collection-id\",\n  \"actorAddress\": \"0xUserWallet\"\n}\n",[431,2773,2774,2778,2796,2810,2828,2847,2865,2883,2901,2920,2938,2954],{"__ignoreMap":366},[686,2775,2776],{"class":688,"line":689},[686,2777,693],{"class":692},[686,2779,2780,2782,2784,2786,2788,2790,2792,2794],{"class":688,"line":696},[686,2781,699],{"class":692},[686,2783,2192],{"class":702},[686,2785,706],{"class":692},[686,2787,709],{"class":692},[686,2789,712],{"class":692},[686,2791,2201],{"class":715},[686,2793,706],{"class":692},[686,2795,721],{"class":692},[686,2797,2798,2800,2802,2804,2806,2808],{"class":688,"line":724},[686,2799,699],{"class":692},[686,2801,750],{"class":702},[686,2803,706],{"class":692},[686,2805,709],{"class":692},[686,2807,758],{"class":757},[686,2809,721],{"class":692},[686,2811,2812,2814,2816,2818,2820,2822,2824,2826],{"class":688,"line":745},[686,2813,699],{"class":692},[686,2815,471],{"class":702},[686,2817,706],{"class":692},[686,2819,709],{"class":692},[686,2821,712],{"class":692},[686,2823,957],{"class":715},[686,2825,706],{"class":692},[686,2827,721],{"class":692},[686,2829,2830,2832,2834,2836,2838,2840,2843,2845],{"class":688,"line":763},[686,2831,699],{"class":692},[686,2833,2154],{"class":702},[686,2835,706],{"class":692},[686,2837,709],{"class":692},[686,2839,712],{"class":692},[686,2841,2842],{"class":715},"0xCollectionContract",[686,2844,706],{"class":692},[686,2846,721],{"class":692},[686,2848,2849,2851,2853,2855,2857,2859,2861,2863],{"class":688,"line":778},[686,2850,699],{"class":692},[686,2852,2164],{"class":702},[686,2854,706],{"class":692},[686,2856,709],{"class":692},[686,2858,712],{"class":692},[686,2860,957],{"class":715},[686,2862,706],{"class":692},[686,2864,721],{"class":692},[686,2866,2867,2869,2871,2873,2875,2877,2879,2881],{"class":688,"line":1274},[686,2868,699],{"class":692},[686,2870,2172],{"class":702},[686,2872,706],{"class":692},[686,2874,709],{"class":692},[686,2876,712],{"class":692},[686,2878,2290],{"class":715},[686,2880,706],{"class":692},[686,2882,721],{"class":692},[686,2884,2885,2887,2889,2891,2893,2895,2897,2899],{"class":688,"line":1294},[686,2886,699],{"class":692},[686,2888,1202],{"class":702},[686,2890,706],{"class":692},[686,2892,709],{"class":692},[686,2894,712],{"class":692},[686,2896,580],{"class":715},[686,2898,706],{"class":692},[686,2900,721],{"class":692},[686,2902,2903,2905,2907,2909,2911,2913,2916,2918],{"class":688,"line":1315},[686,2904,699],{"class":692},[686,2906,1673],{"class":702},[686,2908,706],{"class":692},[686,2910,709],{"class":692},[686,2912,712],{"class":692},[686,2914,2915],{"class":715},"nft",[686,2917,706],{"class":692},[686,2919,721],{"class":692},[686,2921,2922,2924,2926,2928,2930,2932,2934,2936],{"class":688,"line":1334},[686,2923,699],{"class":692},[686,2925,1407],{"class":702},[686,2927,706],{"class":692},[686,2929,709],{"class":692},[686,2931,712],{"class":692},[686,2933,1416],{"class":715},[686,2935,706],{"class":692},[686,2937,721],{"class":692},[686,2939,2940,2942,2944,2946,2948,2950,2952],{"class":688,"line":1757},[686,2941,699],{"class":692},[686,2943,1427],{"class":702},[686,2945,706],{"class":692},[686,2947,709],{"class":692},[686,2949,712],{"class":692},[686,2951,1287],{"class":715},[686,2953,1113],{"class":692},[686,2955,2956],{"class":688,"line":1776},[686,2957,781],{"class":692},[375,2959,1170,2960,709],{},[431,2961,575],{},[551,2963,2965],{"className":680,"code":2964,"language":682,"meta":366,"style":366},"{\n  \"clientId\": \"thirdweb-client-id\",\n  \"chainId\": 137,\n  \"txHash\": \"0x...\",\n  \"targetAddress\": \"0xTokenAddress\",\n  \"callData\": \"0x...\",\n  \"nativeValueWei\": \"0\",\n  \"operationType\": \"approve\",\n  \"contextType\": \"checkin\",\n  \"venueAddress\": \"0xVenueAddress\",\n  \"ownerAddress\": \"0xUserWallet\",\n  \"tokenAddress\": \"0xTokenAddress\",\n  \"spenderAddress\": \"0xSpenderAddress\",\n  \"approveAmountWei\": \"50000000\"\n}\n",[431,2966,2967,2971,2989,3003,3021,3039,3057,3075,3093,3111,3129,3147,3165,3183,3199],{"__ignoreMap":366},[686,2968,2969],{"class":688,"line":689},[686,2970,693],{"class":692},[686,2972,2973,2975,2977,2979,2981,2983,2985,2987],{"class":688,"line":696},[686,2974,699],{"class":692},[686,2976,2192],{"class":702},[686,2978,706],{"class":692},[686,2980,709],{"class":692},[686,2982,712],{"class":692},[686,2984,2201],{"class":715},[686,2986,706],{"class":692},[686,2988,721],{"class":692},[686,2990,2991,2993,2995,2997,2999,3001],{"class":688,"line":724},[686,2992,699],{"class":692},[686,2994,750],{"class":702},[686,2996,706],{"class":692},[686,2998,709],{"class":692},[686,3000,758],{"class":757},[686,3002,721],{"class":692},[686,3004,3005,3007,3009,3011,3013,3015,3017,3019],{"class":688,"line":745},[686,3006,699],{"class":692},[686,3008,471],{"class":702},[686,3010,706],{"class":692},[686,3012,709],{"class":692},[686,3014,712],{"class":692},[686,3016,957],{"class":715},[686,3018,706],{"class":692},[686,3020,721],{"class":692},[686,3022,3023,3025,3027,3029,3031,3033,3035,3037],{"class":688,"line":763},[686,3024,699],{"class":692},[686,3026,2154],{"class":702},[686,3028,706],{"class":692},[686,3030,709],{"class":692},[686,3032,712],{"class":692},[686,3034,1308],{"class":715},[686,3036,706],{"class":692},[686,3038,721],{"class":692},[686,3040,3041,3043,3045,3047,3049,3051,3053,3055],{"class":688,"line":778},[686,3042,699],{"class":692},[686,3044,2164],{"class":702},[686,3046,706],{"class":692},[686,3048,709],{"class":692},[686,3050,712],{"class":692},[686,3052,957],{"class":715},[686,3054,706],{"class":692},[686,3056,721],{"class":692},[686,3058,3059,3061,3063,3065,3067,3069,3071,3073],{"class":688,"line":1274},[686,3060,699],{"class":692},[686,3062,2172],{"class":702},[686,3064,706],{"class":692},[686,3066,709],{"class":692},[686,3068,712],{"class":692},[686,3070,2290],{"class":715},[686,3072,706],{"class":692},[686,3074,721],{"class":692},[686,3076,3077,3079,3081,3083,3085,3087,3089,3091],{"class":688,"line":1294},[686,3078,699],{"class":692},[686,3080,1202],{"class":702},[686,3082,706],{"class":692},[686,3084,709],{"class":692},[686,3086,712],{"class":692},[686,3088,575],{"class":715},[686,3090,706],{"class":692},[686,3092,721],{"class":692},[686,3094,3095,3097,3099,3101,3103,3105,3107,3109],{"class":688,"line":1315},[686,3096,699],{"class":692},[686,3098,1673],{"class":702},[686,3100,706],{"class":692},[686,3102,709],{"class":692},[686,3104,712],{"class":692},[686,3106,1682],{"class":715},[686,3108,706],{"class":692},[686,3110,721],{"class":692},[686,3112,3113,3115,3117,3119,3121,3123,3125,3127],{"class":688,"line":1334},[686,3114,699],{"class":692},[686,3116,729],{"class":702},[686,3118,706],{"class":692},[686,3120,709],{"class":692},[686,3122,712],{"class":692},[686,3124,738],{"class":715},[686,3126,706],{"class":692},[686,3128,721],{"class":692},[686,3130,3131,3133,3135,3137,3139,3141,3143,3145],{"class":688,"line":1757},[686,3132,699],{"class":692},[686,3134,703],{"class":702},[686,3136,706],{"class":692},[686,3138,709],{"class":692},[686,3140,712],{"class":692},[686,3142,1287],{"class":715},[686,3144,706],{"class":692},[686,3146,721],{"class":692},[686,3148,3149,3151,3153,3155,3157,3159,3161,3163],{"class":688,"line":1776},[686,3150,699],{"class":692},[686,3152,1299],{"class":702},[686,3154,706],{"class":692},[686,3156,709],{"class":692},[686,3158,712],{"class":692},[686,3160,1308],{"class":715},[686,3162,706],{"class":692},[686,3164,721],{"class":692},[686,3166,3167,3169,3171,3173,3175,3177,3179,3181],{"class":688,"line":1796},[686,3168,699],{"class":692},[686,3170,1320],{"class":702},[686,3172,706],{"class":692},[686,3174,709],{"class":692},[686,3176,712],{"class":692},[686,3178,1329],{"class":715},[686,3180,706],{"class":692},[686,3182,721],{"class":692},[686,3184,3185,3187,3189,3191,3193,3195,3197],{"class":688,"line":1810},[686,3186,699],{"class":692},[686,3188,1240],{"class":702},[686,3190,706],{"class":692},[686,3192,709],{"class":692},[686,3194,712],{"class":692},[686,3196,1249],{"class":715},[686,3198,1113],{"class":692},[686,3200,3201],{"class":688,"line":1830},[686,3202,781],{"class":692},[375,3204,3205],{},"For ERC-4337 account-abstraction transactions, include the EntryPoint proof fields:",[551,3207,3209],{"className":680,"code":3208,"language":682,"meta":366,"style":366},"{\n  \"entryPointAddress\": \"0xEntryPointAddress\",\n  \"userOpHash\": \"0xOptionalUserOperationHash\"\n}\n",[431,3210,3211,3215,3235,3253],{"__ignoreMap":366},[686,3212,3213],{"class":688,"line":689},[686,3214,693],{"class":692},[686,3216,3217,3219,3222,3224,3226,3228,3231,3233],{"class":688,"line":696},[686,3218,699],{"class":692},[686,3220,3221],{"class":702},"entryPointAddress",[686,3223,706],{"class":692},[686,3225,709],{"class":692},[686,3227,712],{"class":692},[686,3229,3230],{"class":715},"0xEntryPointAddress",[686,3232,706],{"class":692},[686,3234,721],{"class":692},[686,3236,3237,3239,3242,3244,3246,3248,3251],{"class":688,"line":724},[686,3238,699],{"class":692},[686,3240,3241],{"class":702},"userOpHash",[686,3243,706],{"class":692},[686,3245,709],{"class":692},[686,3247,712],{"class":692},[686,3249,3250],{"class":715},"0xOptionalUserOperationHash",[686,3252,1113],{"class":692},[686,3254,3255],{"class":688,"line":745},[686,3256,781],{"class":692},[375,3258,3259],{},"Security rules:",[385,3261,3262,3265,3270,3274,3277,3280,3287,3293,3303,3310,3313,3319,3331,3343,3351,3369],{},[388,3263,3264],{},"requires ordinary Belong user auth",[388,3266,3267,3268],{},"frontend does not send ",[431,3269,1050],{},[388,3271,3267,3272],{},[431,3273,1101],{},[388,3275,3276],{},"backend resolves the sponsor from the venue or collection",[388,3278,3279],{},"backend reads the transaction receipt from RPC",[388,3281,3282,3283,3286],{},"backend computes actual gas as ",[431,3284,3285],{},"gasUsed * effectiveGasPrice"," for direct and EIP-7702 transactions",[388,3288,3289,3290],{},"for ERC-4337 transactions, backend uses ",[431,3291,3292],{},"UserOperationEvent.actualGasCost",[388,3294,3295,3296,3299,3300,3302],{},"backend records ",[431,3297,3298],{},"confirmed"," for successful receipts and ",[431,3301,519],{}," for reverted receipts",[388,3304,3305,3306,2165,3308],{},"backend verifies authenticated ownership of ",[431,3307,1427],{},[431,3309,703],{},[388,3311,3312],{},"backend requires a matching active reservation",[388,3314,3315,3316,3318],{},"backend requires the matching verifier approval marker for the same ",[431,3317,2192],{},", EOA actor\u002Fowner, execution account, target, calldata, native value, sponsor, chain, and operation",[388,3320,3321,3322,1583,3324,1583,3326,2753,3328,3330],{},"for direct transactions, backend also checks that the RPC transaction ",[431,3323,2143],{},[431,3325,2157],{},[431,3327,2752],{},[431,3329,2175],{}," match the completed operation",[388,3332,3333,3334,3336,3337,3339,3340,3342],{},"for EIP-7702 transactions, backend requires type 4 \u002F ",[431,3335,2759],{},", checks ",[431,3338,2763],{}," against the execution account, decodes thirdweb ",[431,3341,2767],{},", and verifies the single inner call target, calldata, and native value",[388,3344,3345,3346,3348,3349],{},"for ERC-4337 account-abstraction transactions, frontend must also send ",[431,3347,3221],{}," and may send ",[431,3350,3241],{},[388,3352,3353,3354,3357,3358,3361,3362,3365,3366],{},"for ERC-4337 transactions, backend decodes ",[431,3355,3356],{},"EntryPoint.handleOps",", verifies the inner smart-account ",[431,3359,3360],{},"execute","\u002F",[431,3363,3364],{},"executeBatch"," target, value, and calldata, and reads actual gas\u002Fstatus from ",[431,3367,3368],{},"UserOperationEvent",[388,3370,3371,3372,3374],{},"if ",[431,3373,471],{}," is already recorded, the route returns idempotent success only after ownership, sponsor, chain, context, operation, and metadata match",[375,3376,3377],{},"If the transaction was not broadcast or no receipt exists, usage is not recorded.",[666,3379,3381],{"id":3380},"cancel-thirdweb-reservation","Cancel Thirdweb Reservation",[375,3383,3384],{},[431,3385,475],{},[375,3387,3388,3389,3391,3392,654],{},"Frontend calls this route only when thirdweb rejects a sponsored transaction before broadcast, for example because a thirdweb sponsor policy denies the target contract. The request does not include ",[431,3390,471],{},", receipt data, or ",[431,3393,1050],{},[375,3395,1170,3396,709],{},[431,3397,575],{},[551,3399,3401],{"className":680,"code":3400,"language":682,"meta":366,"style":366},"{\n  \"chainId\": 137,\n  \"contextType\": \"checkin\",\n  \"operationType\": \"approve\",\n  \"amountWei\": \"25000000000000000\",\n  \"approveAmountWei\": \"50000000\",\n  \"venueAddress\": \"0xVenueAddress\",\n  \"ownerAddress\": \"0xUserWallet\",\n  \"tokenAddress\": \"0xTokenAddress\",\n  \"spenderAddress\": \"0xSpenderAddress\"\n}\n",[431,3402,3403,3407,3421,3439,3457,3475,3493,3511,3529,3547,3563],{"__ignoreMap":366},[686,3404,3405],{"class":688,"line":689},[686,3406,693],{"class":692},[686,3408,3409,3411,3413,3415,3417,3419],{"class":688,"line":696},[686,3410,699],{"class":692},[686,3412,750],{"class":702},[686,3414,706],{"class":692},[686,3416,709],{"class":692},[686,3418,758],{"class":757},[686,3420,721],{"class":692},[686,3422,3423,3425,3427,3429,3431,3433,3435,3437],{"class":688,"line":724},[686,3424,699],{"class":692},[686,3426,1673],{"class":702},[686,3428,706],{"class":692},[686,3430,709],{"class":692},[686,3432,712],{"class":692},[686,3434,1682],{"class":715},[686,3436,706],{"class":692},[686,3438,721],{"class":692},[686,3440,3441,3443,3445,3447,3449,3451,3453,3455],{"class":688,"line":745},[686,3442,699],{"class":692},[686,3444,1202],{"class":702},[686,3446,706],{"class":692},[686,3448,709],{"class":692},[686,3450,712],{"class":692},[686,3452,575],{"class":715},[686,3454,706],{"class":692},[686,3456,721],{"class":692},[686,3458,3459,3461,3463,3465,3467,3469,3471,3473],{"class":688,"line":763},[686,3460,699],{"class":692},[686,3462,1101],{"class":702},[686,3464,706],{"class":692},[686,3466,709],{"class":692},[686,3468,712],{"class":692},[686,3470,1229],{"class":715},[686,3472,706],{"class":692},[686,3474,721],{"class":692},[686,3476,3477,3479,3481,3483,3485,3487,3489,3491],{"class":688,"line":778},[686,3478,699],{"class":692},[686,3480,1240],{"class":702},[686,3482,706],{"class":692},[686,3484,709],{"class":692},[686,3486,712],{"class":692},[686,3488,1249],{"class":715},[686,3490,706],{"class":692},[686,3492,721],{"class":692},[686,3494,3495,3497,3499,3501,3503,3505,3507,3509],{"class":688,"line":1274},[686,3496,699],{"class":692},[686,3498,729],{"class":702},[686,3500,706],{"class":692},[686,3502,709],{"class":692},[686,3504,712],{"class":692},[686,3506,738],{"class":715},[686,3508,706],{"class":692},[686,3510,721],{"class":692},[686,3512,3513,3515,3517,3519,3521,3523,3525,3527],{"class":688,"line":1294},[686,3514,699],{"class":692},[686,3516,703],{"class":702},[686,3518,706],{"class":692},[686,3520,709],{"class":692},[686,3522,712],{"class":692},[686,3524,1287],{"class":715},[686,3526,706],{"class":692},[686,3528,721],{"class":692},[686,3530,3531,3533,3535,3537,3539,3541,3543,3545],{"class":688,"line":1315},[686,3532,699],{"class":692},[686,3534,1299],{"class":702},[686,3536,706],{"class":692},[686,3538,709],{"class":692},[686,3540,712],{"class":692},[686,3542,1308],{"class":715},[686,3544,706],{"class":692},[686,3546,721],{"class":692},[686,3548,3549,3551,3553,3555,3557,3559,3561],{"class":688,"line":1334},[686,3550,699],{"class":692},[686,3552,1320],{"class":702},[686,3554,706],{"class":692},[686,3556,709],{"class":692},[686,3558,712],{"class":692},[686,3560,1329],{"class":715},[686,3562,1113],{"class":692},[686,3564,3565],{"class":688,"line":1757},[686,3566,781],{"class":692},[375,3568,1170,3569,709],{},[431,3570,580],{},[551,3572,3574],{"className":680,"code":3573,"language":682,"meta":366,"style":366},"{\n  \"chainId\": 137,\n  \"contextType\": \"nft\",\n  \"operationType\": \"mint\",\n  \"amountWei\": \"6000000000000000\",\n  \"collectionId\": \"collection-id\",\n  \"actorAddress\": \"0xUserWallet\"\n}\n",[431,3575,3576,3580,3594,3612,3630,3648,3666,3682],{"__ignoreMap":366},[686,3577,3578],{"class":688,"line":689},[686,3579,693],{"class":692},[686,3581,3582,3584,3586,3588,3590,3592],{"class":688,"line":696},[686,3583,699],{"class":692},[686,3585,750],{"class":702},[686,3587,706],{"class":692},[686,3589,709],{"class":692},[686,3591,758],{"class":757},[686,3593,721],{"class":692},[686,3595,3596,3598,3600,3602,3604,3606,3608,3610],{"class":688,"line":724},[686,3597,699],{"class":692},[686,3599,1673],{"class":702},[686,3601,706],{"class":692},[686,3603,709],{"class":692},[686,3605,712],{"class":692},[686,3607,2915],{"class":715},[686,3609,706],{"class":692},[686,3611,721],{"class":692},[686,3613,3614,3616,3618,3620,3622,3624,3626,3628],{"class":688,"line":745},[686,3615,699],{"class":692},[686,3617,1202],{"class":702},[686,3619,706],{"class":692},[686,3621,709],{"class":692},[686,3623,712],{"class":692},[686,3625,580],{"class":715},[686,3627,706],{"class":692},[686,3629,721],{"class":692},[686,3631,3632,3634,3636,3638,3640,3642,3644,3646],{"class":688,"line":763},[686,3633,699],{"class":692},[686,3635,1101],{"class":702},[686,3637,706],{"class":692},[686,3639,709],{"class":692},[686,3641,712],{"class":692},[686,3643,1396],{"class":715},[686,3645,706],{"class":692},[686,3647,721],{"class":692},[686,3649,3650,3652,3654,3656,3658,3660,3662,3664],{"class":688,"line":778},[686,3651,699],{"class":692},[686,3653,1407],{"class":702},[686,3655,706],{"class":692},[686,3657,709],{"class":692},[686,3659,712],{"class":692},[686,3661,1416],{"class":715},[686,3663,706],{"class":692},[686,3665,721],{"class":692},[686,3667,3668,3670,3672,3674,3676,3678,3680],{"class":688,"line":1274},[686,3669,699],{"class":692},[686,3671,1427],{"class":702},[686,3673,706],{"class":692},[686,3675,709],{"class":692},[686,3677,712],{"class":692},[686,3679,1287],{"class":715},[686,3681,1113],{"class":692},[686,3683,3684],{"class":688,"line":1294},[686,3685,781],{"class":692},[375,3687,1170,3688,709],{},[431,3689,585],{},[551,3691,3693],{"className":680,"code":3692,"language":682,"meta":366,"style":366},"{\n  \"chainId\": 137,\n  \"contextType\": \"checkin\",\n  \"operationType\": \"pay_to_venue\",\n  \"amountWei\": \"2500000000000000\",\n  \"venueAddress\": \"0xVenueAddress\",\n  \"actorAddress\": \"0xUserWallet\"\n}\n",[431,3694,3695,3699,3713,3731,3749,3767,3785,3801],{"__ignoreMap":366},[686,3696,3697],{"class":688,"line":689},[686,3698,693],{"class":692},[686,3700,3701,3703,3705,3707,3709,3711],{"class":688,"line":696},[686,3702,699],{"class":692},[686,3704,750],{"class":702},[686,3706,706],{"class":692},[686,3708,709],{"class":692},[686,3710,758],{"class":757},[686,3712,721],{"class":692},[686,3714,3715,3717,3719,3721,3723,3725,3727,3729],{"class":688,"line":724},[686,3716,699],{"class":692},[686,3718,1673],{"class":702},[686,3720,706],{"class":692},[686,3722,709],{"class":692},[686,3724,712],{"class":692},[686,3726,1682],{"class":715},[686,3728,706],{"class":692},[686,3730,721],{"class":692},[686,3732,3733,3735,3737,3739,3741,3743,3745,3747],{"class":688,"line":745},[686,3734,699],{"class":692},[686,3736,1202],{"class":702},[686,3738,706],{"class":692},[686,3740,709],{"class":692},[686,3742,712],{"class":692},[686,3744,585],{"class":715},[686,3746,706],{"class":692},[686,3748,721],{"class":692},[686,3750,3751,3753,3755,3757,3759,3761,3763,3765],{"class":688,"line":763},[686,3752,699],{"class":692},[686,3754,1101],{"class":702},[686,3756,706],{"class":692},[686,3758,709],{"class":692},[686,3760,712],{"class":692},[686,3762,1501],{"class":715},[686,3764,706],{"class":692},[686,3766,721],{"class":692},[686,3768,3769,3771,3773,3775,3777,3779,3781,3783],{"class":688,"line":778},[686,3770,699],{"class":692},[686,3772,729],{"class":702},[686,3774,706],{"class":692},[686,3776,709],{"class":692},[686,3778,712],{"class":692},[686,3780,738],{"class":715},[686,3782,706],{"class":692},[686,3784,721],{"class":692},[686,3786,3787,3789,3791,3793,3795,3797,3799],{"class":688,"line":1274},[686,3788,699],{"class":692},[686,3790,1427],{"class":702},[686,3792,706],{"class":692},[686,3794,709],{"class":692},[686,3796,712],{"class":692},[686,3798,1287],{"class":715},[686,3800,1113],{"class":692},[686,3802,3803],{"class":688,"line":1294},[686,3804,781],{"class":692},[375,3806,2565],{},[551,3808,3810],{"className":680,"code":3809,"language":682,"meta":366,"style":366},"{\n  \"success\": true,\n  \"released\": true\n}\n",[431,3811,3812,3816,3828,3841],{"__ignoreMap":366},[686,3813,3814],{"class":688,"line":689},[686,3815,693],{"class":692},[686,3817,3818,3820,3822,3824,3826],{"class":688,"line":696},[686,3819,699],{"class":692},[686,3821,2050],{"class":702},[686,3823,706],{"class":692},[686,3825,709],{"class":692},[686,3827,1612],{"class":692},[686,3829,3830,3832,3835,3837,3839],{"class":688,"line":724},[686,3831,699],{"class":692},[686,3833,3834],{"class":702},"released",[686,3836,706],{"class":692},[686,3838,709],{"class":692},[686,3840,775],{"class":692},[686,3842,3843],{"class":688,"line":745},[686,3844,781],{"class":692},[375,3846,588],{},[385,3848,3849,3851,3855,3860,3865,3878,3884,3897,3905,3913,3919],{},[388,3850,3264],{},[388,3852,3267,3853],{},[431,3854,1050],{},[388,3856,3267,3857,3859],{},[431,3858,471],{}," or receipt data",[388,3861,3862,3863],{},"backend resolves the sponsor from the venue or collection using the same target resolution as ",[431,3864,614],{},[388,3866,3305,3867,3869,3870,2147,3872,3869,3874,603,3876],{},[431,3868,703],{}," for ",[431,3871,575],{},[431,3873,1427],{},[431,3875,580],{},[431,3877,585],{},[388,3879,3880,3881,3883],{},"backend releases only the active reservation matching the resolved sponsor, ",[431,3882,750],{},", operation type, and operation metadata",[388,3885,1564,3886,3888,3889,1583,3891,1583,3893,2753,3895],{},[431,3887,575],{},", the matching metadata is ",[431,3890,703],{},[431,3892,1299],{},[431,3894,1320],{},[431,3896,1240],{},[388,3898,1564,3899,3888,3901,603,3903],{},[431,3900,580],{},[431,3902,1427],{},[431,3904,1407],{},[388,3906,1564,3907,3888,3909,603,3911],{},[431,3908,585],{},[431,3910,1427],{},[431,3912,729],{},[388,3914,3915,3916],{},"if no matching reservation exists, the route is idempotent and returns ",[431,3917,3918],{},"success: true, released: false",[388,3920,3921],{},"the route never records usage",[375,3923,3924,3925,3928],{},"Do not use cancellation for failed on-chain transactions. If a transaction was broadcast or has a receipt, call ",[431,3926,3927],{},"\u002Fapi\u002Fv3\u002Fsponsorship\u002Fthirdweb\u002Fcomplete"," so the backend can record actual gas usage and release the reservation.",[666,3930,3932],{"id":3931},"record-usage","Record Usage",[375,3934,3935],{},[431,3936,486],{},[551,3938,3940],{"className":680,"code":3939,"language":682,"meta":366,"style":366},"{\n  \"sponsorAddress\": \"0x...\",\n  \"chainId\": 137,\n  \"txHash\": \"0x...\",\n  \"amountWei\": \"2500000000000000\",\n  \"status\": \"confirmed\",\n  \"contextType\": \"checkin\",\n  \"operationType\": \"pay_to_venue\",\n  \"metadata\": {\n    \"actorAddress\": \"0xUserWallet\",\n    \"venueAddress\": \"0xVenueAddress\"\n  }\n}\n",[431,3941,3942,3946,3964,3978,3996,4014,4033,4051,4069,4082,4100,4116,4120],{"__ignoreMap":366},[686,3943,3944],{"class":688,"line":689},[686,3945,693],{"class":692},[686,3947,3948,3950,3952,3954,3956,3958,3960,3962],{"class":688,"line":696},[686,3949,699],{"class":692},[686,3951,1050],{"class":702},[686,3953,706],{"class":692},[686,3955,709],{"class":692},[686,3957,712],{"class":692},[686,3959,957],{"class":715},[686,3961,706],{"class":692},[686,3963,721],{"class":692},[686,3965,3966,3968,3970,3972,3974,3976],{"class":688,"line":724},[686,3967,699],{"class":692},[686,3969,750],{"class":702},[686,3971,706],{"class":692},[686,3973,709],{"class":692},[686,3975,758],{"class":757},[686,3977,721],{"class":692},[686,3979,3980,3982,3984,3986,3988,3990,3992,3994],{"class":688,"line":745},[686,3981,699],{"class":692},[686,3983,471],{"class":702},[686,3985,706],{"class":692},[686,3987,709],{"class":692},[686,3989,712],{"class":692},[686,3991,957],{"class":715},[686,3993,706],{"class":692},[686,3995,721],{"class":692},[686,3997,3998,4000,4002,4004,4006,4008,4010,4012],{"class":688,"line":763},[686,3999,699],{"class":692},[686,4001,1101],{"class":702},[686,4003,706],{"class":692},[686,4005,709],{"class":692},[686,4007,712],{"class":692},[686,4009,1501],{"class":715},[686,4011,706],{"class":692},[686,4013,721],{"class":692},[686,4015,4016,4018,4021,4023,4025,4027,4029,4031],{"class":688,"line":778},[686,4017,699],{"class":692},[686,4019,4020],{"class":702},"status",[686,4022,706],{"class":692},[686,4024,709],{"class":692},[686,4026,712],{"class":692},[686,4028,3298],{"class":715},[686,4030,706],{"class":692},[686,4032,721],{"class":692},[686,4034,4035,4037,4039,4041,4043,4045,4047,4049],{"class":688,"line":1274},[686,4036,699],{"class":692},[686,4038,1673],{"class":702},[686,4040,706],{"class":692},[686,4042,709],{"class":692},[686,4044,712],{"class":692},[686,4046,1682],{"class":715},[686,4048,706],{"class":692},[686,4050,721],{"class":692},[686,4052,4053,4055,4057,4059,4061,4063,4065,4067],{"class":688,"line":1294},[686,4054,699],{"class":692},[686,4056,1202],{"class":702},[686,4058,706],{"class":692},[686,4060,709],{"class":692},[686,4062,712],{"class":692},[686,4064,585],{"class":715},[686,4066,706],{"class":692},[686,4068,721],{"class":692},[686,4070,4071,4073,4076,4078,4080],{"class":688,"line":1315},[686,4072,699],{"class":692},[686,4074,4075],{"class":702},"metadata",[686,4077,706],{"class":692},[686,4079,709],{"class":692},[686,4081,2394],{"class":692},[686,4083,4084,4086,4088,4090,4092,4094,4096,4098],{"class":688,"line":1334},[686,4085,2399],{"class":692},[686,4087,1427],{"class":2402},[686,4089,706],{"class":692},[686,4091,709],{"class":692},[686,4093,712],{"class":692},[686,4095,1287],{"class":715},[686,4097,706],{"class":692},[686,4099,721],{"class":692},[686,4101,4102,4104,4106,4108,4110,4112,4114],{"class":688,"line":1757},[686,4103,2399],{"class":692},[686,4105,729],{"class":2402},[686,4107,706],{"class":692},[686,4109,709],{"class":692},[686,4111,712],{"class":692},[686,4113,738],{"class":715},[686,4115,1113],{"class":692},[686,4117,4118],{"class":688,"line":1776},[686,4119,2558],{"class":692},[686,4121,4122],{"class":688,"line":1796},[686,4123,781],{"class":692},[375,4125,4126],{},"Authentication:",[385,4128,4129,4135,4141],{},[388,4130,4131,4132],{},"requires a Belong API key with ",[431,4133,4134],{},"sponsorship:write",[388,4136,4137,4138],{},"permission shape: ",[431,4139,4140],{},"{ \"sponsorship\": [\"write\"] }",[388,4142,4143],{},"API key must be kept server-side only and rotated if exposed",[375,4145,4146],{},"Notes:",[385,4148,4149,4152,4155,4161,4166,4169,4178,4184,4189,4192],{},[388,4150,4151],{},"this is a trusted server-only completion route",[388,4153,4154],{},"use it after the external sponsored transaction succeeds or fails",[388,4156,4157,4158,4160],{},"browsers should use ",[431,4159,3927],{}," for thirdweb-sponsored flows",[388,4162,4163,4165],{},[431,4164,1050],{}," must be an EVM address",[388,4167,4168],{},"endpoint is rate-limited before API-key verification by client fingerprint and after verification by authenticated API-key session",[388,4170,1564,4171,1583,4173,2753,4175,4177],{},[431,4172,575],{},[431,4174,580],{},[431,4176,585],{},", metadata is required so reservation locks can be released correctly",[388,4179,4180,4181,4183],{},"for reserved operations, ",[431,4182,1101],{}," must be less than or equal to the active reservation amount",[388,4185,4186,4188],{},[431,4187,519],{}," usage counts as spent and should only be recorded after a transaction was broadcast",[388,4190,4191],{},"usage is rejected if the sponsor balance is no longer sufficient after accounting for active reservations",[388,4193,542,4194,4196,4197,4200],{},[431,4195,471],{},"; retries may advance status from ",[431,4198,4199],{},"recorded",", but cannot change amount, context, operation, sponsor, chain, or metadata",[371,4202,4204],{"id":4203},"end-to-end-flow","End-to-End Flow",[443,4206,4207,4213,4216,4219,4224,4236,4242,4245],{},[388,4208,4209,4210,4212],{},"Owner enables ",[431,4211,660],{}," on a venue or collection.",[388,4214,4215],{},"Sponsor updates allowed operations if needed.",[388,4217,4218],{},"Sponsor tops up the shared platform wallet.",[388,4220,4221,4222,654],{},"Client calls ",[431,4223,1034],{},[388,4225,4226,4227,1583,4229,2147,4231,4233,4234,654],{},"Before ",[431,4228,575],{},[431,4230,580],{},[431,4232,585],{},", client calls ",[431,4235,450],{},[388,4237,4238,4239,4241],{},"Thirdweb calls ",[431,4240,459],{}," before sponsoring gas.",[388,4243,4244],{},"External wallet or executor signs and broadcasts only the checked transaction.",[388,4246,4247,4248,4250],{},"Frontend calls ",[431,4249,465],{}," after the transaction has a receipt, passing the same target, calldata, and native value that thirdweb sent to the verifier.",[375,4252,4253,4254,654],{},"For non-thirdweb server integrations, step 8 can be replaced by a trusted backend call to ",[431,4255,486],{},[371,4257,4259],{"id":4258},"notes-on-privacy-and-auth","Notes on Privacy and Auth",[385,4261,4262,4271,4277,4283,4289,4294],{},[388,4263,4264,603,4267,4270],{},[431,4265,4266],{},"balance",[431,4268,4269],{},"usage"," are owner-only",[388,4272,4273,4276],{},[431,4274,4275],{},"check"," is actor-owned, not public",[388,4278,4279,4282],{},[431,4280,4281],{},"usage\u002Frecord"," is not a browser route",[388,4284,4285,4286],{},"thirdweb verifier is unauthenticated but protected by ",[431,4287,4288],{},"x-belong-thirdweb-verifier-secret",[388,4290,4291,4293],{},[431,4292,4281],{}," is a server-only integration route; call it only from a trusted executor\u002Fintegration",[388,4295,4296],{},"sponsorship is tracked in Belong API, not inferred from shared wallet balances",[4298,4299,4300],"style",{},"html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}",{"title":366,"searchDepth":696,"depth":696,"links":4302},[4303,4304,4305,4306,4309,4323,4324],{"id":373,"depth":696,"text":19},{"id":493,"depth":696,"text":494},{"id":564,"depth":696,"text":565},{"id":618,"depth":696,"text":619,"children":4307},[4308],{"id":668,"depth":724,"text":669},{"id":829,"depth":696,"text":830,"children":4310},[4311,4312,4313,4314,4315,4316,4317,4318,4319,4320,4321,4322],{"id":833,"depth":724,"text":834},{"id":867,"depth":724,"text":868},{"id":883,"depth":724,"text":884},{"id":899,"depth":724,"text":900},{"id":926,"depth":724,"text":927},{"id":1028,"depth":724,"text":1029},{"id":1162,"depth":724,"text":1163},{"id":1944,"depth":724,"text":1945},{"id":2089,"depth":724,"text":2090},{"id":2715,"depth":724,"text":2716},{"id":3380,"depth":724,"text":3381},{"id":3931,"depth":724,"text":3932},{"id":4203,"depth":696,"text":4204},{"id":4258,"depth":696,"text":4259},"End-to-end sponsorship ledger, eligibility checks, and usage recording for sponsored EVM flows in Belong API.","md",null,{},{"title":43,"icon":85},{"title":356,"description":4325},"RssNRhhP4pdxmqZ2-ZCQdRDI-PXZAw_I3RGJt386XcA",[4333,4335],{"title":287,"path":288,"stem":289,"description":4334,"icon":290,"children":-1},"End-to-end NFT minting on EVM chains using MCP tools.",{"title":295,"path":296,"stem":297,"description":4336,"icon":290,"children":-1},"End-to-end staking operations on EVM chains for LONG tokens, executed directly from the user's wallet.",1795861629183]