Ethers.js Transaction Listeners

I understand this is for Moralis but im wondering how to create a listener for my NFT marketplace using Moralis and Ethers.js. I want to listen to see if a MetaMask contract has passed and the block was created or failed due to an error. If you could help me it was be much appreciated:

const provider = new ethers.providers.Web3Provider(window.ethereum);
await provider.send(“eth_requestAccounts”, []);
const signer = provider.getSigner();

const nftContract = new ethers.Contract(address, nftAbi, signer)
if(await nftContract.isApprovedForAll(state, state)) {
setIsOpen2(isOpen2 => isOpen2 = true)
} else {
nftContract.setApprovalForAll(nftMarketplaceContract, true)
// Add the

Sorry could you reclarify your question please, do you mean you want to listen to contract events?