UNPKG

web3-domain-resolver

Version:

Web3 Library that enable with just one function to resolve domains on multiple web3 providers such as ENS, UnstoppableDomains and Freename

22 lines (21 loc) 610 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.ApiCaller = void 0; const axios_1 = __importDefault(require("axios")); class ApiCaller { static async getHttpsCall(url) { try { const response = await axios_1.default.get(url); if (response) { return response.data; } } catch { return undefined; } } } exports.ApiCaller = ApiCaller;