alchemyplatform/alchemy-web3

Uncaught ReferenceError: global is not defined

Opened this issue · 0 comments

GZWZC commented
import { createAlchemyWeb3 } from '@alch/alchemy-web3'
// Using HTTPS
const web3 = createAlchemyWeb3("https://eth-goerli.g.alchemy.com/v2/xxx");
web3.eth.getBlock("latest").then(block => {
  console.log('block,',block)
});

image