Skip to main content

teleport-sdk.teleportbridge.approvesrcgateway

Home > teleport-sdk > TeleportBridge > approveSrcGateway

TeleportBridge.approveSrcGateway() method

Approve the source domain's Gateway contract to spend tokens.

Signature:
approveSrcGateway(sender?: Signer, amount?: BigNumberish, overrides?: Overrides): Promise<Call>;

Parameters

ParameterTypeDescription
senderSigner(Optional) address from wchich tokens will be teleported
amountBigNumberish(Optional) amount to approve
overridesOverrides(Optional) ethers.js transaction overrides
Returns:

Promise<Call>

Promise containing a contract call