I am building a dapp that requires me to lookup the current price of the ETH/ethereum token, but there is no contract address available for this token. Just wondering what the best way to look it up would be?
you can query the price of weth (wrapped eth):
x = await Moralis.Web3API.token.getTokenPrice({address: β0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2β, chain: βethβ})
1 Like