How to launch
Export shards
Export shards of your key from the CU Desktop application via the wallet backup function: click the drop-down menu in the top right
corner of the window and choose the Backup option. During the export process, CU Desktop will ask for a password to encrypt each
shard of the wallet. This will prevent accessing the shard data in case a potential attacker gains access to the filesystem.
Choose a preferred folder to save the *.copper
file containing the wallet shards.
Prepare the environment
Before running, specify the following fields:
- a path to your folder with the
*.copper
file. - a port that CU Online endpoints will listen to. There is an option to pass the
APP_PORT
environmental variable to specify a port within the container. - the required environment set by the
APP_ENVIRONMENT
environment variable. The choice depends on the platform you are going to operate on. TheAPP_NETWORK
variable is determined automatically and can be omitted. However, ifAPP_NETWORK
is specified, it must match the table below. The environment is set as follows:
APP_ENVIRONMENT | APP_NETWORK | Environment |
---|---|---|
prod | mainnet | copper.co |
mainnet | mainnet | copper.co |
stage | mainnet | demo.copper.co |
demo | mainnet | demo.copper.co |
testnet | testnet | testnet.copper.co (default) |
Launch the Copper Unlimited Online server
To launch the server, use the command below (for any docker run command reference, see the official Docker documentation).
Sign
As everything is set up, you can start signing transactions. The next steps explain how to create a withdrawal order using the Copper Platform API and sign it using Copper Unlimited Online.