Function
solvePendingCrosschainTransfer
solvePendingCrosschainTransfer( connection: Connection, pendingTransfer: TransferRef, ): Web3PromiEvent<void, SolveTransferEvents>Solves a pending transfer. This is useful if the transfer is stuck in a pending state and you want to solve it. It will automatically complete it, revert it, recall it, based on the current state of the transfer.
Parameters
- connection: Connection
connection to the source chain. I.e., the chain where the account that originally sent the assets is registered.
- pendingTransfer: TransferRef
the transfer to solve. Can be acquired using getPendingCrosschainTransfers
Returns Web3PromiEvent<void, SolveTransferEvents>
a promi-event that will emit once for each hop during the solve. It will resolve once the transfer is completely solved.
- connection: Connection