EXECUTE_NEAR_SWAP
Submit the deposit transaction hash to trigger swap execution after funds are sent, notifying the service to complete the cross-chain swap.
Instructions
[STEP 4] Submit a deposit transaction hash to initiate the swap after sending funds to the deposit address. This notifies the 1Click service that funds have been sent and triggers the swap execution process. Use this after users have sent their funds to the deposit address from the full quote response.
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": {
"txHash": "<txHash>",
"depositAddress": "<depositAddress>"
},
"name": "EXECUTE_NEAR_SWAP"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| txHash | Yes | Transaction hash of your deposit transaction that was sent to the deposit address from the quote | |
| depositAddress | Yes | The deposit address that was provided in the quote response and to which the deposit transaction was sent |