@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
| Parameter | Type |
|---|---|
attestationId | string |
nowIso | string |
Returns
Promise<
| AttestationLookupResult
| null>