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
Parameter | Type | Description |
---|---|---|
relay | Relay | |
receiver | Signer | |
teleportGUID | TeleportGUID | |
signatures | string | |
relayFee | BigNumberish | |
maxFeePercentage | BigNumberish | (Optional) |
expiry | BigNumberish | (Optional) |
to | string | (Optional) |
data | string | (Optional) |
pollingIntervalMs | number | (Optional) |
timeoutMs | number | (Optional) |
onPayloadSigned | (payload: string, r: string, s: string, v: number) => void | (Optional) |
onRelayTaskCreated | (taskId: string) => void | (Optional) |
Promise<string>