MCPcopy Create free account
hub / github.com/EvoMap/evolver / listProofs

Function listProofs

src/atp/hubClient.js:268–276  ·  view source on GitHub ↗

* GET /a2a/atp/proofs?node_id=...&role=... -- list delivery proofs * @param {object} [opts] * @param {string} [opts.role] - merchant | consumer * @param {string} [opts.status] - pending | verified | disputed | settled * @param {number} [opts.limit]

(opts)

Source from the content-addressed store, hash-verified

266 * @param {number} [opts.limit]
267 */
268function listProofs(opts) {
269 const params = new URLSearchParams();
270 params.set('node_id', getNodeId());
271 if (opts && opts.role) params.set('role', opts.role);
272 if (opts && opts.status) params.set('status', opts.status);
273 if (opts && opts.limit) params.set('limit', String(opts.limit));
274 const q = '?' + params.toString();
275 return _get('/atp/proofs' + q, '/a2a/atp/proofs' + q);
276}
277
278/**
279 * GET /a2a/atp/policy -- get ATP policy config

Callers 1

getStatusFunction · 0.85

Calls 1

_getFunction · 0.85

Tested by

no test coverage detected