Prepare a purchase
prepare_buyPrepares the purchase of one cell (A1 to H8) for the buyer's own wallet: the price read from the contract now, and the unsigned transactions on Base that the wallet signs and sends in order, a USDC approval of the exact price (left out when the wallet already allows it) and the purchase. Canvas64 never holds a key and sends nothing. Give the wallet address to check its USDC and allowance first. If someone buys the cell before the transaction lands, it fails and nothing is charged; prepare again.
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": {
"cell": "<cell>"
},
"name": "prepare_buy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cell | Yes | The cell's address, such as D4. | |
| wallet | No | Optional: the buyer's wallet address, to check its USDC balance and allowance. |