Function hasCrosschainTransferExpired

  • Checks whether a single crosschain transfer has expired.

    Parameters

    Returns boolean

    whether the transfer has expired

    Example

    To retrieve expired crosschain transfers and revert them, you could use the following code.

    const transfersPage = await account.getPendingCrosschainTransfers();
    const expiredTransfers = transfersPage.data.filter(hasCrosschainTransferExpired);