create_tx
Create a cross-chain swap transaction via the deBridge DLN protocol
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"srcChainId": "<srcChainId>",
"srcChainTokenIn": "<srcChainTokenIn>",
"srcChainTokenInAmount": "<srcChainTokenInAmount>",
"dstChainId": "<dstChainId>",
"dstChainTokenOut": "<dstChainTokenOut>",
"dstChainTokenOutRecipient": "<dstChainTokenOutRecipient>",
"srcChainOrderAuthorityAddress": "<srcChainOrderAuthorityAddress>",
"dstChainOrderAuthorityAddress": "<dstChainOrderAuthorityAddress>"
},
"name": "create_tx"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dstChainId | Yes | Destination chain ID | |
| srcChainId | Yes | Source chain ID | |
| srcChainTokenIn | Yes | Token address on source chain | |
| dstChainTokenOut | Yes | Token address on destination chain | |
| affiliateFeePercent | No | Affiliate fee percentage | |
| affiliateFeeRecipient | No | Wallet address to receive affiliate fees | |
| srcChainTokenInAmount | Yes | Amount in smallest units (wei, lamports) | |
| dstChainTokenOutAmount | No | Output amount or 'auto' for best quote | |
| prependOperatingExpenses | No | Whether to prepend estimated operating expenses to the input amount | |
| dstChainTokenOutRecipient | Yes | Wallet address on destination chain to receive tokens | |
| dstChainOrderAuthorityAddress | Yes | Address on destination chain authorized to manage the order | |
| srcChainOrderAuthorityAddress | Yes | Address on source chain authorized to manage the order |