Skip to main content

teleport-sdk.teleportbridge.getrelayfee

Home > teleport-sdk > TeleportBridge > getRelayFee

TeleportBridge.getRelayFee() method

Get the relayer fee for a certain transaction

Signature:
getRelayFee(isHighPriority?: boolean, relayParams?: RelayParams, relayAddress?: string): Promise<string>;

Parameters

ParameterTypeDescription
isHighPriorityboolean(Optional) whether this transaction is to be expedited
relayParamsRelayParams(Optional) parameters for the relaid transaction
relayAddressstring(Optional) relayer's address
Returns:

Promise<string>

Promise containing the token fee (in wei) to be paid to the relayer