XRPL nodes to hostname

node v14.20.1
version: 1.0.0
endpointsharetweet
const fetch = require('node-fetch') const nodeToDomain = async () => { const manifests = (await (await fetch('https://validations.zaphod.ee/manifests.json')).json()) .map(r => r.result.details) .filter(r => r.domain !== '') .reduce((a, b) => Object.assign(a, { [b.master_key]: b.domain }), {}) const unlmap = await (await fetch('https://validations.zaphod.ee/unlmap.json')).json() const list = { ...manifests, ...unlmap } console.log(list) return list } console.log(nodeToDomain())
Loading…

no comments

    sign in to comment