Skip to content

Instantly share code, notes, and snippets.

@fdemiramon
Last active October 23, 2023 11:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fdemiramon/8544595978359a38972bac0132f0bd95 to your computer and use it in GitHub Desktop.
Save fdemiramon/8544595978359a38972bac0132f0bd95 to your computer and use it in GitHub Desktop.
Call Fluvi in bulk
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