receive_ecash_api_payments_ecash_receive_post
Receive Ecash
Receive/redeem a Cashu ecash token.
The agent swaps the received proofs for new ones at the mint, ensuring the sender can't double-spend. This is the standard Cashu receive flow (NUT-03 swap).
Responses:
200: Successful Response (Success Response) Content-Type: application/json
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": {
"agent_id": "<agent_id>",
"token": "<token>"
},
"name": "receive_ecash_api_payments_ecash_receive_post"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | Yes | ||
| agent_id | Yes |