teleport-sdk.teleportbridge.getattestations
Home > teleport-sdk > TeleportBridge > getAttestations
TeleportBridge.getAttestations() method
Collect oracle attestations for a given transaciton
Signature:getAttestations(txHash: string, onNewSignatureReceived?: (numSignatures: number, threshold: number, guid?: TeleportGUID) => void, timeoutMs?: number, pollingIntervalMs?: number, teleportGUID?: TeleportGUID): Promise<{
signatures: string;
teleportGUID: TeleportGUID;
}>;
Parameters
Parameter | Type | Description |
---|---|---|
txHash | string | transaction hash to attest |
onNewSignatureReceived | (numSignatures: number, threshold: number, guid?: TeleportGUID) => void | (Optional) callback |
timeoutMs | number | (Optional) |
pollingIntervalMs | number | (Optional) |
teleportGUID | TeleportGUID | (Optional) TeleportGUID linked to the passed txHash |
Promise<{ signatures: string; teleportGUID: TeleportGUID; }>
Promise containing all collected oracle attestations and the linked TeleportGUID