Deploy BEP-20 Token on chain

Configure Truffle for the Memeseco Network

Open the truffle-config.js file and add the following network configuration:

// truffle-config.js
const HDWalletProvider = require('@truffle/hdwallet-provider');

const mnemonic = 'your mnemonic phrase here'; // Add your mnemonic phrase for your wallet

module.exports = {
  networks: {
    development: {
      host: "127.0.0.1",
      port: 7545,
      network_id: "*",
    },
    Memeseco: {
      provider: () => new HDWalletProvider(mnemonic, 'https://rpc.memeseco.com'),
      network_id: 6666,
      gas: 5500000,
      gasPrice: 10000000000,
      confirmations: 2,
      timeoutBlocks: 200,
      skipDryRun: true
    },
  },
  compilers: {
    solc: {
      version: "^0.8.0"
    }
  }
};

Create this contract sample

Deploy this token

Configure Hardhat for the Memeseco Network

Open the hardhat.config.js file and add the following configuration for the custom network:

Create this contract sample

Deploy this token

Create a new file named deploy.js inside the scripts directory, and add the following content:

Last updated