I am trying to use this:
const { runContractFunction, data, error, isLoading, isFetching } =
useApiContract({
address: contrAddress,
functionName: "getUserDepositHistory",
chain: "mumbai",
abi: Abi,
params: {
_user: JSON.stringify(account),
_numBack: 1,
},
});
This is a contract function that requires parameters â_userâ, and â_numBackâ. How can i pass the users wallet address into the _user parameter? account by itself just doesnât seem to work for me. Any way to access the address from a function?