[ZK Stack] -How to use the basetoken feature to deploy and use customer native token? #622
-
Module Affected
Rust Version1.75.0 Operating System
Issue DescriptionHow to use basetoken feature to set customer native l2's native token? Expected BehaviorStep by step tutorial to deploy and use customer native token? Current BehaviorNo idea to do this. Repository Link (if applicable)No response Additional DetailsNo response Prior Research
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
To deploy and use a custom native token as the base token on a zkSync L2 chain and bridge it from L1, you can follow these steps based on the zkSync documentation and system contracts: Step 1: Deploy Your ZK ChainFirst, you need to deploy your own ZK Chain. This involves specifying the governance, STM (State Transition Machine), and the baseToken you want to use. Here’s how you can do it:
Step 2: Using the BaseTokenThe baseToken you choose will be used as the native token on your L2 chain. Here’s how to manage and use it:
Step 3: Bridging the Token from L1 to L2To bridge your custom native token from L1 to L2, follow these steps:
Step 4: Additional Configurations and Testing
Documentation and Resources
This guide provides a high-level overview, and specific details may vary based on the exact requirements and updates to the zkSync platform. Always ensure to stay updated with the latest documentation and community discussions. Your feedback helps us serve you better. If this fully addresses your question, please give it a thumbs up. If it doesn't, please give it a thumbs down. This will inform the community and team so we can improve our support. |
Beta Was this translation helpful? Give feedback.
-
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
A step-by-step tutorial for this will be coming soon! |
Beta Was this translation helpful? Give feedback.
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
zk_inception containers
path/to/ecosystem_folder/configs/wallets.yaml
)zksync-cli bridge
: https://docs.zksync.io/build/zksync-cli/bridgingA step-by-step tut…