UNPKG

@reservoir0x/relay-sdk

Version:

Relay is the Fastest and Cheapest Way to Bridge and Transact Across Chains.

20 lines 634 B
import { axios } from './axios.js'; export const getTenderlyDetails = (txHash) => { return new Promise((resolve) => { axios .get(`https://api.tenderly.co/api/v1/explorer/${txHash}`, { timeout: 5000 }) .then((response) => { if (response && response.data && response.data.error_info) { resolve(response.data.error_info); } resolve(null); }) .catch((e) => { console.warn(`Tenderly api failed: ${e}`); resolve(null); }); }); }; //# sourceMappingURL=getTenderlyDetails.js.map