UNPKG

@lifi/sdk

Version:

LI.FI Any-to-Any Cross-Chain-Swap SDK

13 lines 498 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.fetchTxErrorDetails = void 0; const fetchTxErrorDetails = async (txHash, chainId) => { try { const response = await fetch(`https://api.tenderly.co/api/v1/public-contract/${chainId}/tx/${txHash}`); const reponseBody = await response.json(); return reponseBody; } catch (_) { } }; exports.fetchTxErrorDetails = fetchTxErrorDetails; //# sourceMappingURL=fetchTxErrorDetails.js.map