[Solana] Moralis Wallet Provider

Hi Moralis community,

I am currently working on a solana dapp. The program is written with the help of the Anchor framework that exposes its interface to the front via IDLs.

In order to use that IDL with react I need to construct a program object that requires a Provider.

My question is how does Moralis exposes its provider that talks to the Phantom Wallet, for example?

I tried:

const { provider } = useMoralis();

but it’s an empty object.

Thank you,
Daniel.

Are you able to use window.solana? You can check out the Moralis Solana/Phantom code.