I see that Moralis has an npm package with no documentation and I cannot figure out how to use it in my project, any suggestions or links would help
you can write code like this:
x = async () => {
const Moralis = require('moralis/node')
console.log(Moralis.CoreManager.get("VERSION"))
await Moralis.start({ serverUrl: "https://afasdfasdf:2053/server", appId: "gsdfgfg" });
const options = {
chain: "eth",
address: "0xdAC17F958D2ee523a2206206994597C13D831ec7"
};
const price = await Moralis.Web3API.token.getTokenPrice(options);
console.log(price)
}
x();
2 Likes
Thank you, this is great!