create_tx
Construct a cross-chain swap transaction via deBridge DLN protocol by specifying source and destination chains, token addresses, amounts, recipient, order authority addresses, affiliate fees, and operating expenses.
Instructions
Create a cross-chain swap transaction via the deBridge DLN protocol
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| srcChainId | Yes | Source chain ID | |
| srcChainTokenIn | Yes | Token address on source chain | |
| srcChainTokenInAmount | Yes | Amount in smallest units (wei, lamports) | |
| dstChainId | Yes | Destination chain ID | |
| dstChainTokenOut | Yes | Token address on destination chain | |
| dstChainTokenOutRecipient | Yes | Wallet address on destination chain to receive tokens | |
| srcChainOrderAuthorityAddress | Yes | Address on source chain authorized to manage the order | |
| dstChainOrderAuthorityAddress | Yes | Address on destination chain authorized to manage the order | |
| dstChainTokenOutAmount | No | Output amount or 'auto' for best quote | |
| affiliateFeePercent | No | Affiliate fee percentage | |
| affiliateFeeRecipient | No | Wallet address to receive affiliate fees | |
| prependOperatingExpenses | No | Whether to prepend estimated operating expenses to the input amount |