Skip to main content

teleport-sdk.signandcreaterelaytask

Home > teleport-sdk > signAndCreateRelayTask

signAndCreateRelayTask() function

Relay a Teleport transaction and wait for the relayer to confirm its execution

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

Parameters

ParameterTypeDescription
relayRelayRelay to use
receiverSigneraddress that will receive tokens on the target domain
teleportGUIDTeleportGUIDidentifier for the teleport action.
signaturesstringdeposit attestations obtained from the oracle network
relayFeeBigNumberishfee to be paid to the relayer
maxFeePercentageBigNumberish(Optional) maximum fee approved by the user
expiryBigNumberish(Optional) expiration date of the operation
tostring(Optional) address to call after tokens are minted
datastring(Optional) data to call to with
onPayloadSigned(payload: string, r: string, s: string, v: number) => void(Optional) callback
Returns:

Promise<string>

Promise containing the relayed transaction's hash