@reclaimprotocol/attestor-core
Version:
<div> <div> <img src="https://raw.githubusercontent.com/reclaimprotocol/.github/main/assets/banners/Attestor-Core.png" /> </div> </div>
9 lines (8 loc) • 465 B
TypeScript
import type { IAttestorClient, IAttestorClientCreateOpts } from '../../types/index.ts';
/**
* Get a attestor client from the pool,
* if it doesn't exist, create one.
* @param [getCreateOpts] - Function to get the options for creating a new client.
* called synchronously, in the same tick as this function.
*/
export declare function getAttestorClientFromPool(url: string | URL, getCreateOpts?: () => Omit<IAttestorClientCreateOpts, 'url'>): IAttestorClient;