I’m getting strange error while retrieving PAID price via :
var options = {
address: address_from_info
};
var price = await Moralis.Web3API.token.getTokenPrice(options);
error:
Error: [object Object]
at handleError (RESTController.js:437)
at async makeArrV2 (query.js:473)
all other tokens get correct price, with the same method, is it connected with token address change? Of course I use new SDK to get token address using
await Moralis.Web3API.account.getTokenBalances();
this is response im getting:
- balance: “44500000000000000000”
- decimals: “18”
- logo: “https://cdn.moralis.io/eth/0x1614f18fc94f47967a3fbe5ffcd46d4e7da3d787.png”
- name: “PAID Network”
- symbol: “PAID”
- thumbnail: “https://cdn.moralis.io/eth/0x1614f18fc94f47967a3fbe5ffcd46d4e7da3d787_thumb.png”
- token_address: “0x1614f18fc94f47967a3fbe5ffcd46d4e7da3d787”
and from your SDK it gets correct token address, any ideas?