Download Purchased Product
download_productRetrieve / download / get the file for a digital product after the user paid for it. Use after pay_merchant succeeds for digital goods (PDFs, ebooks, cheatsheets, datasets). Pass the on-chain txHash from pay_merchant OR a Coal checkout sessionId. Returns a verified download URL the user can click. Supported product slugs: 0g-cheatsheet (The 0G Builder's Cheatsheet, $0.10).
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": {
"product": "<product>"
},
"name": "download_product"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| txHash | No | On-chain tx hash from pay_merchant (preferred for agent flows) | |
| product | Yes | Product slug (e.g. `0g-cheatsheet`) | |
| sessionId | No | Coal checkout session id (preferred for human-checkout flows) |