This packable allows you to either embed a custom token generator on your React web application or supply parameters to programmatically create a new token.
yarn add erc20-generator
You can import the EmbeddedTokenGenerator
from the erc20-generator
package to embed a full page token generator in your page while supplying your own ethereum address for affiliate fees, if any.
This embedded tool allows you to create many different types of token.
import { EmbeddedTokenGenerator } from "erc20-generator";
const Example = () => {
return (
<EmbeddedTokenGenerator affiliate="0x002fd03eeC510cC10Df778ef87a8C6f51FfE3F02" />
);
};
export default Example;
Currently this method only allows creating fixed-supply tokens with no minting capabilities.
import { createErc20Token } from "erc20-generator";
await createErc20Token({
name: "MyToken",
symbol: "MTK",
supply: 1000000,
web3: ethersInstance, // Must be an initialized ethers.js provider on chain 1
});
This tool utilizes libraries and toolkit from Create My Token and Metacrypt.