chord_prepare
Prepare UNSIGNED Chord OTC transactions for the user to review and sign in their own wallet: create an offer, fill one, or cancel one. Returns the transactions in order (an approval first when needed) plus a plain-English summary. Nothing is signed or sent by this tool. Funds never sit in Chord: the maker's side stays in their wallet under an approval until a fill moves both sides in one transaction.
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": {
"action": "<action>",
"wallet": "<wallet>"
},
"name": "chord_prepare"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Offer id (fill or cancel) | |
| give | No | create: which side the user gives | |
| token | No | create: the non-USDC token (listed symbol or address) | |
| action | Yes | ||
| wallet | Yes | The user's Arc address (used to check balance, approval and eligibility) | |
| usdc_amount | No | create: amount of USDC | |
| token_amount | No | create: amount of the token | |
| private_taker | No | create, optional: only this address may fill | |
| expires_in_hours | No | create, optional: 0 or omitted = no expiry |