From the course: Building Web3 Decentralized Apps in Ethereum

Unlock the full course today

Join today to access over 24,900 courses taught by industry experts.

Getting blockchain data

Getting blockchain data

- [Instructor] Now that we've made our wallet connection, we're ready to do some blockchain interactions with our DApp. Let's take a look at what we can do and how we can do it. So first things first, in order to interact with the blockchain in terms of how we want to do it, let's go ahead and start our local node. That'll allow us to get some ETH and do things that we wouldn't do unless we had a ton of ether on the main net. So I'm going to go to the terminal and I'm going to create a new window. I've got my DApp running in one window. And in my second window, I'm going to go into the back end of my DApp. Now, I'm going to go ahead and start this. And there's a whole video that talks about how to deploy smart contracts and whatnot in an earlier section. So what we can do is we can say, npx hardhat node. And this will actually fire up a local node of Ethereum through Hardhat. And we can actually talk to it. And…

Contents