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
1
const { ERC20Contract } = require("bepro-js");
2
3
/* Create Instance */
4
let erc20Contract = new ERC20Contract(
5
{tokenAddress : "0x7a7748bd6f9bac76c2f3fcb29723227e3376cbb2",
6
opt : { web3Connection : 'https://kovan.infura.io/v3' } });
7
8
/* Login with Metamask/Web3 Wallet */
9
await erc20Contract.login();
10
11
/* Deploy ERC20 Contract */
12
let res = await erc20Contract.deploy({
13
name: "YOUR_TOKEN_NAME",
14
symbol: "YOUR_TOKEN_SYMBOL",
15
cap: 1000000*10**18 // 1M Tokens with 18 decimals ,
16
distributionAddress: "0xYOUR_DISTRO_ADDRESS", //local test with ganache
17
});
18
19
/* Access methods easily */
20
let totalSupply = await erc20Contract.totalSupply();
Copied!
Looking for more functions?
See all available functions here
Last modified 1mo ago
Copy link