prepare_buy_listing
Marketplace: prepare (unsigned) buying a listing for exactly its ETH price (marketplace_listings shows it). For NFTs pass collection and tokenId; for a weapon pass collection "weapons" and listingId. Refused if the listing is stale, locked or yours.
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": {
"wallet": "<wallet>",
"collection": "<collection>"
},
"name": "prepare_buy_listing"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wallet | Yes | Your own 0x wallet address. Nothing is sent from it; it is used to read your balance and allowance and to simulate. | |
| tokenId | No | NFT token id. | |
| listingId | No | Weapon market listing id (collection weapons). | |
| collection | Yes | companions, operatives, fighters, crates or portal (or the contract address); or "weapons" for Armory weapons. NOT the Override Disk (Ripples' collection, trades on OpenSea) and NOT mercenaries (locked to the buyer). |