Skip to main content

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

ParameterTypeDescription
txHashstringtransaction hash to attest
onNewSignatureReceived(numSignatures: number, threshold: number, guid?: TeleportGUID) => void(Optional) callback
timeoutMsnumber(Optional)
pollingIntervalMsnumber(Optional)
teleportGUIDTeleportGUID(Optional) TeleportGUID linked to the passed txHash
Returns:

Promise<{ signatures: string; teleportGUID: TeleportGUID; }>

Promise containing all collected oracle attestations and the linked TeleportGUID