UNPKG

@57block/stellar-resource-usage

Version:

A library that provides convenient ways to monitor and analyze the resources consumed by smart contracts during execution

14 lines 460 B
export const getProtocolHistory = async (network = 'public') => { try { const response = await fetch(`https://api.stellar.expert/explorer/${network}/ledger/protocol-history`); if (!response.ok) { throw new Error(`HTTP error! status: ${response.status}`); } const data = await response.json(); return data; } catch (error) { console.log(error); } }; //# sourceMappingURL=stellar.js.map