Skip to main content

teleport-sdk.teleportbridge.requestrelay

Home > teleport-sdk > TeleportBridge > requestRelay

TeleportBridge.requestRelay() method

Request a transaction relay from a relayer

Signature:
requestRelay(receiver: Signer, teleportGUID: TeleportGUID, signatures: string, relayFee: BigNumberish, maxFeePercentage?: BigNumberish, expiry?: BigNumberish, to?: string, data?: string, relayAddress?: string, onPayloadSigned?: (payload: string, r: string, s: string, v: number) => void): Promise<string>;

Parameters

ParameterTypeDescription
receiverSignerreceiver of the finds
teleportGUIDTeleportGUID
signaturesstringset of oracle attestations
relayFeeBigNumberishfee to be paid to the relayer
maxFeePercentageBigNumberish(Optional) maximum fee specified by the user
expiryBigNumberish(Optional) expiration date of the teleportation action
tostring(Optional) extra call receiver
datastring(Optional) extra call data
relayAddressstring(Optional) address of the relayer
onPayloadSigned(payload: string, r: string, s: string, v: number) => void(Optional) callback
Returns:

Promise<string>

promise containing relay task ID