Function getERC20BridgeCalldata

  • Returns the calldata sent by an L1 ERC20 bridge to its L2 counterpart during token bridging.

    Parameters

    • l1TokenAddress: string

      The token address on L1.

    • l1Sender: string

      The sender address on L1.

    • l2Receiver: string

      The recipient address on L2.

    • amount: Numbers

      The gas fee for the number of tokens to bridge.

    • bridgeData: Bytes

      Additional bridge data.

    Returns Promise<string>