Skip to main content

teleport-sdk.requestandwaitforrelay

Home > teleport-sdk > requestAndWaitForRelay

requestAndWaitForRelay() function

Signature:
export declare function requestAndWaitForRelay(relay: Relay, receiver: Signer, teleportGUID: TeleportGUID, signatures: string, relayFee: BigNumberish, maxFeePercentage?: BigNumberish, expiry?: BigNumberish, to?: string, data?: string, pollingIntervalMs?: number, timeoutMs?: number, onPayloadSigned?: (payload: string, r: string, s: string, v: number) => void, onRelayTaskCreated?: (taskId: string) => void): Promise<string>;

Parameters

ParameterTypeDescription
relayRelay
receiverSigner
teleportGUIDTeleportGUID
signaturesstring
relayFeeBigNumberish
maxFeePercentageBigNumberish(Optional)
expiryBigNumberish(Optional)
tostring(Optional)
datastring(Optional)
pollingIntervalMsnumber(Optional)
timeoutMsnumber(Optional)
onPayloadSigned(payload: string, r: string, s: string, v: number) => void(Optional)
onRelayTaskCreated(taskId: string) => void(Optional)
Returns:

Promise<string>