live · mainnetoc · docs
specs · api · guides
docs / documentation

@orangecheck/pledge-core


@orangecheck/pledge-core / AttestationLookup

Type Alias: AttestationLookup

type AttestationLookup = (attestationId: string, nowIso: string) => Promise<
  | AttestationLookupResult
| null>;

Defined in: pledge-core/src/types.ts:470

Caller-supplied lookup that resolves an OrangeCheck attestation id against live Bitcoin chain state. Returns null if the attestation can't be found.

The SDK does not bundle a Bitcoin RPC client by design — the caller (CLI, web, server) wires their accessor of choice (Esplora, mempool.space, bitcoind RPC, oc-attest sdk).

Parameters

ParameterType
attestationIdstring
nowIsostring

Returns

Promise&lt; | AttestationLookupResult | null>