I am new to this topic, I am trying to interact with the contract using react-moralis
const { data, error } = useApiContract({
abi: abi,
address: process.env.contractAddress,
functionName: 'price',
params: {}
})
console.log(data, error)
tried this and other methods and I got
null null
as response
Please advice