Track a planned swap or transfer
cleave_track_swapReports the status of a swap, bridge or gas top-up that was planned with cleave_plan_swap and then sent, or ordered with cleave_get_gas: its state (for example pending, in flight, delivered, refund pending or refunded), what arrived against the plan and on which chain, and the next action or when to check again. It takes the chain and transaction hash, plus the plan's requestId when known, or for a gas top-up the requestId alone; a transaction to a contract outside Cleave's published list is reported as such. It fits when the user asks whether such a transfer arrived, and before any re-send, because re-sending a plan that is still in flight can pay twice. It reports states only and returns no transactions.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "cleave_track_swap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| txHash | No | The transaction hash, also while it is pending; required unless requestId is a gas order's, in g:<chainId>:<orderHash> form | |
| chainId | No | The chain the transaction was sent on; required unless requestId is a gas order's, in g:<chainId>:<orderHash> form | |
| requestId | No | The requestId of the plan, used to compare the transaction with it, or of a gas order, in g:<chainId>:<orderHash> form, which is enough alone |