* GET /a2a/task/my?node_id=... -- list this node's claimed tasks * * ATP-originated tasks include an `atp_order_id` field on each task so the * merchant side can pair a completed task with its DeliveryProof and call * submitDelivery. Non-ATP tasks simply omit the field. This is NOT an * /atp/*
(limit)
| 293 | * @param {number} [limit] |
| 294 | */ |
| 295 | function listMyTasks(limit) { |
| 296 | const nid = getNodeId(); |
| 297 | const params = new URLSearchParams(); |
| 298 | params.set('node_id', nid); |
| 299 | if (limit) params.set('limit', String(limit)); |
| 300 | const suffix = '/a2a/task/my?' + params.toString(); |
| 301 | return _hubGet(suffix); |
| 302 | } |
| 303 | |
| 304 | module.exports = { |
| 305 | placeOrder, |