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
| Parameter | Type | Description |
|---|---|---|
| receiver | Signer | address that will receive funds on the target domain |
| teleportGUID | TeleportGUID | linked TeleportGUID |
| signatures | string | oracle signatures from getAttestations() |
| relayFee | BigNumberish | fee to be paid to the relayer from getRelayFee() |
| maxFeePercentage | BigNumberish | (Optional) maximum fee specified by the user |
| expiry | BigNumberish | (Optional) expiration timestamp for this teleport action |
| to | string | (Optional) address to call after token minting (only available when using a |
| data | string | (Optional) data to call contract at to with |
| relayAddress | string | (Optional) relayer's address |
| pollingIntervalMs | number | (Optional) |
| timeoutMs | number | (Optional) |
| onPayloadSigned | (payload: string, r: string, s: string, v: number) => void | (Optional) callback |
| onRelayTaskCreated | (taskId: string) => void | (Optional) |
Promise<string>
Promise containing relayed transaction's hash
Remarks
Functionally identical to mintWithOracles(), but relaying the transaction on the target domain