Skip to content

[ZK Stack] -How to use the basetoken feature to deploy and use customer native token? #622

Discussion options

You must be logged in to vote

Hi @SuccinctPaul, the general flow for using a custom base token assuming you are running everything locally and have already gone through this guide: https://docs.zksync.io/zk-stack/running-a-zk-chain/locally

  • start the Docker containers so the local reth node is running with zk_inception containers
  • deploy an ERC20 token token to the L1
  • send ERC20 tokens to the governor address on L1 (can be found in path/to/ecosystem_folder/configs/wallets.yaml)
  • create your new chain that uses the ERC20 token & set it as the default
  • initialize the ecosystem with the new default chain
  • bridge tokens from L1 to L2 using zksync-cli bridge: https://docs.zksync.io/build/zksync-cli/bridging

A step-by-step tut…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by SuccinctPaul
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
ZK Stack
Labels
zk-stack ZK Stack Question
2 participants