web3.eth.subscribe(), Alchemy Web3 will bring the following advantages over standard Web3 subscriptions:
createAlchemyWeb3and then passing it your Alchemy app's URL and optionally a configuration object.
window.ethereum, then any methods which involve user accounts or signing will automatically use it. This provider might be injected by Metamask, Trust Wallet or other browsers or browser extensions if the user has them installed. For example, the following will use a provider from the user's browser:
ethereum.enable(). Here's an example:
writeProvideroption when creating your client: