# verifyCounterparty

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

## Signature

```ts
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 })
- `opts` ({ apiBase: string; fetch?: typeof fetch; cacheMs?: number; now?: number })

## Returns

`Promise<Counterparty>`

Runs locally, with no request to the API.
