Software requirements
Software requirements
Copper Unlimited Online is a Docker image based on
debian:10.5-slim
and uses Docker
Compose and the NodeJS daemon for its operation.The image is publicly available on Copper
DockerHub.Network characteristics of the image:- listens to port 3010 for incoming data and 443 for outgoing calls;
- connects with the Copper API, depending on the chosen
APP_ENVIRONMENT
; - supports SSL/TLS. To enable encryption, see the Enabling SSL/TLS section below.
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. 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) |
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).
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.