Last active
October 23, 2023 11:29
-
-
Save fdemiramon/8544595978359a38972bac0132f0bd95 to your computer and use it in GitHub Desktop.
Call Fluvi in bulk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const axios = require("axios"); | |
const URI = `https://linea-quest.fluvi.io/api/address-mapping/fluvi/bulk`; | |
const getFluviInfo = async function (ocwAddresses) { | |
let res = []; | |
try { | |
res = await axios(`${URI}`, { | |
method: "POST", | |
headers: { | |
"Content-Type": "application/json", | |
}, | |
data: JSON.stringify({ addressList: ocwAddresses }), | |
}); | |
} catch (e) { | |
console.error(e.message); | |
} | |
return res.data.result; | |
}; | |
module.exports = { getFluviInfo }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment