The DLN API provides a convenient high-level interface to attach hooks to orders upon requesting an order creation transaction. The API takes the
burden of proper hook data validation, encoding, cost estimation, and simulation, ensuring that an order would get filled on the destination chain and
there is no technical inconsistencies that may prevent it. This is especially important for atomic success-required hooks, as an error during such
hook execution would prevent an order from getting filled, and an order’s authority would need to initiate a cancellation procedure from the
destination chain, which increases friction and worsens UX.To specify the hook, use the dlnHook parameter of the create-tx endpoint. The value for this parameter must be a JSON object that describes the
hook for the given destination chain. Depending on the destination chain, different templates are available.
where data is represented as a versioned transaction with one or more instructions. Thus, only non-atomic success-required hooks are supported.To craft a proper versioned transaction, use the Creating Hook data for Solana guide.
To easily attach an atomic success-required hook that executes an arbitrary transaction call via the default Universal
hook, the DLN API provides a simple shortcut for that:
The data.to and data.calldata properties represent the transaction call that should be made, as explained in the Universal hook section. The gas
property must be specified if:
the transaction call can’t be estimated currently, which leads to inability of the DLN API to properly estimate transaction costs.
Deposit 0.1 USDC to AAVE Hook Example
The following snippet produces a dlnHook parameter that results a hook to deposit 0.1 USDC to AAVE on behalf of 0xc31dcE63f4B284Cf3bFb93A278F970204409747f:
const query = new URLSearchParams({ // other parameters were omitted for clarity dstChainId: 137, dstChainTokenOut: '0x3c499c542cef5e3811e1192ce70d8cc03d5c3359', dstChainTokenOutAmount: '100000', dlnHook: JSON.stringify({ type: "evm_transaction_call"; data: { "to": "0x794a61358D6845594F94dc1DB02A252b5b4814aD", "calldata": "0x617ba0370000000000000000000000003c499c542cef5e3811e1192ce70d8cc03d5c335900000000000000000000000000000000000000000000000000000000000186a0000000000000000000000000c31dce63f4b284cf3bfb93a278f970204409747f0000000000000000000000000000000000000000000000000000000000000000", "gas": 0 } })})
Full working example can be seen here.This simple shortcut would be transparently converted by the DLN API to a hook with the following properties:
To ensure best and frictionless user experience, the DLN API would refuse to return a transaction to create an order if it is impossible to
fulfill an order with the given hook.
The hook is attached to the order during order’s placement on the source chain, however actual fulfillment occurs on the destination chain. If the
attached hook is success-required and exits unsuccessfully upon fulfillment, it prevents the entire order from getting filled. This would necessitate
an order’s authority to initiate a cancellation procedure from the destination chain, which increases friction and worsens UX.To prevent this, the DLN API constructs a potential transaction to fulfill the order to be created, and simulates this transaction internally to
ensure that the order to be created could actually be filled. If such simulation causes an error, that points to the problem within the hook, the API
would refuse to return a transaction, but would return an error with details instead, so you can debug the potential fulfillment transaction to find a
pitfalls in the hook:
{"docsConfig":{"theme":"palm","$schema":"https://mintlify.com/docs.json","name":"deBridge Home","colors":{"primary":"#16A34A","light":"#07C983","dark":"#15803D"},"logo":{"light":"https://mintcdn.com/debridge-f846479f/QCNI5e_yZ9g1jsea/logo/debridge-light.svg?fit=max\u0026auto=format\u0026n=QCNI5e_yZ9g1jsea\u0026q=85\u0026s=2cbd91799e2f20631530eaaff7e9fd08","dark":"https://mintcdn.com/debridge-f846479f/QCNI5e_yZ9g1jsea/logo/debridge-dark.svg?fit=max\u0026auto=format\u0026n=QCNI5e_yZ9g1jsea\u0026q=85\u0026s=9548271c1e74bff2028863469fde961e","href":"https://www.debridge.com"},"favicon":"https://mintcdn.com/debridge-f846479f/QCNI5e_yZ9g1jsea/favicon.ico?fit=max\u0026auto=format\u0026n=QCNI5e_yZ9g1jsea\u0026q=85\u0026s=b8f5e82a52f31500d9fd2b1323e02942","navbar":{"links":[{"href":"https://discord.com/invite/debridge","label":"Support"}]},"footer":{"socials":{"discord":"https://discord.gg/debridge","x":"https://x.com/debridge","github":"https://github.com/debridge-finance","telegram":"https://t.me/deBridge_finance","linkedin":"https://www.linkedin.com/company/debridge-finance","medium":"https://debridge.medium.com/"}},"integrations":{"gtm":{"tagId":"G-7NGQFFES38"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"debridge-f846479f","hasAudioNarration":false,"actualSubdomain":"debridge-f846479f","customDomains":["docs.debridge.com"],"gitSource":{"type":"github","owner":"debridge-finance","repo":"mintlify-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6aaa81aca631a6e42fddda5a","clientVersion":"0.0.4088","searchFilterCounts":[{"language":"default","tag":"Home","count":133},{"language":"default","tag":"Other Products","count":38},{"language":"default","tag":"deBridge Messaging Protocol","count":32},{"language":"default","tag":"Order Tracking API Reference","count":29},{"language":"default","tag":"API Integration Guides","count":27},{"language":"default","tag":"deBridge Liquidity Network","count":27},{"language":"default","tag":"Dev Guides","count":25},{"language":"default","tag":"EVM","count":19},{"language":"default","tag":"Overview","count":14},{"language":"default","tag":"Monetization","count":10}]},"assistantConfig":{"enableStarterQuestions":false},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"select.text-playground-input,select.text-playground-input option,select.text-playground-input optgroup{background-color:#090D0D;color:#f3f4f6}select.text-playground-input option:checked{background-color:#090D0D;color:#f8fafc}.wide-table table{width:100%;text-align:left}"}],"page":{"pagePath":"dln-details/integration-guidelines/order-creation/hooks/integrating-hooks","slug":"/dln-details/integration-guidelines/order-creation/hooks/integrating-hooks","pageMetadata":{"title":"Integrating Hooks","description":"Hooks integration guidelines.","href":"/dln-details/integration-guidelines/order-creation/hooks/integrating-hooks"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Hooks integration guidelines.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,em:`em`,li:`li`,p:`p`,pre:`pre`,span:`span`,ul:`ul`,..._provideComponents(),...props.components},{Accordion,CodeBlock,Heading,Warning}=_components;if(!Accordion)_missingMdxReference(`Accordion`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`The DLN API provides a convenient high-level interface to attach hooks to orders upon requesting `,_jsx(_components.a,{href:`/dln-details/integration-guidelines/order-creation/creating-order/creating-order`,children:`an order creation transaction`}),`. The API takes the\nburden of proper hook data validation, encoding, cost estimation, and simulation, ensuring that an order would get filled on the destination chain and\nthere is no technical inconsistencies that may prevent it. This is especially important for atomic success-required hooks, as an error during such\nhook execution would prevent an order from getting filled, and an order’s authority would need to initiate `,_jsx(_components.a,{href:`/dln-details/integration-guidelines/order-creation/cancelling-order`,children:`a cancellation procedure`}),` from the\ndestination chain, which increases friction and worsens UX.`]}),`\n`,_jsxs(_components.p,{children:[`To specify the hook, use the `,_jsx(_components.code,{children:`dlnHook`}),` parameter of the `,_jsxs(_components.a,{href:`/api-reference/dln/this-endpoint-returns-the-data-for-a-transaction-to-place-a-cross-chain-dln-order`,children:[_jsx(_components.code,{children:`create-tx`}),` endpoint`]}),`. The value for this parameter must be a JSON object that describes the\nhook for the given destination chain. Depending on the destination chain, different templates are available.`]}),`\n`,_jsx(Heading,{level:`1`,id:`serialized-instructions-hook-for-solana`,children:`Serialized instructions hook for Solana`}),`\n`,_jsx(_components.p,{children:`To set the hook to be executed upon filling order on Solana (dstChainId=7565164), the following template should be used:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{ `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#C8C8C8`},children:`type`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"solana_serialized_instructions\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`; `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#C8C8C8`},children:`data`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0x...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`where data is represented as a versioned transaction with one or more instructions. Thus, only `,_jsx(_components.em,{children:`non-atomic success-required`}),` hooks are supported.`]}),`\n`,_jsxs(_components.p,{children:[`To craft a proper versioned transaction, use the `,_jsx(_components.a,{href:`/dln-details/integration-guidelines/order-creation/hooks/solana-hook-data`,children:`Creating Hook data for Solana`}),` guide.`]}),`\n`,_jsx(Accordion,{title:`DlnHook encoding example`,id:`dlnhook-encoding-example`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#C8C8C8`},children:`dlnHook`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`JSON`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`stringify`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` type:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"solana_serialized_instructions\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` data: \"0x000000000000000001000000000000000000000000010000000000000000010000000000000000135d3e6be2a2ae5274cfe4007df2f62ed31c618f048337fd1435ca2dee2a0d5d12000000000000001968562fef0aab1b1d8f99d44306595cd4ba41d7cc899c007a774d23ad702ff60101fd97b70d573d364ef44769540777b1ecdc21b88ff7def38c45d020e271c589dc00010000000000000000000000000000000000000000000000000000000000000000000062584959deb8a728a91cebdc187b545d920479265052145f31fb80c73fac5aea00009845350d27001686985bbc5c4a3646c928d7de27ddab09f2de56d21537201c4300019845350d27001686985bbc5c4a3646c928d7de27ddab09f2de56d21537201c4300010c1e5ba8fe0ec5c5e44d12c2b6317a8781ca19ddb0e1532b136f418e1d588f9500010c1e5ba8fe0ec5c5e44d12c2b6317a8781ca19ddb0e1532b136f418e1d588f95000106ddf6e1d765a193d9cbe146ceeb79ac1cb485ed5f5b37913a8cf5857eff00a900000000000000000000000000000000000000000000000000000000000000000000000006a7d517187bd16635dad40455fdc2c0c124c68f215675a5dbbacb5f0800000000008c97258f4e2489f1bb3d1029148e0d830b5a1399daff1084048e7bd8dbe9f8590000ef0d8b6fda2ceba41da15d4095d1da392a0d2f8ed0c6c7bc0f4cfac8c280b56d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000974d0b69f43d964da48af118a28037ab921a95eae1e637497b22867ce416255a00016be7362bf52e4ea29063d29ab43a832253ed7c68b62cf68e8d706a2f9531c1eb0001c6fa7af3bedbad3a3d65f36aabc97431b1bbe4c2d2f6e0e47ca60203452f5d610000040000000000000000736f6c\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`})`})}),`\n`]})})})}),`\n`,_jsx(Heading,{level:`1`,id:`transaction-call-hook-for-evm`,children:`Transaction call hook for EVM`}),`\n`,_jsxs(_components.p,{children:[`To easily attach an atomic success-required hook that executes an arbitrary transaction call via the default `,_jsx(_components.a,{href:`/dln-details/protocol-specs/evm-chains-hook-anatomy#universal-hook`,children:`Universal\nhook`}),`, the DLN API provides a simple shortcut for that:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`8`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#C8C8C8`},children:` type`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"evm_transaction_call\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#C8C8C8`},children:` data`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"to\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0x...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"calldata\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0x...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"gas\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`data.to`}),` and `,_jsx(_components.code,{children:`data.calldata`}),` properties represent the transaction call that should be made, as explained in the `,_jsx(_components.a,{href:`/dln-details/protocol-specs/evm-chains-hook-anatomy#universal-hook`,children:`Universal hook`}),` section. The `,_jsx(_components.code,{children:`gas`}),`\nproperty must be specified if:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`the underlying call handles errors gracefully, which leads to `,_jsx(_components.a,{href:`https://x.com/AlexSmirnov__/status/1538903343455772673`,children:`underestimation of gas`}),`.`]}),`\n`,_jsx(_components.li,{children:`the transaction call can’t be estimated currently, which leads to inability of the DLN API to properly estimate transaction costs.`}),`\n`]}),`\n`,_jsxs(Accordion,{title:`Deposit 0.1 USDC to AAVE Hook Example`,id:`deposit-0-1-usdc-to-aave-hook-example`,children:[_jsxs(_components.p,{children:[`The following snippet produces a dlnHook parameter that results a hook to deposit 0.1 USDC to AAVE on behalf of `,_jsx(_components.code,{children:`0xc31dcE63f4B284Cf3bFb93A278F970204409747f`}),`:`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`15`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`15`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` query`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` URLSearchParams`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // other parameters were omitted for clarity`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` dstChainId:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 137`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` dstChainTokenOut:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '0x3c499c542cef5e3811e1192ce70d8cc03d5c3359'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` dstChainTokenOutAmount:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '100000'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` dlnHook:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` JSON`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`stringify`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` type:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"evm_transaction_call\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` data`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"to\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"0x794a61358D6845594F94dc1DB02A252b5b4814aD\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"calldata\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"0x617ba0370000000000000000000000003c499c542cef5e3811e1192ce70d8cc03d5c335900000000000000000000000000000000000000000000000000000000000186a0000000000000000000000000c31dce63f4b284cf3bfb93a278f970204409747f0000000000000000000000000000000000000000000000000000000000000000\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"gas\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 0`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` })`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`})`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`]})})})]}),`\n`,_jsxs(_components.p,{children:[`Full working example can be seen `,_jsx(_components.a,{href:`https://github.com/debridge-finance/api-integrator-example/blob/master/src/scripts/hooks/evm-evm/basic.ts`,children:`here`}),`.`]}),`\n`,_jsx(_components.p,{children:`This simple shortcut would be transparently converted by the DLN API to a hook with the following properties:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`12`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`12`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#C8C8C8`},children:` fallbackAddress`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`dstChainTokenOutRecipient`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#C8C8C8`},children:` target`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'0x0000000000000000000000000000000000000000'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#C8C8C8`},children:` reward`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#C8C8C8`},children:` isNonAtomic`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#C8C8C8`},children:` isSuccessRequired`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#C8C8C8`},children:` targetPayload`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#C8C8C8`},children:` to`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`dlnHook`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`data`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`to`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#C8C8C8`},children:` callData`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`dlnHook`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`calldata`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`data`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#C8C8C8`},children:` gas`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`dlnHook`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`data`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`gas`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`1`,id:`arbitrary-hook-for-evm`,children:`Arbitrary hook for EVM`}),`\n`,_jsxs(_components.p,{children:[`To provide a complete customization of a hook, the DLN API offers a template that fully replicates the\n`,_jsx(_components.a,{href:`/dln-details/protocol-specs/evm-chains-hook-anatomy`,children:`HookDataV1`}),` struct:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`11`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`11`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"evm_hook_data_v1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"fallbackAddress\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0x...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"target\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0x...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"reward\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"isNonAtomic\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#82071E`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#F44747`,\"--shiki-dark-font-style\":`inherit`},children:`boolean`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"isSuccessRequired\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#82071E`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#F44747`,\"--shiki-dark-font-style\":`inherit`},children:`boolean`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"targetPayload\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0x\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`The DLN API would encode it and inject into an order.`}),`\n`,_jsx(Heading,{level:`1`,id:`hook-validity-considerations`,children:`Hook validity considerations`}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`To ensure best and frictionless user experience, the DLN API would refuse to return a transaction to create an order if it is impossible to\nfulfill an order with the given hook.`})}),`\n`,_jsxs(_components.p,{children:[`The hook is attached to the order during order’s placement on the source chain, however actual fulfillment occurs on the destination chain. If the\nattached hook is success-required and exits unsuccessfully upon fulfillment, it prevents the entire order from getting filled. This would necessitate\nan order’s authority to initiate `,_jsx(_components.a,{href:`/dln-details/integration-guidelines/order-creation/cancelling-order`,children:`a cancellation procedure`}),` from the destination chain, which increases friction and worsens UX.`]}),`\n`,_jsx(_components.p,{children:`To prevent this, the DLN API constructs a potential transaction to fulfill the order to be created, and simulates this transaction internally to\nensure that the order to be created could actually be filled. If such simulation causes an error, that points to the problem within the hook, the API\nwould refuse to return a transaction, but would return an error with details instead, so you can debug the potential fulfillment transaction to find a\npitfalls in the hook:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`22`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`22`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"errorId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"HOOK_FAILED\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"errorPayload\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"potentialFulfillOrderTxSimulation\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"simulationInput\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"chainId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#82071E`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#F44747`,\"--shiki-dark-font-style\":`inherit`},children:`number`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"blockNumber\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#82071E`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#F44747`,\"--shiki-dark-font-style\":`inherit`},children:`number`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"tx\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"from\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#82071E`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#F44747`,\"--shiki-dark-font-style\":`inherit`},children:`string`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"to\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#82071E`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#F44747`,\"--shiki-dark-font-style\":`inherit`},children:`string`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#82071E`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#F44747`,\"--shiki-dark-font-style\":`inherit`},children:`string`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"value\"`}),_jsx(_components.span,{style:{color:`#82071E`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#F44747`,\"--shiki-dark-font-style\":`inherit`},children:`?`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#82071E`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#F44747`,\"--shiki-dark-font-style\":`inherit`},children:`string`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"simulationError\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"errorName\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#82071E`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#F44747`,\"--shiki-dark-font-style\":`inherit`},children:`string`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#82071E`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#F44747`,\"--shiki-dark-font-style\":`inherit`},children:`string`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Integrating Hooks","description":"Hooks integration guidelines.","href":"/dln-details/integration-guidelines/order-creation/hooks/integrating-hooks"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Serialized instructions hook for Solana","slug":"serialized-instructions-hook-for-solana","depth":1,"children":[]},{"title":"Transaction call hook for EVM","slug":"transaction-call-hook-for-evm","depth":1,"children":[]},{"title":"Arbitrary hook for EVM","slug":"arbitrary-hook-for-evm","depth":1,"children":[]},{"title":"Hook validity considerations","slug":"hook-validity-considerations","depth":1,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"debridge-f846479f","siteName":"deBridge Home","title":"Integrating Hooks - deBridge Home","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2025-10-22T11:35:16.794Z","originalFileLocation":"dln-details/integration-guidelines/order-creation/hooks/integrating-hooks.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Hooks integration guidelines.\">\u003cmeta data-mint-head name=\"application-name\" content=\"deBridge Home\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/debridge-f846479f/HSXoXXAo-2b7QWKN/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/debridge-f846479f/HSXoXXAo-2b7QWKN/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/debridge-f846479f/HSXoXXAo-2b7QWKN/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/debridge-f846479f/HSXoXXAo-2b7QWKN/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/debridge-f846479f/HSXoXXAo-2b7QWKN/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/debridge-f846479f/HSXoXXAo-2b7QWKN/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/debridge-f846479f/HSXoXXAo-2b7QWKN/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/debridge-f846479f/HSXoXXAo-2b7QWKN/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/debridge-f846479f/HSXoXXAo-2b7QWKN/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Integrating Hooks - deBridge Home\">\u003cmeta data-mint-head property=\"og:description\" content=\"Hooks integration guidelines.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"deBridge Home\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.debridge.com/dln-details/integration-guidelines/order-creation/hooks/integrating-hooks\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://debridge-f846479f.mintlify.site/_mintlify/api/og/v2?division=Hooks\u0026amp;title=Integrating+Hooks\u0026amp;description=Hooks+integration+guidelines.\u0026amp;theme=9920c44edf7a7b67cb04194d\u0026amp;signature=52a54d77bcdfe799671a0d9038d965dd44ca33dcf84aaf7060a2a5bcd94203e8\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Integrating Hooks - deBridge Home\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Hooks integration guidelines.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://debridge-f846479f.mintlify.site/_mintlify/api/og/v2?division=Hooks\u0026amp;title=Integrating+Hooks\u0026amp;description=Hooks+integration+guidelines.\u0026amp;theme=9920c44edf7a7b67cb04194d\u0026amp;signature=52a54d77bcdfe799671a0d9038d965dd44ca33dcf84aaf7060a2a5bcd94203e8\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/debridge-f846479f/HSXoXXAo-2b7QWKN/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"deBridge Home\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#16A34A\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.debridge.com/dln-details/integration-guidelines/order-creation/hooks/integrating-hooks\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/dln-details/integration-guidelines/order-creation/hooks/integrating-hooks.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.debridge.com/#organization\",\"name\":\"deBridge Home\",\"url\":\"https://docs.debridge.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/debridge-f846479f/QCNI5e_yZ9g1jsea/logo/debridge-light.svg?fit=max\u0026auto=format\u0026n=QCNI5e_yZ9g1jsea\u0026q=85\u0026s=2cbd91799e2f20631530eaaff7e9fd08\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.debridge.com#website\",\"name\":\"deBridge Home\",\"url\":\"https://docs.debridge.com\",\"publisher\":{\"@id\":\"https://docs.debridge.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.debridge.com/dln-details/integration-guidelines/order-creation/hooks/integrating-hooks#webpage\",\"url\":\"https://docs.debridge.com/dln-details/integration-guidelines/order-creation/hooks/integrating-hooks\",\"name\":\"Integrating Hooks\",\"description\":\"Hooks integration guidelines.\",\"dateModified\":\"2025-10-22T11:35:16.794Z\",\"isPartOf\":{\"@id\":\"https://docs.debridge.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.debridge.com/dln-details/integration-guidelines/order-creation/hooks/integrating-hooks#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.debridge.com/dln-details/integration-guidelines/order-creation/hooks/integrating-hooks#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"deBridge Home\",\"item\":\"https://docs.debridge.com\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Integrating Hooks\",\"item\":\"https://docs.debridge.com/dln-details/integration-guidelines/order-creation/hooks/integrating-hooks\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.debridge.com/dln-details/integration-guidelines/order-creation/hooks/integrating-hooks#article\",\"headline\":\"Integrating Hooks\",\"name\":\"Integrating Hooks\",\"description\":\"Hooks integration guidelines.\",\"url\":\"https://docs.debridge.com/dln-details/integration-guidelines/order-creation/hooks/integrating-hooks\",\"mainEntityOfPage\":{\"@id\":\"https://docs.debridge.com/dln-details/integration-guidelines/order-creation/hooks/integrating-hooks#webpage\"},\"dateModified\":\"2025-10-22T11:35:16.794Z\",\"publisher\":{\"@id\":\"https://docs.debridge.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.debridge.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"deBridge Home\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"deBridge Home","nav":{"global":null,"dropdowns":[{"dropdown":"Home","icon":"house","tabs":[{"tab":"Home","pages":[{"title":"Home","href":"/home/welcome"}]},{"tab":"deBridge Liquidity Network","pages":[{"title":"deBridge Liquidity Network","href":"/dln-details/overview/introduction"}]},{"tab":"API Integration Guides","groups":[{"group":"API","pages":[{"title":"Authentication","href":"/dln-details/integration-guidelines/order-creation/authentication"},{"title":"Quickstart","href":"/dln-details/integration-guidelines/order-creation/creating-order/quick-start"},{"title":"Specifying Assets","href":"/dln-details/integration-guidelines/order-creation/creating-order/specifying-assets"}]},{"group":"Cross-Chain Orders","pages":[{"title":"Cross-Chain Order Creation","href":"/dln-details/integration-guidelines/order-creation/creating-order/creating-order"},{"title":"API Parameters","href":"/dln-details/integration-guidelines/order-creation/creating-order/api-parameters/api-parameters"},{"group":"Response","pages":[{"title":"API Response","href":"/dln-details/integration-guidelines/order-creation/creating-order/api-parameters/response"},{"title":"Response Example","href":"/dln-details/integration-guidelines/order-creation/creating-order/api-parameters/response-example"}]},{"title":"Submitting the Transaction","mode":"wide","href":"/dln-details/integration-guidelines/order-creation/submitting-the-transaction"},{"title":"Cancelling an Order","mode":"wide","href":"/dln-details/integration-guidelines/order-creation/cancelling-order"},{"title":"Quoting Strategies","href":"/dln-details/integration-guidelines/order-creation/creating-order/quoting-strategies"},{"title":"Refreshing Estimates","href":"/dln-details/integration-guidelines/order-creation/creating-order/refreshing-estimates"}]},{"group":"Same-Chain Swaps","pages":[{"title":"Same-Chain Swaps","description":"An engineering walkthrough for integrating DLN’s same-chain swaps with executable transactions, affiliate fees, and production-grade tracking.","href":"/dln-details/integration-guidelines/same-chain-swaps/engineer"}]},{"group":"Hooks","pages":[{"title":"Integrating Hooks","href":"/dln-details/integration-guidelines/order-creation/hooks/integrating-hooks"},{"title":"Solana Hook Data","description":"Solana-specific hook data.","href":"/dln-details/integration-guidelines/order-creation/hooks/solana-hook-data"}]},{"group":"Monetization","pages":[{"title":"Affiliate Fees","href":"/dln-details/affiliates/affiliate-fees"},{"title":"Withdrawing Affiliate Fees","mode":"wide","href":"/dln-details/affiliates/withdrawing-affiliate-fees"}]},{"group":"DLN","pages":[{"title":"This endpoint returns the data for a transaction to place a cross-chain DLN order.","deprecated":null,"version":null,"openapi":"/dln-details/swagger/create-tx.json get /v1.0/dln/order/create-tx","href":"/api-reference/dln/this-endpoint-returns-the-data-for-a-transaction-to-place-a-cross-chain-dln-order"},{"title":"This endpoint returns the data of order.","deprecated":null,"version":null,"openapi":"/dln-details/swagger/create-tx.json get /v1.0/dln/order/{id}","href":"/api-reference/dln/this-endpoint-returns-the-data-of-order"},{"title":"This endpoint returns the status of order.","deprecated":null,"version":null,"openapi":"/dln-details/swagger/create-tx.json get /v1.0/dln/order/{id}/status","href":"/api-reference/dln/this-endpoint-returns-the-status-of-order"},{"title":"This endpoint returns the status of order.","deprecated":null,"version":null,"openapi":"/dln-details/swagger/create-tx.json get /v1.0/dln/tx/{hash}/order-ids","href":"/api-reference/dln/this-endpoint-returns-the-status-of-order-1"},{"title":"Generates a transaction that cancels the given order","deprecated":null,"version":null,"openapi":"/dln-details/swagger/create-tx.json get /v1.0/dln/order/{id}/cancel-tx","href":"/api-reference/dln/generates-a-transaction-that-cancels-the-given-order"},{"title":"Generates a transaction that cancels external call in the given order","deprecated":null,"version":null,"openapi":"/dln-details/swagger/create-tx.json get /v1.0/dln/order/{id}/extcall-cancel-tx","href":"/api-reference/dln/generates-a-transaction-that-cancels-external-call-in-the-given-order"}]},{"group":"AppControllerV10","pages":[{"title":"","deprecated":true,"version":null,"openapi":"/dln-details/swagger/create-tx.json get /v1.0/supported-chains","href":"/api-reference/appcontrollerv10/get-v10supported-chains"},{"title":"Get v10supported chains info","deprecated":null,"version":null,"openapi":"/dln-details/swagger/create-tx.json get /v1.0/supported-chains-info","href":"/api-reference/appcontrollerv10/get-v10supported-chains-info"},{"title":"Get v10token list","deprecated":null,"version":null,"openapi":"/dln-details/swagger/create-tx.json get /v1.0/token-list","href":"/api-reference/appcontrollerv10/get-v10token-list"}]},{"group":"single chain swap","pages":[{"title":"Get v10chaintransaction","deprecated":null,"version":null,"openapi":"/dln-details/swagger/create-tx.json get /v1.0/chain/transaction","href":"/api-reference/single-chain-swap/get-v10chaintransaction"},{"title":"Get v10chainestimation","deprecated":null,"version":null,"openapi":"/dln-details/swagger/create-tx.json get /v1.0/chain/estimation","href":"/api-reference/single-chain-swap/get-v10chainestimation"}]}]},{"tab":"Order Tracking API Reference","pages":[{"title":"Order Tracking API Reference","href":"/dln-details/integration-guidelines/order-creation/order-tracking-api/tracking-orders"}]}]},{"dropdown":"Other Products","icon":"envelope-open-dollar","tabs":[{"tab":"Other Ways to Integrate","groups":[{"group":"Overview","pages":[{"title":"Overview","href":"/dln-details/other-ways-to-integrate"}]},{"group":"Widget","pages":[{"title":"deBridge Widget","mode":"wide","href":"/dln-details/widget/deBridge-widget"}]},{"group":"App","pages":[{"title":"Custom Linking","href":"/dln-details/widget/app"}]},{"group":"Smart Contract Integration","pages":[{"title":"Introduction","href":"/dln-details/integration-guidelines/smart-contracts/introduction"},{"title":"Placing Orders","href":"/dln-details/integration-guidelines/smart-contracts/placing-orders"},{"title":"Filling Orders","href":"/dln-details/integration-guidelines/smart-contracts/filling-orders"}]}]},{"tab":"deBridge Messaging Protocol","groups":[{"group":"Overview","pages":[{"title":"Protocol Overview","href":"/dmp-details/dmp/protocol-overview"},{"title":"Fees and Supported Chains","mode":"wide","href":"/dmp-details/dmp/fees-supported-chains"},{"title":"Deployed Contracts","mode":"wide","href":"/dmp-details/dmp/deployed-contracts"},{"title":"Security","href":"/dmp-details/dmp/security"},{"title":"Slashing and Delegated Staking","mode":"wide","href":"/dmp-details/dmp/slashing-and-delegated-staking"}]},{"group":"dePort","pages":[{"title":"Getting Started","mode":"wide","href":"/dmp-details/dePort/getting-started"},{"title":"Transfer Flow","mode":"wide","href":"/dmp-details/dePort/transfer-flow"}]},{"group":"Dev Guides","pages":[{"title":"Cross-Chain Call Lifecycle","href":"/dmp-details/dev-guides/cross-chain-call-lifecycle"},{"title":"Development Tools","href":"/dmp-details/dev-guides/development-tools"},{"title":"Gathering Data for the Claim","href":"/dmp-details/dev-guides/gathering-data-for-claim"},{"group":"EVM","pages":[{"group":"Examples","pages":[{"title":"Building EVM Dapp","href":"/dmp-details/dev-guides/evm/building-evm-dapp"},{"title":"introduction","href":"/dmp-details/dev-guides/evm/introduction"}]},{"group":"Interfaces","pages":[{"title":"ICallProxy","href":"/dmp-details/dev-guides/evm/interfaces/ICallProxy"},{"title":"IDeBridgeGate","href":"/dmp-details/dev-guides/evm/interfaces/IDeBridgeGate"},{"title":"IDeBridgeToken","href":"/dmp-details/dev-guides/evm/interfaces/IDeBridgeToken"},{"title":"IDeBridgeTokenDeployer","href":"/dmp-details/dev-guides/evm/interfaces/IDeBridgeTokenDeployer"},{"title":"IOraclesManager","href":"/dmp-details/dev-guides/evm/interfaces/IOraclesManager"},{"title":"ISignatureVerifier","href":"/dmp-details/dev-guides/evm/interfaces/ISignatureVerifier"},{"title":"IWethGate","href":"/dmp-details/dev-guides/evm/interfaces/IWethGate"}]},{"group":"Libraries","pages":[{"title":"Flags","href":"/dmp-details/dev-guides/evm/libraries/flags"}]},{"group":"Periphery","pages":[{"title":"CallProxy","href":"/dmp-details/dev-guides/evm/periphery/CallProxy"},{"title":"DeBridgeToken","href":"/dmp-details/dev-guides/evm/periphery/DeBridgeToken"},{"title":"DeBridgeTokenProxy","href":"/dmp-details/dev-guides/evm/periphery/DeBridgeTokenProxy"},{"title":"SimpleFeeProxy","href":"/dmp-details/dev-guides/evm/periphery/SimpleFeeProxy"}]},{"group":"Transfers","pages":[{"title":"DeBridgeGate","href":"/dmp-details/dev-guides/evm/transfers/DeBridgeGate"},{"title":"DeBridgeTokenDeployer","href":"/dmp-details/dev-guides/evm/transfers/DeBridgeTokenDeployer"},{"title":"OraclesManager","href":"/dmp-details/dev-guides/evm/transfers/OraclesManager"},{"title":"SignatureVerifier","href":"/dmp-details/dev-guides/evm/transfers/SignatureVerifier"},{"title":"WethGate","href":"/dmp-details/dev-guides/evm/transfers/WethGate"}]}]},{"group":"Solana","pages":[{"group":"Cross-Chain Calls","pages":[{"title":"Sending Cross-Chain Messages","href":"/dmp-details/dev-guides/solana/sending-cross-chain-messages"},{"title":"On-Chain External Call Preparation","href":"/dmp-details/dev-guides/solana/on-chain-external-call-preparation"},{"title":"Off-Chain External Call Preparation","href":"/dmp-details/dev-guides/solana/off-chain-external-call-preparation"}]}]}]}]}]}]},"basePath":"","title":"Integrating Hooks - deBridge Home","buildId":"dpl_DTau1J5HqS9UTgVSDwGksstFWtPa","deploymentId":"dpl_DTau1J5HqS9UTgVSDwGksstFWtPa","dynamics":[],"chunks":[]}