[{"data":1,"prerenderedAt":1377},["ShallowReactive",2],{"navigation_docs":3,"-guides-crypto-staking":315,"-guides-crypto-staking-surround":1372},[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":1365,"extension":1366,"links":1367,"meta":1368,"navigation":1369,"path":57,"seo":1370,"stem":58,"__hash__":1371},"docs\u002F2.guides\u002F1.crypto\u002Fstaking.md","Staking Guide",{"type":319,"value":320,"toc":1349},"minimark",[321,325,329,332,336,361,363,367,383,385,389,394,572,574,578,702,704,708,837,839,843,970,972,976,1103,1105,1109,1236,1238,1242,1245,1280,1284,1343,1345],[322,323,92],"h2",{"id":324},"overview",[326,327,328],"p",{},"This guide provides frontend examples for performing staking operations with LONG tokens on EVM-compatible chains directly from the user's wallet.\nIt covers minting, depositing, withdrawing, redeeming, and emergency operations.",[330,331],"hr",{},[322,333,335],{"id":334},"important-note","Important Note",[326,337,338,339,343,344,347,348,352,353,356,357,360],{},"Throughout the examples below, ",[340,341,342],"code",{},"parseEther(\"\u003Camount>\")"," is used to convert token amounts into their on-chain ",[340,345,346],{},"uint256"," representation.\nAlthough the function name refers to “Ether”, ",[349,350,351],"strong",{},"it represents LONG tokens, not ETH",". For example, ",[340,354,355],{},"parseEther(\"0.5\")"," corresponds to ",[349,358,359],{},"0.5 LONG tokens",".",[330,362],{},[322,364,366],{"id":365},"process-flow","Process Flow",[368,369,370,373],"mermaid",{},[326,371,372],{},"flowchart TD;",[374,375,380],"pre",{"className":376,"code":378,"language":379},[377],"language-text","A[Start: User Connect] --> B[Staking Mint]\nB --> C[Staking Deposit]\nC --> D{Withdraw or Redeem?}\nD --> E[Staking Withdraw]\nD --> F[Staking Redeem]\nE --> G[Emergency Functions]\nF --> G\nG --> H[End: Tokens Managed]\n\nstyle A fill:#e1f5fe\nstyle H fill:#c8e6c9\nstyle G fill:#fff3e0\n","text",[340,381,378],{"__ignoreMap":382},"",[330,384],{},[322,386,388],{"id":387},"usage-examples","Usage Examples",[390,391,393],"h3",{"id":392},"staking-mint","Staking Mint",[374,395,399],{"className":396,"code":397,"language":398,"meta":382,"style":382},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u002F*\n * mint(uint256 shares, address user)\n * The user mints sLONG shares by depositing LONG.\n * Note: parseEther(\"0.5\") means 0.5 LONG tokens (not ETH).\n *\u002F\nasync function stakingMint() {\n  \u002F\u002F Approve LONG token before mint\n  const transaction = prepareContractCall({\n    contract,\n    method: \"mint\",\n    params: [parseEther(\"0.5\"), \"0xUserAddress\"],\n  });\n}\n","ts",[340,400,401,410,416,422,428,434,455,461,484,493,514,555,566],{"__ignoreMap":382},[402,403,406],"span",{"class":404,"line":405},"line",1,[402,407,409],{"class":408},"sHwdD","\u002F*\n",[402,411,413],{"class":404,"line":412},2,[402,414,415],{"class":408}," * mint(uint256 shares, address user)\n",[402,417,419],{"class":404,"line":418},3,[402,420,421],{"class":408}," * The user mints sLONG shares by depositing LONG.\n",[402,423,425],{"class":404,"line":424},4,[402,426,427],{"class":408}," * Note: parseEther(\"0.5\") means 0.5 LONG tokens (not ETH).\n",[402,429,431],{"class":404,"line":430},5,[402,432,433],{"class":408}," *\u002F\n",[402,435,437,441,444,448,452],{"class":404,"line":436},6,[402,438,440],{"class":439},"spNyl","async",[402,442,443],{"class":439}," function",[402,445,447],{"class":446},"s2Zo4"," stakingMint",[402,449,451],{"class":450},"sMK4o","()",[402,453,454],{"class":450}," {\n",[402,456,458],{"class":404,"line":457},7,[402,459,460],{"class":408},"  \u002F\u002F Approve LONG token before mint\n",[402,462,464,467,471,474,477,481],{"class":404,"line":463},8,[402,465,466],{"class":439},"  const",[402,468,470],{"class":469},"sTEyZ"," transaction",[402,472,473],{"class":450}," =",[402,475,476],{"class":446}," prepareContractCall",[402,478,480],{"class":479},"swJcz","(",[402,482,483],{"class":450},"{\n",[402,485,487,490],{"class":404,"line":486},9,[402,488,489],{"class":469},"    contract",[402,491,492],{"class":450},",\n",[402,494,496,499,502,505,509,512],{"class":404,"line":495},10,[402,497,498],{"class":479},"    method",[402,500,501],{"class":450},":",[402,503,504],{"class":450}," \"",[402,506,508],{"class":507},"sfazB","mint",[402,510,511],{"class":450},"\"",[402,513,492],{"class":450},[402,515,517,520,522,525,528,530,532,535,537,540,543,545,548,550,553],{"class":404,"line":516},11,[402,518,519],{"class":479},"    params",[402,521,501],{"class":450},[402,523,524],{"class":479}," [",[402,526,527],{"class":446},"parseEther",[402,529,480],{"class":479},[402,531,511],{"class":450},[402,533,534],{"class":507},"0.5",[402,536,511],{"class":450},[402,538,539],{"class":479},")",[402,541,542],{"class":450},",",[402,544,504],{"class":450},[402,546,547],{"class":507},"0xUserAddress",[402,549,511],{"class":450},[402,551,552],{"class":479},"]",[402,554,492],{"class":450},[402,556,558,561,563],{"class":404,"line":557},12,[402,559,560],{"class":450},"  }",[402,562,539],{"class":479},[402,564,565],{"class":450},";\n",[402,567,569],{"class":404,"line":568},13,[402,570,571],{"class":450},"}\n",[330,573],{},[390,575,577],{"id":576},"staking-deposit","Staking Deposit",[374,579,581],{"className":396,"code":580,"language":398,"meta":382,"style":382},"\u002F*\n * deposit(uint256 assets, address user)\n * The user deposits LONG tokens and receives sLONG.\n * Note: parseEther(\"0.5\") means 0.5 LONG tokens (not ETH).\n *\u002F\nasync function stakingDeposit() {\n  \u002F\u002F Approve LONG token before deposit\n  const transaction = prepareContractCall({\n    contract,\n    method: \"deposit\",\n    params: [parseEther(\"0.5\"), \"0xUserAddress\"],\n  });\n}\n",[340,582,583,587,592,597,601,605,618,623,637,643,658,690,698],{"__ignoreMap":382},[402,584,585],{"class":404,"line":405},[402,586,409],{"class":408},[402,588,589],{"class":404,"line":412},[402,590,591],{"class":408}," * deposit(uint256 assets, address user)\n",[402,593,594],{"class":404,"line":418},[402,595,596],{"class":408}," * The user deposits LONG tokens and receives sLONG.\n",[402,598,599],{"class":404,"line":424},[402,600,427],{"class":408},[402,602,603],{"class":404,"line":430},[402,604,433],{"class":408},[402,606,607,609,611,614,616],{"class":404,"line":436},[402,608,440],{"class":439},[402,610,443],{"class":439},[402,612,613],{"class":446}," stakingDeposit",[402,615,451],{"class":450},[402,617,454],{"class":450},[402,619,620],{"class":404,"line":457},[402,621,622],{"class":408},"  \u002F\u002F Approve LONG token before deposit\n",[402,624,625,627,629,631,633,635],{"class":404,"line":463},[402,626,466],{"class":439},[402,628,470],{"class":469},[402,630,473],{"class":450},[402,632,476],{"class":446},[402,634,480],{"class":479},[402,636,483],{"class":450},[402,638,639,641],{"class":404,"line":486},[402,640,489],{"class":469},[402,642,492],{"class":450},[402,644,645,647,649,651,654,656],{"class":404,"line":495},[402,646,498],{"class":479},[402,648,501],{"class":450},[402,650,504],{"class":450},[402,652,653],{"class":507},"deposit",[402,655,511],{"class":450},[402,657,492],{"class":450},[402,659,660,662,664,666,668,670,672,674,676,678,680,682,684,686,688],{"class":404,"line":516},[402,661,519],{"class":479},[402,663,501],{"class":450},[402,665,524],{"class":479},[402,667,527],{"class":446},[402,669,480],{"class":479},[402,671,511],{"class":450},[402,673,534],{"class":507},[402,675,511],{"class":450},[402,677,539],{"class":479},[402,679,542],{"class":450},[402,681,504],{"class":450},[402,683,547],{"class":507},[402,685,511],{"class":450},[402,687,552],{"class":479},[402,689,492],{"class":450},[402,691,692,694,696],{"class":404,"line":557},[402,693,560],{"class":450},[402,695,539],{"class":479},[402,697,565],{"class":450},[402,699,700],{"class":404,"line":568},[402,701,571],{"class":450},[330,703],{},[390,705,707],{"id":706},"staking-withdraw","Staking Withdraw",[374,709,711],{"className":396,"code":710,"language":398,"meta":382,"style":382},"\u002F*\n * withdraw(uint256 assets, address receiver, address owner)\n * The user withdraws LONG by burning sLONG.\n * Note: parseEther(\"0.1\") means 0.1 LONG tokens (not ETH).\n *\u002F\nasync function stakingWithdraw() {\n  const transaction = prepareContractCall({\n    contract,\n    method: \"withdraw\",\n    params: [parseEther(\"0.1\"), \"0xUserAddress\", \"0xUserAddress\"],\n  });\n}\n",[340,712,713,717,722,727,732,736,749,763,769,784,825,833],{"__ignoreMap":382},[402,714,715],{"class":404,"line":405},[402,716,409],{"class":408},[402,718,719],{"class":404,"line":412},[402,720,721],{"class":408}," * withdraw(uint256 assets, address receiver, address owner)\n",[402,723,724],{"class":404,"line":418},[402,725,726],{"class":408}," * The user withdraws LONG by burning sLONG.\n",[402,728,729],{"class":404,"line":424},[402,730,731],{"class":408}," * Note: parseEther(\"0.1\") means 0.1 LONG tokens (not ETH).\n",[402,733,734],{"class":404,"line":430},[402,735,433],{"class":408},[402,737,738,740,742,745,747],{"class":404,"line":436},[402,739,440],{"class":439},[402,741,443],{"class":439},[402,743,744],{"class":446}," stakingWithdraw",[402,746,451],{"class":450},[402,748,454],{"class":450},[402,750,751,753,755,757,759,761],{"class":404,"line":457},[402,752,466],{"class":439},[402,754,470],{"class":469},[402,756,473],{"class":450},[402,758,476],{"class":446},[402,760,480],{"class":479},[402,762,483],{"class":450},[402,764,765,767],{"class":404,"line":463},[402,766,489],{"class":469},[402,768,492],{"class":450},[402,770,771,773,775,777,780,782],{"class":404,"line":486},[402,772,498],{"class":479},[402,774,501],{"class":450},[402,776,504],{"class":450},[402,778,779],{"class":507},"withdraw",[402,781,511],{"class":450},[402,783,492],{"class":450},[402,785,786,788,790,792,794,796,798,801,803,805,807,809,811,813,815,817,819,821,823],{"class":404,"line":495},[402,787,519],{"class":479},[402,789,501],{"class":450},[402,791,524],{"class":479},[402,793,527],{"class":446},[402,795,480],{"class":479},[402,797,511],{"class":450},[402,799,800],{"class":507},"0.1",[402,802,511],{"class":450},[402,804,539],{"class":479},[402,806,542],{"class":450},[402,808,504],{"class":450},[402,810,547],{"class":507},[402,812,511],{"class":450},[402,814,542],{"class":450},[402,816,504],{"class":450},[402,818,547],{"class":507},[402,820,511],{"class":450},[402,822,552],{"class":479},[402,824,492],{"class":450},[402,826,827,829,831],{"class":404,"line":516},[402,828,560],{"class":450},[402,830,539],{"class":479},[402,832,565],{"class":450},[402,834,835],{"class":404,"line":557},[402,836,571],{"class":450},[330,838],{},[390,840,842],{"id":841},"staking-redeem","Staking Redeem",[374,844,846],{"className":396,"code":845,"language":398,"meta":382,"style":382},"\u002F*\n * redeem(uint256 shares, address receiver, address owner)\n * The user redeems sLONG and receives LONG.\n * Note: parseEther(\"0.1\") means 0.1 LONG tokens (not ETH).\n *\u002F\nasync function stakingRedeem() {\n  const transaction = prepareContractCall({\n    contract,\n    method: \"redeem\",\n    params: [parseEther(\"0.1\"), \"0xUserAddress\", \"0xUserAddress\"],\n  });\n}\n",[340,847,848,852,857,862,866,870,883,897,903,918,958,966],{"__ignoreMap":382},[402,849,850],{"class":404,"line":405},[402,851,409],{"class":408},[402,853,854],{"class":404,"line":412},[402,855,856],{"class":408}," * redeem(uint256 shares, address receiver, address owner)\n",[402,858,859],{"class":404,"line":418},[402,860,861],{"class":408}," * The user redeems sLONG and receives LONG.\n",[402,863,864],{"class":404,"line":424},[402,865,731],{"class":408},[402,867,868],{"class":404,"line":430},[402,869,433],{"class":408},[402,871,872,874,876,879,881],{"class":404,"line":436},[402,873,440],{"class":439},[402,875,443],{"class":439},[402,877,878],{"class":446}," stakingRedeem",[402,880,451],{"class":450},[402,882,454],{"class":450},[402,884,885,887,889,891,893,895],{"class":404,"line":457},[402,886,466],{"class":439},[402,888,470],{"class":469},[402,890,473],{"class":450},[402,892,476],{"class":446},[402,894,480],{"class":479},[402,896,483],{"class":450},[402,898,899,901],{"class":404,"line":463},[402,900,489],{"class":469},[402,902,492],{"class":450},[402,904,905,907,909,911,914,916],{"class":404,"line":486},[402,906,498],{"class":479},[402,908,501],{"class":450},[402,910,504],{"class":450},[402,912,913],{"class":507},"redeem",[402,915,511],{"class":450},[402,917,492],{"class":450},[402,919,920,922,924,926,928,930,932,934,936,938,940,942,944,946,948,950,952,954,956],{"class":404,"line":495},[402,921,519],{"class":479},[402,923,501],{"class":450},[402,925,524],{"class":479},[402,927,527],{"class":446},[402,929,480],{"class":479},[402,931,511],{"class":450},[402,933,800],{"class":507},[402,935,511],{"class":450},[402,937,539],{"class":479},[402,939,542],{"class":450},[402,941,504],{"class":450},[402,943,547],{"class":507},[402,945,511],{"class":450},[402,947,542],{"class":450},[402,949,504],{"class":450},[402,951,547],{"class":507},[402,953,511],{"class":450},[402,955,552],{"class":479},[402,957,492],{"class":450},[402,959,960,962,964],{"class":404,"line":516},[402,961,560],{"class":450},[402,963,539],{"class":479},[402,965,565],{"class":450},[402,967,968],{"class":404,"line":557},[402,969,571],{"class":450},[330,971],{},[390,973,975],{"id":974},"emergency-withdraw","Emergency Withdraw",[374,977,979],{"className":396,"code":978,"language":398,"meta":382,"style":382},"\u002F*\n * emergencyWithdraw(uint256 assets, address receiver, address owner)\n * Emergency withdrawal in case of issues.\n * Note: parseEther(\"0.1\") means 0.1 LONG tokens (not ETH).\n *\u002F\nasync function emergencyWithdraw() {\n  const transaction = prepareContractCall({\n    contract,\n    method: \"emergencyWithdraw\",\n    params: [parseEther(\"0.1\"), \"0xUserAddress\", \"0xUserAddress\"],\n  });\n}\n",[340,980,981,985,990,995,999,1003,1016,1030,1036,1051,1091,1099],{"__ignoreMap":382},[402,982,983],{"class":404,"line":405},[402,984,409],{"class":408},[402,986,987],{"class":404,"line":412},[402,988,989],{"class":408}," * emergencyWithdraw(uint256 assets, address receiver, address owner)\n",[402,991,992],{"class":404,"line":418},[402,993,994],{"class":408}," * Emergency withdrawal in case of issues.\n",[402,996,997],{"class":404,"line":424},[402,998,731],{"class":408},[402,1000,1001],{"class":404,"line":430},[402,1002,433],{"class":408},[402,1004,1005,1007,1009,1012,1014],{"class":404,"line":436},[402,1006,440],{"class":439},[402,1008,443],{"class":439},[402,1010,1011],{"class":446}," emergencyWithdraw",[402,1013,451],{"class":450},[402,1015,454],{"class":450},[402,1017,1018,1020,1022,1024,1026,1028],{"class":404,"line":457},[402,1019,466],{"class":439},[402,1021,470],{"class":469},[402,1023,473],{"class":450},[402,1025,476],{"class":446},[402,1027,480],{"class":479},[402,1029,483],{"class":450},[402,1031,1032,1034],{"class":404,"line":463},[402,1033,489],{"class":469},[402,1035,492],{"class":450},[402,1037,1038,1040,1042,1044,1047,1049],{"class":404,"line":486},[402,1039,498],{"class":479},[402,1041,501],{"class":450},[402,1043,504],{"class":450},[402,1045,1046],{"class":507},"emergencyWithdraw",[402,1048,511],{"class":450},[402,1050,492],{"class":450},[402,1052,1053,1055,1057,1059,1061,1063,1065,1067,1069,1071,1073,1075,1077,1079,1081,1083,1085,1087,1089],{"class":404,"line":495},[402,1054,519],{"class":479},[402,1056,501],{"class":450},[402,1058,524],{"class":479},[402,1060,527],{"class":446},[402,1062,480],{"class":479},[402,1064,511],{"class":450},[402,1066,800],{"class":507},[402,1068,511],{"class":450},[402,1070,539],{"class":479},[402,1072,542],{"class":450},[402,1074,504],{"class":450},[402,1076,547],{"class":507},[402,1078,511],{"class":450},[402,1080,542],{"class":450},[402,1082,504],{"class":450},[402,1084,547],{"class":507},[402,1086,511],{"class":450},[402,1088,552],{"class":479},[402,1090,492],{"class":450},[402,1092,1093,1095,1097],{"class":404,"line":516},[402,1094,560],{"class":450},[402,1096,539],{"class":479},[402,1098,565],{"class":450},[402,1100,1101],{"class":404,"line":557},[402,1102,571],{"class":450},[330,1104],{},[390,1106,1108],{"id":1107},"emergency-redeem","Emergency Redeem",[374,1110,1112],{"className":396,"code":1111,"language":398,"meta":382,"style":382},"\u002F*\n * emergencyRedeem(uint256 shares, address receiver, address owner)\n * Emergency redemption for stuck positions.\n * Note: parseEther(\"0.1\") means 0.1 LONG tokens (not ETH).\n *\u002F\nasync function emergencyRedeem() {\n  const transaction = prepareContractCall({\n    contract,\n    method: \"emergencyRedeem\",\n    params: [parseEther(\"0.1\"), \"0xUserAddress\", \"0xUserAddress\"],\n  });\n}\n",[340,1113,1114,1118,1123,1128,1132,1136,1149,1163,1169,1184,1224,1232],{"__ignoreMap":382},[402,1115,1116],{"class":404,"line":405},[402,1117,409],{"class":408},[402,1119,1120],{"class":404,"line":412},[402,1121,1122],{"class":408}," * emergencyRedeem(uint256 shares, address receiver, address owner)\n",[402,1124,1125],{"class":404,"line":418},[402,1126,1127],{"class":408}," * Emergency redemption for stuck positions.\n",[402,1129,1130],{"class":404,"line":424},[402,1131,731],{"class":408},[402,1133,1134],{"class":404,"line":430},[402,1135,433],{"class":408},[402,1137,1138,1140,1142,1145,1147],{"class":404,"line":436},[402,1139,440],{"class":439},[402,1141,443],{"class":439},[402,1143,1144],{"class":446}," emergencyRedeem",[402,1146,451],{"class":450},[402,1148,454],{"class":450},[402,1150,1151,1153,1155,1157,1159,1161],{"class":404,"line":457},[402,1152,466],{"class":439},[402,1154,470],{"class":469},[402,1156,473],{"class":450},[402,1158,476],{"class":446},[402,1160,480],{"class":479},[402,1162,483],{"class":450},[402,1164,1165,1167],{"class":404,"line":463},[402,1166,489],{"class":469},[402,1168,492],{"class":450},[402,1170,1171,1173,1175,1177,1180,1182],{"class":404,"line":486},[402,1172,498],{"class":479},[402,1174,501],{"class":450},[402,1176,504],{"class":450},[402,1178,1179],{"class":507},"emergencyRedeem",[402,1181,511],{"class":450},[402,1183,492],{"class":450},[402,1185,1186,1188,1190,1192,1194,1196,1198,1200,1202,1204,1206,1208,1210,1212,1214,1216,1218,1220,1222],{"class":404,"line":495},[402,1187,519],{"class":479},[402,1189,501],{"class":450},[402,1191,524],{"class":479},[402,1193,527],{"class":446},[402,1195,480],{"class":479},[402,1197,511],{"class":450},[402,1199,800],{"class":507},[402,1201,511],{"class":450},[402,1203,539],{"class":479},[402,1205,542],{"class":450},[402,1207,504],{"class":450},[402,1209,547],{"class":507},[402,1211,511],{"class":450},[402,1213,542],{"class":450},[402,1215,504],{"class":450},[402,1217,547],{"class":507},[402,1219,511],{"class":450},[402,1221,552],{"class":479},[402,1223,492],{"class":450},[402,1225,1226,1228,1230],{"class":404,"line":516},[402,1227,560],{"class":450},[402,1229,539],{"class":479},[402,1231,565],{"class":450},[402,1233,1234],{"class":404,"line":557},[402,1235,571],{"class":450},[330,1237],{},[322,1239,1241],{"id":1240},"errors","Errors",[326,1243,1244],{},"MCP tools return errors in the standard JSON format:",[374,1246,1250],{"className":1247,"code":1248,"language":1249,"meta":382,"style":382},"language-json shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","{\n  \"error\": \"STAKING_INSUFFICIENT_BALANCE\"\n}\n","json",[340,1251,1252,1256,1276],{"__ignoreMap":382},[402,1253,1254],{"class":404,"line":405},[402,1255,483],{"class":450},[402,1257,1258,1261,1264,1266,1268,1270,1273],{"class":404,"line":412},[402,1259,1260],{"class":450},"  \"",[402,1262,1263],{"class":439},"error",[402,1265,511],{"class":450},[402,1267,501],{"class":450},[402,1269,504],{"class":450},[402,1271,1272],{"class":507},"STAKING_INSUFFICIENT_BALANCE",[402,1274,1275],{"class":450},"\"\n",[402,1277,1278],{"class":404,"line":418},[402,1279,571],{"class":450},[390,1281,1283],{"id":1282},"common-error-codes","Common error codes",[1285,1286,1287,1300],"table",{},[1288,1289,1290],"thead",{},[1291,1292,1293,1297],"tr",{},[1294,1295,1296],"th",{},"Code",[1294,1298,1299],{},"Description",[1301,1302,1303,1313,1323,1333],"tbody",{},[1291,1304,1305,1310],{},[1306,1307,1308],"td",{},[340,1309,1272],{},[1306,1311,1312],{},"Not enough LONG tokens to complete the transaction.",[1291,1314,1315,1320],{},[1306,1316,1317],{},[340,1318,1319],{},"APPROVE_REQUIRED",[1306,1321,1322],{},"Token approval is missing or insufficient.",[1291,1324,1325,1330],{},[1306,1326,1327],{},[340,1328,1329],{},"EMERGENCY_ONLY",[1306,1331,1332],{},"Operation allowed only in emergency mode.",[1291,1334,1335,1340],{},[1306,1336,1337],{},[340,1338,1339],{},"INVALID_AMOUNT",[1306,1341,1342],{},"Provided amount is invalid (zero or exceeds limits).",[330,1344],{},[1346,1347,1348],"style",{},"html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}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);}",{"title":382,"searchDepth":412,"depth":412,"links":1350},[1351,1352,1353,1354,1362],{"id":324,"depth":412,"text":92},{"id":334,"depth":412,"text":335},{"id":365,"depth":412,"text":366},{"id":387,"depth":412,"text":388,"children":1355},[1356,1357,1358,1359,1360,1361],{"id":392,"depth":418,"text":393},{"id":576,"depth":418,"text":577},{"id":706,"depth":418,"text":707},{"id":841,"depth":418,"text":842},{"id":974,"depth":418,"text":975},{"id":1107,"depth":418,"text":1108},{"id":1240,"depth":412,"text":1241,"children":1363},[1364],{"id":1282,"depth":418,"text":1283},"End-to-end staking operations on EVM chains for LONG tokens, executed directly from the user's wallet.","md",null,{},{"title":56,"icon":49},{"title":317,"description":1365},"4zkdNOlfjqcFlES6Xi07XrLLT9hJrpQBtTYq0C7BRKs",[1373,1375],{"title":51,"path":52,"stem":53,"description":1374,"icon":54,"children":-1},"End-to-end sponsorship ledger, eligibility checks, and usage recording for sponsored EVM flows in Belong API.",{"title":60,"path":61,"stem":62,"description":1376,"icon":63,"children":-1},"End-to-end NFT minting on Starknet using MCP tools.",1785598153003]