In this section, we'll see how our wallet can be connected to the main Ethereum network and used for storing, transferring, and managing fungible and non-fungible assets on the Ethereum network:
- To deploy the wallet and contracts in production, you need to have a geth instance running on the main Ethereum network. Geth is a popular Ethereum client used to run an Ethereum node and connect to the main network. Update the truffle-config.js file to point to the production geth instance as shown in the following. The network ID is set to 1 for the main network:
const HDWalletProvider = require('truffle-hdwallet-provider');
module.exports = {
networks: {
development: {
host: "127.0.0.1",
port: 8545,
network_id: "*",
}
prod: {
host: "<Live geth host IP>",
port: 8545, ...