View as Markdown

SDK reference · Rails

verifyCounterparty

verifyCounterparty in @provenanceauth/rails/deals, Rails. GET /v1/public/counterparties/check (keyless), cached for 5 minutes per query.

Signature

verifyCounterparty(query: { kid: string } | { agent_id: string; origin: string }, opts: { apiBase: string; fetch?: typeof fetch; cacheMs?: number; now?: number }): Promise<Counterparty>

Parameters

query{ kid: string } | { agent_id: string; origin: string }Required
opts{ apiBase: string; fetch?: typeof fetch; cacheMs?: number; now?: number }Required

Returns

Promise<Counterparty>

HTTP operation

Runs locally, with no request to the API.

Was this page helpful? Send us feedback

LLM? Read llms.txt.