market_buy
Buy a marketplace listing to form a contract and fund its first stage from XRP Ledger escrow, with optional plan, quantity, network, and practice-mode settings.
Instructions
Buy from a listing. This forms a contract; then fund its first stage.
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": {
"listing": "<listing>"
},
"name": "market_buy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| as | No | Practice market only: act as this party id. | |
| demo | No | Use the practice market on this computer (nothing published, no real money). | |
| plan | No | One of the listing's plans (cappz-market show <listing>), e.g. month; quantity is then in that plan's unit. | |
| listing | Yes | Listing id. | |
| network | No | Which market (default testnet). Validate on testnet, then use mainnet (real XRP). | |
| quantity | No | Units (default 1). | |
| evaluator | No | A third party (never the seller) who may accept milestones besides you; you still pay. |