Class CrossChainStatusManager

Contains methods for getting cross-chain trade statuses.

Hierarchy

  • CrossChainStatusManager

Constructors

Methods

  • Returns cross-chain trade statuses on the source and target networks. The result consists of statuses of the source and target transactions and destination tx hash.

    Example

    const tradeData = {
    fromBlockchain: BLOCKCHAIN_NAME.FANTOM,
    toBlockchain: BLOCKCHAIN_NAME.BSC,
    txTimestamp: 1658241570024,
    srxTxHash: '0xd2263ca82ac0fce606cb75df27d7f0dc94909d41a58c37563bd6772496cb8924'
    };
    const tradeType = CROSS_CHAIN_TRADE_TYPE.VIA;
    const crossChainStatus = await sdk.crossChainStatusManager.getCrossChainStatus(tradeData, tradeType);
    console.log('Source transaction status', crossChainStatus.srcTxStatus);
    console.log('Destination transaction status', crossChainStatus.dstTxStatus);
    console.log('Destination transaction hash', crossChainStatus.dstTxHash);

    Returns

    Object with transaction statuses and hash.

    Parameters

    Returns Promise<CrossChainStatus>

Generated using TypeDoc