Function: verifiedAnchor()
function verifiedAnchor(
proofB64: string,
idHex: string,
headerSource: BlockHeaderSource): Promise<
| {
blockHash: string;
blockHeight: number;
}
| null>;
Defined in: upgrade.ts:99 (opens in a new tab)
The lowest Bitcoin block a proof anchors idHex in, checked against
headerSource: the proof is walked from idHex, and an attestation counts
only if the header at its height has the proof's Merkle root. Whatever
height or status the stamp declares is not read. Null when no attestation
checks out, or the proof does not parse from idHex.
ParametersLink to this section
| Parameter | Type |
|---|---|
proofB64 | string |
idHex | string |
headerSource | BlockHeaderSource |
ReturnsLink to this section
Promise<
| {
blockHash: string;
blockHeight: number;
}
| null>