Dapp development Tutorial released Dapp to the online

Source: Internet
Author: User
Tags json
Dapp Development Tutorial released Dapp to the online 1 Registration

Register to Testnet

Asch-cli-h <testnet host>-P <testnet port> registerdapp-e "<your secret>"-F Path/to/dapp.json

Register to Mainnet

Asch-cli-h <mainnet host>-P <mainnet port>-M registerdapp-e "<your secret>"-F Path/to/dapp.json

Where Dapp.json is the meta-information file generated when the Dapp is created

These two commands can be executed on any machine, only need to provide the host and port parameters can be registered through the remote node, the default host is localhost, the default port is 4096 main, if it is registered to mainnet, need to add additional-m parameter 2 Modify the Genesis block

Sometimes you may need to modify the Genesis block, for example, when you use a creator password for local development, you want to use another password when posting to the online or use a different side-link trustee, you can choose to modify the Genesis block in addition to recreating the Dapp.

# CD <asch dir>
asch-cli dapps-c

After executing this command, you will be prompted with a series of questions, similar to when creating Dapp, you can re-enter the Genesis account password, the trustee's public key list, the built-in asset information, and so on. 3 Installation and uninstallation

Installation

ASCH-CLI Dapps-i

Unloading

ASCH-CLI Dapps-u

These two commands will prompt you to enter 3 parameters, namely Dapp ID, node address, node password, where the node password is configured in Config.json Masterpassword

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.