How to use moralis to get a user's deposit and reward token balance from an example defi site?

Hi

I am trying to figure out if it is possible / how to use moralis to get a user’s deposit, interest rates and reward token balance from an example defi site?

I think I need to use https://docs.moralis.io/web3-data-api/evm/how-to-run-contract-functions but any hints, tips (an example would be amazing) would be greatly appreciated.

I appreciate your time,
J

Hey @jorge82,

Thanks for reaching out to us :grinning_face_with_smiling_eyes:

Can you specify which DeFi protocol do you want to get user’s deposit, interest rates, and reward token balance from?

Using the runContractFunction you attached there it should be possible to fetch those for sure, but we’ll need to know which protocol you are using to guide you better.

Many thanks for the speedy reply.

I need it to work for all contracts so none in specific.

But for an example how about giest.finance ?

Hey @jorge82,

I’ve just checked geist.finance, but seems like their docs lack some specifications on their smart contract code, do you know whether they are a clone of other protocols from other chains? :thinking:

Thanks for the reply.

https://defillama.com/protocol/geist-finance says it is forked from AAve?

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.