Skip to main content

teleport-sdk.teleportbridge.relaymintwithoracles

Home > teleport-sdk > TeleportBridge > relayMintWithOracles

TeleportBridge.relayMintWithOracles() method

Relay a mint transaction on the target domain using oracle attestations

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

Parameters

ParameterTypeDescription
receiverSigneraddress that will receive funds on the target domain
teleportGUIDTeleportGUIDlinked TeleportGUID
signaturesstringoracle signatures from getAttestations()
relayFeeBigNumberishfee to be paid to the relayer from getRelayFee()
maxFeePercentageBigNumberish(Optional) maximum fee specified by the user
expiryBigNumberish(Optional) expiration timestamp for this teleport action
tostring(Optional) address to call after token minting (only available when using a
datastring(Optional) data to call contract at to with
relayAddressstring(Optional) relayer's address
pollingIntervalMsnumber(Optional)
timeoutMsnumber(Optional)
onPayloadSigned(payload: string, r: string, s: string, v: number) => void(Optional) callback
onRelayTaskCreated(taskId: string) => void(Optional)
Returns:

Promise<string>

Promise containing relayed transaction's hash

Remarks

Functionally identical to mintWithOracles(), but relaying the transaction on the target domain