Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught ReferenceError: global is not defined #155

Open
GZWZC opened this issue Nov 15, 2022 · 0 comments
Open

Uncaught ReferenceError: global is not defined #155

GZWZC opened this issue Nov 15, 2022 · 0 comments

Comments

@GZWZC
Copy link

GZWZC commented Nov 15, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant