src
: For our contract source codeabis
: For our contract ABIsabis
directory.
ERC20Factory
contract is automatically deployed on all MiniEVM rollup as part of the chain’s bootstrapping process
To obtain the address of the factory contract, query {ROLLUP_REST_URL}/minievm/evm/v1/contracts/erc20_factory
.
{ROLLUP_REST_URL}
refers to the REST endpoint URL of the rollup from which you want to retrieve the address.
For example, you can use the following curl command:
chain.js
in the src
directory.
index.js
in the src
directory.
privateKey
: The private key of the account we will use to interact with the MiniEVMerc20FactoryAddress
: The address of the ERC20Factory contract on the MiniEVM/minievm/evm/v1/contracts/erc20_factory
endpoint of any MiniEVM rollups node.createERC20
method of the ERC20Factory contract.