# 部署zksync合约

By [andyxy23](https://paragraph.com/@andyxy23) · 2023-05-20

---

昨天写了个如何超低成本交互zksync合约，单次在0.1 - 0.2U，很多人对此比较感兴趣，

[https://mirror.xyz/0x5F27efB3d4a38c36d0D24673f1c5344E709675E2/T2LEch9T9\_x16BNv36-OFa80cicZdndBPmDn8FuBpdE](https://mirror.xyz/0x5F27efB3d4a38c36d0D24673f1c5344E709675E2/T2LEch9T9_x16BNv36-OFa80cicZdndBPmDn8FuBpdE)

那么如何自己根据要求来定制一个合约，如何将合约部署在zksync，不开源只想自己用呢？

本文主要就会讲诉如何部署一个zksync合约。

* * *

操作：
---

你只需要下载以下demo，

[https://github.com/andyxy0203/zksync-demo](https://github.com/andyxy0203/zksync-demo)

修改一下你的钱包私钥，然后执行如下3条命令，就可以部署一个低价交互合约在zksync了！

只给你自己使用，可以随时定制修改，减少女巫概率！

![demo](https://storage.googleapis.com/papyrus_images/dc72cc8cda00593a0f18774383c567ed26d2e7e99357118badc9bf3d63acdfe4.png)

demo

最终测试部署的合约地址如下：

0x91DD5a420b26C47DBe939fF29Ecc06ad588184FD

[https://goerli.explorer.zksync.io/address/0x91DD5a420b26C47DBe939fF29Ecc06ad588184FD#contract](https://goerli.explorer.zksync.io/address/0x91DD5a420b26C47DBe939fF29Ecc06ad588184FD#contract)

---

*Originally published on [andyxy23](https://paragraph.com/@andyxy23/zksync)*
