📖
Bepro.Network
  • Welcome!
  • bepro-js
    • About BEPRO.JS
    • Start building
      • Installation
      • How To Guides
        • Create a Web3Connection
        • Create an ERC-20 Token
        • Create your NFT Art Gallery
        • Create other Project
    • Use Cases
    • How to Contribute
      • Create an Object
    • External Links
      • SDK Documentation
      • GitHub
  • BEPRO.Network
    • Why The Bepro.Network?
    • Protocol Workflow
    • The Bepro.Network
    • $BEPRO
    • Bug Bounty
  • Community
    • BEPRO Tokenomics
    • Discord Server
    • Support
Powered by GitBook
On this page

Was this helpful?

  1. bepro-js
  2. Start building
  3. How To Guides

Create an ERC-20 Token

A very simple project to launch/access your own ERC20 Contract Address, login with metamask & connect with solidity methods available

const { ERC20Contract } = require("bepro-js");

/* Create Instance */
let erc20Contract = new ERC20Contract(
{tokenAddress : "0x7a7748bd6f9bac76c2f3fcb29723227e3376cbb2", 
opt : { web3Connection : 'https://kovan.infura.io/v3' } });

/* Login with Metamask/Web3 Wallet */
await erc20Contract.login();

/* Deploy ERC20 Contract */
let res = await erc20Contract.deploy({
    name: "YOUR_TOKEN_NAME",
    symbol: "YOUR_TOKEN_SYMBOL",
    cap: 1000000*10**18 // 1M Tokens with 18 decimals ,
    distributionAddress: "0xYOUR_DISTRO_ADDRESS", //local test with ganache
});

/* Access methods easily */
let totalSupply = await erc20Contract.totalSupply();

Looking for more functions?

PreviousCreate a Web3ConnectionNextCreate your NFT Art Gallery

Last updated 3 years ago

Was this helpful?

See all available functions

here