submit_swap
Record a submitted swap transaction with its hash and status in the Cardexscan backend for tracking and analytics.
Instructions
Log a swap transaction submission to the Cardexscan backend for analytics and tracking.
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>",
"status": "<status>"
},
"name": "submit_swap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Error message if the swap failed | |
| maker | No | Wallet address of the swap initiator | |
| staker | No | Staking key hash of the wallet | |
| status | Yes | Transaction status code (1 = success, -1 = error) | |
| txHash | Yes | Transaction hash of the submitted swap |