[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"navigation":3,"\u002Fapi-reference\u002Forchestration\u002Fcancel-order":260,"\u002Fapi-reference\u002Forchestration\u002Fcancel-order-surround":1596},[4,22,105,148,177,186,243],{"title":5,"path":6,"stem":7,"children":8,"page":21},"Agents","\u002Fagents","agents",[9,13,17],{"title":10,"path":11,"stem":12},"LLMs.txt","\u002Fagents\u002Fllms-txt","agents\u002Fllms-txt",{"title":14,"path":15,"stem":16},"MCP Server","\u002Fagents\u002Fmcp-server","agents\u002Fmcp-server",{"title":18,"path":19,"stem":20},"Skills","\u002Fagents\u002Fskills","agents\u002Fskills",false,{"title":23,"path":24,"stem":25,"children":26,"page":21},"Api Reference","\u002Fapi-reference","api-reference",[27,31,35,68],{"title":28,"path":29,"stem":30},"Authentication","\u002Fapi-reference\u002Fauthentication","api-reference\u002Fauthentication",{"title":32,"path":33,"stem":34},"API Reference","\u002Fapi-reference\u002Fintroduction","api-reference\u002Fintroduction",{"title":36,"path":37,"stem":38,"children":39,"page":21},"Orchestration","\u002Fapi-reference\u002Forchestration","api-reference\u002Forchestration",[40,44,48,52,56,60,64],{"title":41,"path":42,"stem":43},"POST \u002Fcancel-order","\u002Fapi-reference\u002Forchestration\u002Fcancel-order","api-reference\u002Forchestration\u002Fcancel-order",{"title":45,"path":46,"stem":47},"GET \u002Forder-status\u002F{orderId}","\u002Fapi-reference\u002Forchestration\u002Forder-status","api-reference\u002Forchestration\u002Forder-status",{"title":49,"path":50,"stem":51},"GET \u002Forders","\u002Fapi-reference\u002Forchestration\u002Forders","api-reference\u002Forchestration\u002Forders",{"title":53,"path":54,"stem":55},"Orchestration API","\u002Fapi-reference\u002Forchestration\u002Foverview","api-reference\u002Forchestration\u002Foverview",{"title":57,"path":58,"stem":59},"POST \u002Fquote","\u002Fapi-reference\u002Forchestration\u002Fquote","api-reference\u002Forchestration\u002Fquote",{"title":61,"path":62,"stem":63},"GET \u002Fsupported-assets","\u002Fapi-reference\u002Forchestration\u002Fsupported-assets","api-reference\u002Forchestration\u002Fsupported-assets",{"title":65,"path":66,"stem":67},"TypeScript Type Generation","\u002Fapi-reference\u002Forchestration\u002Ftype-generation","api-reference\u002Forchestration\u002Ftype-generation",{"title":69,"path":70,"stem":71,"children":72,"page":21},"Recipes","\u002Fapi-reference\u002Frecipes","api-reference\u002Frecipes",[73,77,81,85,89,93,97,101],{"title":74,"path":75,"stem":76},"Collateral Composition","\u002Fapi-reference\u002Frecipes\u002Fcollateral-composition","api-reference\u002Frecipes\u002Fcollateral-composition",{"title":78,"path":79,"stem":80},"Daily Yields","\u002Fapi-reference\u002Frecipes\u002Fdaily-yields","api-reference\u002Frecipes\u002Fdaily-yields",{"title":82,"path":83,"stem":84},"Earner Rate History","\u002Fapi-reference\u002Frecipes\u002Fearner-rate-history","api-reference\u002Frecipes\u002Fearner-rate-history",{"title":86,"path":87,"stem":88},"Minter Daily Expenses","\u002Fapi-reference\u002Frecipes\u002Fminter-daily-expenses","api-reference\u002Frecipes\u002Fminter-daily-expenses",{"title":90,"path":91,"stem":92},"Network Supply","\u002Fapi-reference\u002Frecipes\u002Fnetwork-supply","api-reference\u002Frecipes\u002Fnetwork-supply",{"title":94,"path":95,"stem":96},"Protocol Configuration","\u002Fapi-reference\u002Frecipes\u002Fprotocol-config","api-reference\u002Frecipes\u002Fprotocol-config",{"title":98,"path":99,"stem":100},"Token Holders","\u002Fapi-reference\u002Frecipes\u002Ftoken-holders","api-reference\u002Frecipes\u002Ftoken-holders",{"title":102,"path":103,"stem":104},"Token Overview","\u002Fapi-reference\u002Frecipes\u002Ftoken-overview","api-reference\u002Frecipes\u002Ftoken-overview",{"title":106,"path":107,"stem":108,"children":109,"page":21},"Build","\u002Fbuild","build",[110,114,118,122,126,130,134,138,142,145],{"title":111,"path":112,"stem":113},"Integrating with the M0 Portals","\u002Fbuild\u002Fbridging-developer","build\u002Fbridging-developer",{"title":115,"path":116,"stem":117},"Bridging M And wM Tokens","\u002Fbuild\u002Fbridging-user","build\u002Fbridging-user",{"title":119,"path":120,"stem":121},"Stablecoin Extension Templates","\u002Fbuild\u002Fchoosing-your-model","build\u002Fchoosing-your-model",{"title":123,"path":124,"stem":125},"How to Design Your Stablecoin","\u002Fbuild\u002Foverview","build\u002Foverview",{"title":127,"path":128,"stem":129},"Implementation Guide: NoYield","\u002Fbuild\u002Fsvm-noyield-guide","build\u002Fsvm-noyield-guide",{"title":131,"path":132,"stem":133},"Getting started","\u002Fbuild\u002Fsvm-noyield-guide-overview","build\u002Fsvm-noyield-guide-overview",{"title":135,"path":136,"stem":137},"Implementation Guide: MYieldToOne (Onshore)","\u002Fbuild\u002Ftreasury-guide","build\u002Ftreasury-guide",{"title":139,"path":140,"stem":141},"Implementation Guide: JMI (Offshore)","\u002Fbuild\u002Ftreasury-jmi-guide","build\u002Ftreasury-jmi-guide",{"title":131,"path":143,"stem":144},"\u002Fbuild\u002Ftreasury-jmi-overview","build\u002Ftreasury-jmi-overview",{"title":131,"path":146,"stem":147},"\u002Fbuild\u002Ftreasury-model","build\u002Ftreasury-model",{"title":149,"path":150,"stem":151,"children":152,"page":21},"Get Started","\u002Fget-started","get-started",[153,157,161,165,169,173],{"title":154,"path":155,"stem":156},"Accessing Liquidity","\u002Fget-started\u002Faccessing-liquidity","get-started\u002Faccessing-liquidity",{"title":158,"path":159,"stem":160},"Cross Chain Interoperability","\u002Fget-started\u002Fcross-chain","get-started\u002Fcross-chain",{"title":162,"path":163,"stem":164},"Architecture Overview","\u002Fget-started\u002Fhow-it-works","get-started\u002Fhow-it-works",{"title":166,"path":167,"stem":168},"Overview","\u002Fget-started\u002Foverview","get-started\u002Foverview",{"title":170,"path":171,"stem":172},"Platform Mechanics & Reward Programmability","\u002Fget-started\u002Fprotocol-mechanics","get-started\u002Fprotocol-mechanics",{"title":174,"path":175,"stem":176},"Stablecoin Features","\u002Fget-started\u002Fstablecoin-features","get-started\u002Fstablecoin-features",{"title":178,"path":179,"stem":180,"children":181,"page":21},"Issuers","\u002Fissuers","issuers",[182],{"title":183,"path":184,"stem":185},"Issue Your Stablecoin","\u002Fissuers\u002Foverview","issuers\u002Foverview",{"title":187,"path":188,"stem":189,"children":190,"page":21},"Protocol","\u002Fprotocol","protocol",[191,195,199,203,207,211,215,219,223,227,231,235,239],{"title":192,"path":193,"stem":194},"Distribution Vault","\u002Fprotocol\u002Fdistribution-vault","protocol\u002Fdistribution-vault",{"title":196,"path":197,"stem":198},"M0 Extensions","\u002Fprotocol\u002Fextensions","protocol\u002Fextensions",{"title":200,"path":201,"stem":202},"Limit Order Protocol","\u002Fprotocol\u002Flimit-order-protocol","protocol\u002Flimit-order-protocol",{"title":204,"path":205,"stem":206},"M0 Portals","\u002Fprotocol\u002Fm-portals","protocol\u002Fm-portals",{"title":208,"path":209,"stem":210},"M Token","\u002Fprotocol\u002Fm-token","protocol\u002Fm-token",{"title":212,"path":213,"stem":214},"M Token Specification","\u002Fprotocol\u002Fm-token-spec","protocol\u002Fm-token-spec",{"title":216,"path":217,"stem":218},"Minting & Burning (MinterGateway)","\u002Fprotocol\u002Fminting-burning","protocol\u002Fminting-burning",{"title":220,"path":221,"stem":222},"Portal V2","\u002Fprotocol\u002Fportal-v2","protocol\u002Fportal-v2",{"title":224,"path":225,"stem":226},"Rate Models & Yield","\u002Fprotocol\u002Frate-models","protocol\u002Frate-models",{"title":228,"path":229,"stem":230},"Roles","\u002Fprotocol\u002Froles","protocol\u002Froles",{"title":232,"path":233,"stem":234},"M0 On Solana","\u002Fprotocol\u002Fsolana","protocol\u002Fsolana",{"title":236,"path":237,"stem":238},"Wrapped M (wM)","\u002Fprotocol\u002Fwrapped-m","protocol\u002Fwrapped-m",{"title":240,"path":241,"stem":242},"Wrapped M Specification","\u002Fprotocol\u002Fwrapped-m-spec","protocol\u002Fwrapped-m-spec",{"title":244,"path":245,"stem":246,"children":247,"page":21},"Resources","\u002Fresources","resources",[248,252,256],{"title":249,"path":250,"stem":251},"Deployments","\u002Fresources\u002Faddresses","resources\u002Faddresses",{"title":253,"path":254,"stem":255},"Audits","\u002Fresources\u002Faudits","resources\u002Faudits",{"title":257,"path":258,"stem":259},"Glossary","\u002Fresources\u002Fglossary","resources\u002Fglossary",{"id":261,"title":41,"body":262,"description":1590,"extension":1591,"links":1592,"meta":1593,"navigation":451,"path":42,"seo":1594,"stem":43,"__hash__":1595},"docs\u002Fapi-reference\u002Forchestration\u002Fcancel-order.md",{"type":263,"value":264,"toc":1574},"minimark",[265,269,284,296,301,306,317,321,327,331,392,396,812,815,819,825,886,890,945,966,970,1018,1022,1203,1207,1210,1550,1554,1570],[266,267,268],"p",{},"This endpoint builds a cancellation transaction for an existing limit order. The returned payload must be signed and\nsubmitted to the blockchain by the caller to complete the cancellation.",[270,271,272],"note",{},[266,273,274,278,279,283],{},[275,276,277],"strong",{},"TypeScript Types",": Generate types for this API with a single command. See\n",[280,281,282],"a",{"href":66},"Type Generation",".",[270,285,286],{},[266,287,288,290,291,283],{},[275,289,32],{},": For detailed schema definitions and interactive testing,\nsee the ",[280,292,32],{"href":293,"rel":294},"https:\u002F\u002Forchestration-api.m0.xyz\u002Fdocs\u002Freference",[295],"nofollow",[297,298,300],"h2",{"id":299},"request","Request",[302,303,305],"h3",{"id":304},"endpoint","Endpoint",[307,308,313],"pre",{"className":309,"code":311,"language":312},[310],"language-text","POST \u002Fcancel-order\n","text",[314,315,311],"code",{"__ignoreMap":316},"",[302,318,320],{"id":319},"headers","Headers",[307,322,325],{"className":323,"code":324,"language":312},[310],"Content-Type: application\u002Fjson\nx-api-key: YOUR_API_KEY\n",[314,326,324],{"__ignoreMap":316},[302,328,330],{"id":329},"body-parameters","Body Parameters",[332,333,334,353],"table",{},[335,336,337],"thead",{},[338,339,340,344,347,350],"tr",{},[341,342,343],"th",{},"Field",[341,345,346],{},"Type",[341,348,349],{},"Required",[341,351,352],{},"Description",[354,355,356,375],"tbody",{},[338,357,358,364,369,372],{},[359,360,361],"td",{},[314,362,363],{},"orderId",[359,365,366],{},[314,367,368],{},"string",[359,370,371],{},"Yes",[359,373,374],{},"The ID of the limit order to cancel",[338,376,377,382,387,389],{},[359,378,379],{},[314,380,381],{},"chain",[359,383,384],{},[314,385,386],{},"Chain",[359,388,371],{},[359,390,391],{},"The chain where the order was placed",[297,393,395],{"id":394},"example-request","Example Request",[307,397,401],{"className":398,"code":399,"language":400,"meta":316,"style":316},"language-typescript shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import type { components } from \".\u002Fm0-swap\"; \u002F\u002F From type generation\n\ntype CancelOrderResponse = components[\"schemas\"][\"CancelOrderResponse\"];\n\nconst response = await fetch(\"https:\u002F\u002Forchestration-api.m0.xyz\u002Fcancel-order\", {\n  method: \"POST\",\n  headers: {\n    \"Content-Type\": \"application\u002Fjson\",\n    \"x-api-key\": YOUR_API_KEY,\n  },\n  body: JSON.stringify({\n    orderId: \"0xabc123...\", \u002F\u002F The limit order ID\n    chain: \"Ethereum\",\n  }),\n});\n\nif (!response.ok) {\n  const error = await response.text();\n  throw new Error(`Cancel order failed: ${error}`);\n}\n\nconst result: CancelOrderResponse = await response.json();\n","typescript",[314,402,403,446,453,495,500,535,555,565,587,604,610,631,651,668,679,689,694,716,741,774,780,785],{"__ignoreMap":316},[404,405,408,412,415,419,423,426,429,432,436,439,442],"span",{"class":406,"line":407},"line",1,[404,409,411],{"class":410},"s7zQu","import",[404,413,414],{"class":410}," type",[404,416,418],{"class":417},"sMK4o"," {",[404,420,422],{"class":421},"sTEyZ"," components",[404,424,425],{"class":417}," }",[404,427,428],{"class":410}," from",[404,430,431],{"class":417}," \"",[404,433,435],{"class":434},"sfazB",".\u002Fm0-swap",[404,437,438],{"class":417},"\"",[404,440,441],{"class":417},";",[404,443,445],{"class":444},"sHwdD"," \u002F\u002F From type generation\n",[404,447,449],{"class":406,"line":448},2,[404,450,452],{"emptyLinePlaceholder":451},true,"\n",[404,454,456,460,464,467,469,472,474,477,479,482,484,487,489,492],{"class":406,"line":455},3,[404,457,459],{"class":458},"spNyl","type",[404,461,463],{"class":462},"sBMFI"," CancelOrderResponse",[404,465,466],{"class":417}," =",[404,468,422],{"class":462},[404,470,471],{"class":421},"[",[404,473,438],{"class":417},[404,475,476],{"class":434},"schemas",[404,478,438],{"class":417},[404,480,481],{"class":421},"][",[404,483,438],{"class":417},[404,485,486],{"class":434},"CancelOrderResponse",[404,488,438],{"class":417},[404,490,491],{"class":421},"]",[404,493,494],{"class":417},";\n",[404,496,498],{"class":406,"line":497},4,[404,499,452],{"emptyLinePlaceholder":451},[404,501,503,506,509,512,515,519,522,524,527,529,532],{"class":406,"line":502},5,[404,504,505],{"class":458},"const",[404,507,508],{"class":421}," response ",[404,510,511],{"class":417},"=",[404,513,514],{"class":410}," await",[404,516,518],{"class":517},"s2Zo4"," fetch",[404,520,521],{"class":421},"(",[404,523,438],{"class":417},[404,525,526],{"class":434},"https:\u002F\u002Forchestration-api.m0.xyz\u002Fcancel-order",[404,528,438],{"class":417},[404,530,531],{"class":417},",",[404,533,534],{"class":417}," {\n",[404,536,538,542,545,547,550,552],{"class":406,"line":537},6,[404,539,541],{"class":540},"swJcz","  method",[404,543,544],{"class":417},":",[404,546,431],{"class":417},[404,548,549],{"class":434},"POST",[404,551,438],{"class":417},[404,553,554],{"class":417},",\n",[404,556,558,561,563],{"class":406,"line":557},7,[404,559,560],{"class":540},"  headers",[404,562,544],{"class":417},[404,564,534],{"class":417},[404,566,568,571,574,576,578,580,583,585],{"class":406,"line":567},8,[404,569,570],{"class":417},"    \"",[404,572,573],{"class":540},"Content-Type",[404,575,438],{"class":417},[404,577,544],{"class":417},[404,579,431],{"class":417},[404,581,582],{"class":434},"application\u002Fjson",[404,584,438],{"class":417},[404,586,554],{"class":417},[404,588,590,592,595,597,599,602],{"class":406,"line":589},9,[404,591,570],{"class":417},[404,593,594],{"class":540},"x-api-key",[404,596,438],{"class":417},[404,598,544],{"class":417},[404,600,601],{"class":421}," YOUR_API_KEY",[404,603,554],{"class":417},[404,605,607],{"class":406,"line":606},10,[404,608,609],{"class":417},"  },\n",[404,611,613,616,618,621,623,626,628],{"class":406,"line":612},11,[404,614,615],{"class":540},"  body",[404,617,544],{"class":417},[404,619,620],{"class":421}," JSON",[404,622,283],{"class":417},[404,624,625],{"class":517},"stringify",[404,627,521],{"class":421},[404,629,630],{"class":417},"{\n",[404,632,634,637,639,641,644,646,648],{"class":406,"line":633},12,[404,635,636],{"class":540},"    orderId",[404,638,544],{"class":417},[404,640,431],{"class":417},[404,642,643],{"class":434},"0xabc123...",[404,645,438],{"class":417},[404,647,531],{"class":417},[404,649,650],{"class":444}," \u002F\u002F The limit order ID\n",[404,652,654,657,659,661,664,666],{"class":406,"line":653},13,[404,655,656],{"class":540},"    chain",[404,658,544],{"class":417},[404,660,431],{"class":417},[404,662,663],{"class":434},"Ethereum",[404,665,438],{"class":417},[404,667,554],{"class":417},[404,669,671,674,677],{"class":406,"line":670},14,[404,672,673],{"class":417},"  }",[404,675,676],{"class":421},")",[404,678,554],{"class":417},[404,680,682,685,687],{"class":406,"line":681},15,[404,683,684],{"class":417},"}",[404,686,676],{"class":421},[404,688,494],{"class":417},[404,690,692],{"class":406,"line":691},16,[404,693,452],{"emptyLinePlaceholder":451},[404,695,697,700,703,706,709,711,714],{"class":406,"line":696},17,[404,698,699],{"class":410},"if",[404,701,702],{"class":421}," (",[404,704,705],{"class":417},"!",[404,707,708],{"class":421},"response",[404,710,283],{"class":417},[404,712,713],{"class":421},"ok) ",[404,715,630],{"class":417},[404,717,719,722,725,727,729,732,734,736,739],{"class":406,"line":718},18,[404,720,721],{"class":458},"  const",[404,723,724],{"class":421}," error",[404,726,466],{"class":417},[404,728,514],{"class":410},[404,730,731],{"class":421}," response",[404,733,283],{"class":417},[404,735,312],{"class":517},[404,737,738],{"class":540},"()",[404,740,494],{"class":417},[404,742,744,747,750,753,755,758,761,764,767,770,772],{"class":406,"line":743},19,[404,745,746],{"class":410},"  throw",[404,748,749],{"class":417}," new",[404,751,752],{"class":517}," Error",[404,754,521],{"class":540},[404,756,757],{"class":417},"`",[404,759,760],{"class":434},"Cancel order failed: ",[404,762,763],{"class":417},"${",[404,765,766],{"class":421},"error",[404,768,769],{"class":417},"}`",[404,771,676],{"class":540},[404,773,494],{"class":417},[404,775,777],{"class":406,"line":776},20,[404,778,779],{"class":417},"}\n",[404,781,783],{"class":406,"line":782},21,[404,784,452],{"emptyLinePlaceholder":451},[404,786,788,790,793,795,797,799,801,803,805,808,810],{"class":406,"line":787},22,[404,789,505],{"class":458},[404,791,792],{"class":421}," result",[404,794,544],{"class":417},[404,796,463],{"class":462},[404,798,466],{"class":417},[404,800,514],{"class":410},[404,802,731],{"class":421},[404,804,283],{"class":417},[404,806,807],{"class":517},"json",[404,809,738],{"class":421},[404,811,494],{"class":417},[297,813,814],{"id":708},"Response",[302,816,818],{"id":817},"success-response-200","Success Response (200)",[266,820,821,822,824],{},"Returns a ",[314,823,486],{}," object containing the transaction payload to submit on-chain to complete the\ncancellation.",[307,826,828],{"className":398,"code":827,"language":400,"meta":316,"style":316},"import type { components } from \".\u002Fm0-swap\";\n\ntype CancelOrderResponse = components[\"schemas\"][\"CancelOrderResponse\"];\n",[314,829,830,852,856],{"__ignoreMap":316},[404,831,832,834,836,838,840,842,844,846,848,850],{"class":406,"line":407},[404,833,411],{"class":410},[404,835,414],{"class":410},[404,837,418],{"class":417},[404,839,422],{"class":421},[404,841,425],{"class":417},[404,843,428],{"class":410},[404,845,431],{"class":417},[404,847,435],{"class":434},[404,849,438],{"class":417},[404,851,494],{"class":417},[404,853,854],{"class":406,"line":448},[404,855,452],{"emptyLinePlaceholder":451},[404,857,858,860,862,864,866,868,870,872,874,876,878,880,882,884],{"class":406,"line":455},[404,859,459],{"class":458},[404,861,463],{"class":462},[404,863,466],{"class":417},[404,865,422],{"class":462},[404,867,471],{"class":421},[404,869,438],{"class":417},[404,871,476],{"class":434},[404,873,438],{"class":417},[404,875,481],{"class":421},[404,877,438],{"class":417},[404,879,486],{"class":434},[404,881,438],{"class":417},[404,883,491],{"class":421},[404,885,494],{"class":417},[302,887,889],{"id":888},"response-fields","Response Fields",[332,891,892,902],{},[335,893,894],{},[338,895,896,898,900],{},[341,897,343],{},[341,899,346],{},[341,901,352],{},[354,903,904,917,930],{},[338,905,906,910,914],{},[359,907,908],{},[314,909,363],{},[359,911,912],{},[314,913,368],{},[359,915,916],{},"The ID of the order being cancelled",[338,918,919,923,927],{},[359,920,921],{},[314,922,381],{},[359,924,925],{},[314,926,386],{},[359,928,929],{},"The chain where the cancellation transaction must be sent",[338,931,932,937,942],{},[359,933,934],{},[314,935,936],{},"payload",[359,938,939],{},[314,940,941],{},"TransactionPayload",[359,943,944],{},"The signed transaction data to submit to cancel the order",[266,946,947,948,950,951,953,954,957,958,961,962,965],{},"The ",[314,949,936],{}," field follows the same ",[314,952,941],{}," structure as quote payloads -- either an ",[314,955,956],{},"EvmPayload"," or\n",[314,959,960],{},"SvmPayload"," depending on the chain. See the ",[280,963,964],{"href":58},"Quote"," docs for payload execution examples.",[302,967,969],{"id":968},"error-responses","Error Responses",[332,971,972,981],{},[335,973,974],{},[338,975,976,979],{},[341,977,978],{},"Status",[341,980,352],{},[354,982,983,998,1008],{},[338,984,985,990],{},[359,986,987],{},[314,988,989],{},"404",[359,991,992,993,995,996],{},"Order not found -- the ",[314,994,363],{}," does not exist on the specified ",[314,997,381],{},[338,999,1000,1005],{},[359,1001,1002],{},[314,1003,1004],{},"409",[359,1006,1007],{},"Order cannot be cancelled -- it may already be filled, expired, or cancelled",[338,1009,1010,1015],{},[359,1011,1012],{},[314,1013,1014],{},"500",[359,1016,1017],{},"Internal server error",[297,1019,1021],{"id":1020},"example-response","Example Response",[307,1023,1026],{"className":1024,"code":1025,"language":807,"meta":316,"style":316},"language-json shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","{\n  \"orderId\": \"0xabc123...\",\n  \"chain\": \"Ethereum\",\n  \"payload\": {\n    \"type\": \"evm\",\n    \"chain\": \"Ethereum\",\n    \"chainId\": 1,\n    \"to\": \"0x1234567890abcdef...\",\n    \"data\": \"0xabcdef...\",\n    \"value\": \"0\"\n  }\n}\n",[314,1027,1028,1032,1051,1069,1081,1100,1118,1135,1155,1175,1194,1199],{"__ignoreMap":316},[404,1029,1030],{"class":406,"line":407},[404,1031,630],{"class":417},[404,1033,1034,1037,1039,1041,1043,1045,1047,1049],{"class":406,"line":448},[404,1035,1036],{"class":417},"  \"",[404,1038,363],{"class":458},[404,1040,438],{"class":417},[404,1042,544],{"class":417},[404,1044,431],{"class":417},[404,1046,643],{"class":434},[404,1048,438],{"class":417},[404,1050,554],{"class":417},[404,1052,1053,1055,1057,1059,1061,1063,1065,1067],{"class":406,"line":455},[404,1054,1036],{"class":417},[404,1056,381],{"class":458},[404,1058,438],{"class":417},[404,1060,544],{"class":417},[404,1062,431],{"class":417},[404,1064,663],{"class":434},[404,1066,438],{"class":417},[404,1068,554],{"class":417},[404,1070,1071,1073,1075,1077,1079],{"class":406,"line":497},[404,1072,1036],{"class":417},[404,1074,936],{"class":458},[404,1076,438],{"class":417},[404,1078,544],{"class":417},[404,1080,534],{"class":417},[404,1082,1083,1085,1087,1089,1091,1093,1096,1098],{"class":406,"line":502},[404,1084,570],{"class":417},[404,1086,459],{"class":462},[404,1088,438],{"class":417},[404,1090,544],{"class":417},[404,1092,431],{"class":417},[404,1094,1095],{"class":434},"evm",[404,1097,438],{"class":417},[404,1099,554],{"class":417},[404,1101,1102,1104,1106,1108,1110,1112,1114,1116],{"class":406,"line":537},[404,1103,570],{"class":417},[404,1105,381],{"class":462},[404,1107,438],{"class":417},[404,1109,544],{"class":417},[404,1111,431],{"class":417},[404,1113,663],{"class":434},[404,1115,438],{"class":417},[404,1117,554],{"class":417},[404,1119,1120,1122,1125,1127,1129,1133],{"class":406,"line":557},[404,1121,570],{"class":417},[404,1123,1124],{"class":462},"chainId",[404,1126,438],{"class":417},[404,1128,544],{"class":417},[404,1130,1132],{"class":1131},"sbssI"," 1",[404,1134,554],{"class":417},[404,1136,1137,1139,1142,1144,1146,1148,1151,1153],{"class":406,"line":567},[404,1138,570],{"class":417},[404,1140,1141],{"class":462},"to",[404,1143,438],{"class":417},[404,1145,544],{"class":417},[404,1147,431],{"class":417},[404,1149,1150],{"class":434},"0x1234567890abcdef...",[404,1152,438],{"class":417},[404,1154,554],{"class":417},[404,1156,1157,1159,1162,1164,1166,1168,1171,1173],{"class":406,"line":589},[404,1158,570],{"class":417},[404,1160,1161],{"class":462},"data",[404,1163,438],{"class":417},[404,1165,544],{"class":417},[404,1167,431],{"class":417},[404,1169,1170],{"class":434},"0xabcdef...",[404,1172,438],{"class":417},[404,1174,554],{"class":417},[404,1176,1177,1179,1182,1184,1186,1188,1191],{"class":406,"line":606},[404,1178,570],{"class":417},[404,1180,1181],{"class":462},"value",[404,1183,438],{"class":417},[404,1185,544],{"class":417},[404,1187,431],{"class":417},[404,1189,1190],{"class":434},"0",[404,1192,1193],{"class":417},"\"\n",[404,1195,1196],{"class":406,"line":612},[404,1197,1198],{"class":417},"  }\n",[404,1200,1201],{"class":406,"line":633},[404,1202,779],{"class":417},[297,1204,1206],{"id":1205},"executing-the-cancellation","Executing the Cancellation",[266,1208,1209],{},"Once you have the response, submit the payload to the blockchain to complete the cancellation:",[307,1211,1213],{"className":398,"code":1212,"language":400,"meta":316,"style":316},"import { createWalletClient, http } from \"viem\";\nimport { mainnet } from \"viem\u002Fchains\";\nimport type { components } from \".\u002Fm0-swap\";\n\ntype EvmPayload = components[\"schemas\"][\"EvmPayload\"];\n\nasync function executeCancelOrder(payload: EvmPayload, account: `0x${string}`) {\n  const client = createWalletClient({\n    chain: mainnet,\n    transport: http(),\n    account,\n  });\n\n  const hash = await client.sendTransaction({\n    to: payload.to as `0x${string}`,\n    data: payload.data as `0x${string}`,\n    value: BigInt(payload.value),\n  });\n\n  return hash;\n}\n",[314,1214,1215,1242,1264,1286,1290,1321,1325,1368,1383,1393,1406,1413,1421,1425,1447,1476,1503,1525,1533,1537,1546],{"__ignoreMap":316},[404,1216,1217,1219,1221,1224,1226,1229,1231,1233,1235,1238,1240],{"class":406,"line":407},[404,1218,411],{"class":410},[404,1220,418],{"class":417},[404,1222,1223],{"class":421}," createWalletClient",[404,1225,531],{"class":417},[404,1227,1228],{"class":421}," http",[404,1230,425],{"class":417},[404,1232,428],{"class":410},[404,1234,431],{"class":417},[404,1236,1237],{"class":434},"viem",[404,1239,438],{"class":417},[404,1241,494],{"class":417},[404,1243,1244,1246,1248,1251,1253,1255,1257,1260,1262],{"class":406,"line":448},[404,1245,411],{"class":410},[404,1247,418],{"class":417},[404,1249,1250],{"class":421}," mainnet",[404,1252,425],{"class":417},[404,1254,428],{"class":410},[404,1256,431],{"class":417},[404,1258,1259],{"class":434},"viem\u002Fchains",[404,1261,438],{"class":417},[404,1263,494],{"class":417},[404,1265,1266,1268,1270,1272,1274,1276,1278,1280,1282,1284],{"class":406,"line":455},[404,1267,411],{"class":410},[404,1269,414],{"class":410},[404,1271,418],{"class":417},[404,1273,422],{"class":421},[404,1275,425],{"class":417},[404,1277,428],{"class":410},[404,1279,431],{"class":417},[404,1281,435],{"class":434},[404,1283,438],{"class":417},[404,1285,494],{"class":417},[404,1287,1288],{"class":406,"line":497},[404,1289,452],{"emptyLinePlaceholder":451},[404,1291,1292,1294,1297,1299,1301,1303,1305,1307,1309,1311,1313,1315,1317,1319],{"class":406,"line":502},[404,1293,459],{"class":458},[404,1295,1296],{"class":462}," EvmPayload",[404,1298,466],{"class":417},[404,1300,422],{"class":462},[404,1302,471],{"class":421},[404,1304,438],{"class":417},[404,1306,476],{"class":434},[404,1308,438],{"class":417},[404,1310,481],{"class":421},[404,1312,438],{"class":417},[404,1314,956],{"class":434},[404,1316,438],{"class":417},[404,1318,491],{"class":421},[404,1320,494],{"class":417},[404,1322,1323],{"class":406,"line":537},[404,1324,452],{"emptyLinePlaceholder":451},[404,1326,1327,1330,1333,1336,1338,1341,1343,1345,1347,1350,1352,1355,1358,1360,1362,1364,1366],{"class":406,"line":557},[404,1328,1329],{"class":458},"async",[404,1331,1332],{"class":458}," function",[404,1334,1335],{"class":517}," executeCancelOrder",[404,1337,521],{"class":417},[404,1339,936],{"class":1340},"sHdIc",[404,1342,544],{"class":417},[404,1344,1296],{"class":462},[404,1346,531],{"class":417},[404,1348,1349],{"class":1340}," account",[404,1351,544],{"class":417},[404,1353,1354],{"class":417}," `",[404,1356,1357],{"class":434},"0x",[404,1359,763],{"class":417},[404,1361,368],{"class":462},[404,1363,769],{"class":417},[404,1365,676],{"class":417},[404,1367,534],{"class":417},[404,1369,1370,1372,1375,1377,1379,1381],{"class":406,"line":567},[404,1371,721],{"class":458},[404,1373,1374],{"class":421}," client",[404,1376,466],{"class":417},[404,1378,1223],{"class":517},[404,1380,521],{"class":540},[404,1382,630],{"class":417},[404,1384,1385,1387,1389,1391],{"class":406,"line":589},[404,1386,656],{"class":540},[404,1388,544],{"class":417},[404,1390,1250],{"class":421},[404,1392,554],{"class":417},[404,1394,1395,1398,1400,1402,1404],{"class":406,"line":606},[404,1396,1397],{"class":540},"    transport",[404,1399,544],{"class":417},[404,1401,1228],{"class":517},[404,1403,738],{"class":540},[404,1405,554],{"class":417},[404,1407,1408,1411],{"class":406,"line":612},[404,1409,1410],{"class":421},"    account",[404,1412,554],{"class":417},[404,1414,1415,1417,1419],{"class":406,"line":633},[404,1416,673],{"class":417},[404,1418,676],{"class":540},[404,1420,494],{"class":417},[404,1422,1423],{"class":406,"line":653},[404,1424,452],{"emptyLinePlaceholder":451},[404,1426,1427,1429,1432,1434,1436,1438,1440,1443,1445],{"class":406,"line":670},[404,1428,721],{"class":458},[404,1430,1431],{"class":421}," hash",[404,1433,466],{"class":417},[404,1435,514],{"class":410},[404,1437,1374],{"class":421},[404,1439,283],{"class":417},[404,1441,1442],{"class":517},"sendTransaction",[404,1444,521],{"class":540},[404,1446,630],{"class":417},[404,1448,1449,1452,1454,1457,1459,1461,1464,1466,1468,1470,1472,1474],{"class":406,"line":681},[404,1450,1451],{"class":540},"    to",[404,1453,544],{"class":417},[404,1455,1456],{"class":421}," payload",[404,1458,283],{"class":417},[404,1460,1141],{"class":421},[404,1462,1463],{"class":410}," as",[404,1465,1354],{"class":417},[404,1467,1357],{"class":434},[404,1469,763],{"class":417},[404,1471,368],{"class":462},[404,1473,769],{"class":417},[404,1475,554],{"class":417},[404,1477,1478,1481,1483,1485,1487,1489,1491,1493,1495,1497,1499,1501],{"class":406,"line":691},[404,1479,1480],{"class":540},"    data",[404,1482,544],{"class":417},[404,1484,1456],{"class":421},[404,1486,283],{"class":417},[404,1488,1161],{"class":421},[404,1490,1463],{"class":410},[404,1492,1354],{"class":417},[404,1494,1357],{"class":434},[404,1496,763],{"class":417},[404,1498,368],{"class":462},[404,1500,769],{"class":417},[404,1502,554],{"class":417},[404,1504,1505,1508,1510,1513,1515,1517,1519,1521,1523],{"class":406,"line":696},[404,1506,1507],{"class":540},"    value",[404,1509,544],{"class":417},[404,1511,1512],{"class":517}," BigInt",[404,1514,521],{"class":540},[404,1516,936],{"class":421},[404,1518,283],{"class":417},[404,1520,1181],{"class":421},[404,1522,676],{"class":540},[404,1524,554],{"class":417},[404,1526,1527,1529,1531],{"class":406,"line":718},[404,1528,673],{"class":417},[404,1530,676],{"class":540},[404,1532,494],{"class":417},[404,1534,1535],{"class":406,"line":743},[404,1536,452],{"emptyLinePlaceholder":451},[404,1538,1539,1542,1544],{"class":406,"line":776},[404,1540,1541],{"class":410},"  return",[404,1543,1431],{"class":421},[404,1545,494],{"class":417},[404,1547,1548],{"class":406,"line":782},[404,1549,779],{"class":417},[297,1551,1553],{"id":1552},"notes","Notes",[1555,1556,1557,1561,1567],"ul",{},[1558,1559,1560],"li",{},"Only the original order creator can cancel a limit order",[1558,1562,1563,1564,1566],{},"A ",[314,1565,1004],{}," response means the order is in a terminal state (filled, expired, or already cancelled) and no action is needed",[1558,1568,1569],{},"The cancellation is not final until the returned transaction payload is submitted and confirmed on-chain",[1571,1572,1573],"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 .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}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 .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}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 .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .sHdIc, html code.shiki .sHdIc{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic}",{"title":316,"searchDepth":407,"depth":448,"links":1575},[1576,1581,1582,1587,1588,1589],{"id":299,"depth":448,"text":300,"children":1577},[1578,1579,1580],{"id":304,"depth":455,"text":305},{"id":319,"depth":455,"text":320},{"id":329,"depth":455,"text":330},{"id":394,"depth":448,"text":395},{"id":708,"depth":448,"text":814,"children":1583},[1584,1585,1586],{"id":817,"depth":455,"text":818},{"id":888,"depth":455,"text":889},{"id":968,"depth":455,"text":969},{"id":1020,"depth":448,"text":1021},{"id":1205,"depth":448,"text":1206},{"id":1552,"depth":448,"text":1553},"Builds a cancellation transaction for an existing limit order.","md",null,{},{"title":41,"description":1590},"E7b7HApOeZFAEFZtWrG890xRxhBZ5WOY-Sg2Z1XGFsk",[1597,1599],{"title":32,"path":33,"stem":34,"description":1598,"children":-1},"Overview of M0's Orchestration API (REST) and Protocol API (GraphQL).",{"title":45,"path":46,"stem":47,"description":1600,"children":-1},"Returns the status and details for a single order ID."]