1

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.

2

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. The APP_NETWORK variable is determined automatically and can be omitted. However, if APP_NETWORK is specified, it must match the table below. The environment is set as follows:
APP_ENVIRONMENTAPP_NETWORKEnvironment
prodmainnetcopper.co
mainnetmainnetcopper.co
stagemainnetdemo.copper.co
demomainnetdemo.copper.co
testnettestnettestnet.copper.co (default)
3

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).

docker run --rm -ti \
  -v ${PWD}/key-backups/:/app/keys/ \
  -e APP_ENVIRONMENT='testnet' \
  -p your_port_for_cu_online:3010 \
  copperexchange/copper-unlimited:latest

# ${PWD}/key-backups/ is the folder containing the wallet backup.
# The APP_ENVIRONMENT variable can be 'testnet', 'stage', 'prod', 'demo' or 'mainnet' (see details above).
4

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.