Docs
chromia.com

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

    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.