UNPKG

@volare.finance/utils.js

Version:
20 lines 619 B
"use strict"; /** * @file ens.ts * @author astra <astra@volare.finance> * @date 2022 */ Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const dotenv_1 = require("dotenv"); const src_1 = require("../src"); (0, dotenv_1.config)({ path: '.env', encoding: 'utf8', }); const ENDPOINT = src_1.ENDPOINTS[src_1.ChainId.Mainnet] + String(process.env.ENDPOINT_KEY); (() => tslib_1.__awaiter(void 0, void 0, void 0, function* () { const ens = new src_1.ENS(ENDPOINT); console.log(yield ens.getAddress('nftea-sports.eth')); }))(); //# sourceMappingURL=ens.js.map