Get gas price of transaction

Hello,
There is an item, which costs $10, and there is a button to proceed to buy that item.
I need to check if the buyer’s wallet contains $10 and the gas fee to proceed with the transaction and execute await Moralis.transfer(options)

Is that possible to check with Moralis?

Usually when MetaMask will pop up it will also do that gas estimation and will tell the user if the transaction is likely to fail. There isn’t a function in Moralis sdk to give you that gas value directly.