UNPKG

@verax-attestation-registry/verax-sdk

Version:

Verax Attestation Registry SDK to interact with the subgraph and the contracts

14 lines 592 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.getIPFSContent = void 0; const axios_1 = __importDefault(require("axios")); const getIPFSContent = async (ipfsHash) => { const ipfsGatewayUrl = `https://cloudflare-ipfs.com/ipfs/${ipfsHash}`; const response = await axios_1.default.get(ipfsGatewayUrl); return response.data; }; exports.getIPFSContent = getIPFSContent; //# sourceMappingURL=ipfsClient.js.map