Report your own-wallet claim
reveal_claimReports the revealed HTLC secret and claim transaction after you claim your leg on-chain, enabling the counterparty and watchers to settle the other leg.
Instructions
After you claimed your receive leg on-chain with your OWN wallet (secret from get_deal_secret), report the revealed secret + claim tx so the counterparty and watchers can settle the other leg. Not needed after claim_leg, which reports its own claim. Your own secret goes through the same gate as get_deal_secret first.
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": {
"swap_id": "<swap_id>",
"secret": "<secret>"
},
"name": "reveal_claim"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| leg | No | Optional; if given, the leg you claimed — the one that pays you | |
| secret | Yes | 64-char hex preimage (from get_deal_secret or the on-chain claim) | |
| swap_id | Yes | Swap id (swap.id from deal_status, or swapId once a deal is agreed) | |
| claim_tx | No | Hash of your claim transaction |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Swap id | |
| error | No | Set instead when the call failed | |
| status | No |