When trying to fetch bayc collection I get the error Error: required param address not provided - not sure where I am going wrong
const {Web3Api} = useMoralisWeb3Api()
const {isInitialized} = useMoralis()
const fetchNFTsForContract = async () => {
const options = {
chain: "eth",
token_address: "0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D",
};
const bayc = await Web3Api.account.getNFTsForContract(options);
console.log(bayc);
}
useEffect(() => {
if (isInitialized) {
fetchNFTsForContract()
}
}, [isInitialized])