Function
hasCrosschainTransferExpired
hasCrosschainTransferExpired(transfer: PendingTransfer): booleanChecks whether a single crosschain transfer has expired.
Parameters
- transfer: PendingTransfer
The transfer to check
Returns boolean
whether the transfer has expired
Example
To retrieve expired crosschain transfers and revert them, you could use the following code.
Plain textconst transfersPage = await account.getPendingCrosschainTransfers(); const expiredTransfers = transfersPage.data.filter(hasCrosschainTransferExpired);- transfer: PendingTransfer