AltLayer Documentation
Ask or search…
K

Create and deploy smart contract

Go to FlashGPT and select “Create a contract” from the chatbox options.
Let’s go with the default text “Write a `MyToken` contract which is an ERC20 contract.
Click on the submit button and a smart contract will be generated.
Let's update the Contract name to FishToken and the token symbol to FISH. Why fish? Ottie loves fish a lot.
Let’s add FlashGPT to add a new minting function
Now let’s deploy it to a flash layer. To do this, click “Deploy this contract”.
Next, click “Compile and Deploy” and confirm the transaction on your metamask.
Congratulations! Your contract has been successfully deployed on the flash layer.