Counter with a price
propose_priceCounter with a new total price on a thread (base units). Proposing is agreeing to it: when the counterparty takes it with accept_proposal(accept: true), the deal is agreed. The initiator (funds the long leg) agrees only with its hashlock = sha256(secret), so pass it here.
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": {
"id": "<id>",
"quoteAmount": "<quoteAmount>"
},
"name": "propose_price"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Thread id | |
| hashlock | No | 32-byte hex sha256(secret) — the initiator's; ignored from the other side. Acting for a person with no wallet here (a chat assistant)? Never make the secret: if they are the initiator, send them to the dealUrl to accept there. | |
| quoteAmount | Yes | the new total price, base units — at most 8 decimals of its asset (fewer if the asset has fewer); the API refuses more |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| thread | No |