Deploy on hardhat localhost node using thirdweb dashboard
Configure Hardhat with 1337 chain id
You can configure the chain ID by setting the networks.hardhat.chainId
in hardhat.config file as shown below:
// ...
module.exports = {
solidity: "0.8.17",
networks: {
hardhat: {
chainId: 1337, // <---
},
},
};
Ensure that hardhat node is configured with chain id 1337
Configure network in thirdweb dashboard and MetaMask
Start the hardhat node and note down the JSON-RPC localhost URL
Started HTTP and WebSocket JSON-RPC server at http://127.0.0.1:8545/
Now follow the steps shown in the video below and configure the network in both MetaMask Wallet and thirdweb dashboard
0:00
/1:44
Configure Localhost network in thirdweb dashboard and MetaMask