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