swap_txn
Builds unsigned swap transactions for a Nomadex pool by finding the best pool for a token pair and returning base64-encoded transactions for signing via UluWalletMCP.
Instructions
Build unsigned swap transactions for a Nomadex pool. Finds the best Nomadex pool for the pair and returns base64-encoded transactions for signing via UluWalletMCP.
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": {
"fromToken": "<fromToken>",
"toToken": "<toToken>",
"amount": "<amount>",
"sender": "<sender>"
},
"name": "swap_txn"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Amount to swap in human-readable units | |
| sender | Yes | Sender wallet address | |
| toToken | Yes | Destination token symbol | |
| slippage | No | Allowed slippage percentage (default 5) | |
| fromToken | Yes | Source token symbol (e.g. VOI, USDC, UNIT) |