# 合约部署

1. 打开CoinWallet center，点击合约列表，随后点击“添加部署”按钮

   <figure><img src="https://254105150-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fx1sJpsLJyJ12eTG1bUgP%2Fuploads%2Fb8Z9xh1SNen5qWYIxcqJ%2F%E5%9B%BE%E7%89%87.png?alt=media&#x26;token=a3db4b2f-c924-44d9-a29a-0f551a649979" alt=""><figcaption></figcaption></figure>
2. 弹出添加部署填写框，选择主链、输入合约名称、合约字节码、合约ABI、设备和地址（Gas Price和Gas Limit会自动结算但你还是可以手动更改）![](https://254105150-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fx1sJpsLJyJ12eTG1bUgP%2Fuploads%2FX26xYDQgFrne4IuFvlRK%2F%E5%9B%BE%E7%89%87.png?alt=media\&token=67a9ce77-0eac-4be5-8347-594cee3142aa)![](https://254105150-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fx1sJpsLJyJ12eTG1bUgP%2Fuploads%2FKrhtiYGf5Ss2ElxQT3n7%2F%E5%9B%BE%E7%89%87.png?alt=media\&token=19e3b5c4-d6aa-49b7-8651-a8fc357b3158)
3. 提交部署后，部署记录将出现在合约列表的部署记录，其状态为“待审批”，需打开Coinwallet app审批此部署记录

   <figure><img src="https://254105150-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fx1sJpsLJyJ12eTG1bUgP%2Fuploads%2FtfjjJhlytFYKxJk3tffD%2F%E5%9B%BE%E7%89%87.png?alt=media&#x26;token=c096513d-2a7e-4588-9a2e-0b65284af97b" alt=""><figcaption></figcaption></figure>
4. 打开Coinwallet app，点击“Activity” 点击有关部署记录状态为“待处理”，点击“批准”，验证身份后会显示批准交易成功，历史记录状态变更为“确认中”\
   ![](https://254105150-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fx1sJpsLJyJ12eTG1bUgP%2Fuploads%2FT4GMBqWEMu0wGfTnY0Pn%2F%E5%9B%BE%E7%89%87.png?alt=media\&token=73368136-421e-4631-9d2a-eca5d8f4d32d)
5. 链上成功后，状态转为“链上成功”其合约ID和合约地址将自动生成并显示在部署记录列表。

<figure><img src="https://254105150-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fx1sJpsLJyJ12eTG1bUgP%2Fuploads%2FiDlYcDuRKxG6oUssnyRJ%2F%E5%9B%BE%E7%89%87.png?alt=media&#x26;token=b3801350-8f24-457e-8192-4d1b366b196b" alt=""><figcaption></figcaption></figure>
