Native token price

Hello :wave:,

I am trying to figure out how to get native token price via moralis using getTokenPrice function.

In that function you need to pass a address string, but what I need to pass to get native price?
I know that I can get price of something like WETH and it will be pretty similar, but that will make me force to change my database structure :disappointed_relieved:

For example I need to get ether price on Ethereum chain, or BNB price on Binance Smart Chain.

Thanks for all help :slightly_smiling_face:

Using the wrapped address of the native coin e.g. wETH, wBNB would be the easiest way to do this.

I’m not sure how it would change your database structure? You can just call getTokenPrice with these addresses and use the results as you like; it’s a read only process.