Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CrossChainStatusManager

Contains methods for getting cross-chain trade statuses.

Hierarchy

  • CrossChainStatusManager

Index

Constructors

Methods

  • Returns cross-chain trade statuses on the source and target network. The result consists of the status 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 provider = CROSS_CHAIN_TRADE_TYPE.VIA;
    const crossChainStatus = await sdk.crossChainStatusManager.getCrossChainStatus(tradeData, provider);
    console.log('Source transaction status', crossChainStatus.srcTxStatus);
    console.log('Destination transaction status', crossChainStatus.dstTxStatus);
    console.log('Destination transaction hash', crossChainStatus.dstTxHash);

    Parameters

    • data: CrossChainTradeData

      Data needed to calculate statuses.

    • provider: "RUBIC" | "CELER" | "SYMBIOSIS" | "LIFI" | "DEBRIDGE" | "VIA" | "RANGO"

      Cross-chain trade type.

    Returns Promise<CrossChainStatus>

    Object with transaction statuses and hash.

Generated using TypeDoc