Extra Teleportation Data
Extra calls and calldata can be appended to the teleportation by making use of the to
and data
parameters of the TeleportBridge.relayMintWithOracles function. This requires usage of a relayer service.
If these parameters are used, the relayer will execute a call to to
with the data
included, after teleportation has been completed. This is useful in workflows where the user does not hold gas tokens on the destination domain, or an action is to be made with the teleported funds, such as teleport and swap ot teleport and stream.
to
should be a contract address
data
should be an encoded call to this contract, conforming to its ABI.
Handling call failure
If the relayed call fails, the SDK can be used to initiate another call with modified parameters. The linked TeleportGUID will still be valid.