- The application pulls orders in the
workingandawaiting-settlementstatuses using the Copper public API. If there are no orders available, the application enters sleeping mode for 10 seconds. - Then, the application takes the first order, and if it is in the
awaiting-settlementstatus, moves it to theworkingstatus. - After this, it triggers the order signing request to the Copper Unlimited Server.
- The application waits until the request is either in the
completedorerrorstatus. - If the request is in
errorstatus, it fires an error; if it is incompleted, it repeats the whole process starting from the first point.
1
Configure your docker-compose.yml
2
Provide shards
Backup your wallet shards and place them in the directory specified as an external volume for the
cu-server container (in the
example: ${PWD}/key-backups/). Do not forget to activate the created wallets in the desired platform environment and request to
switch the corresponding vaults to hot if it has not been done before.3
Configure wallets
The Place this file in the directory specified as an external volume for the
wallets-config.js file contains details of the shards. Below, you will find an example of the configuration with comments:hot-wallet container (in the example: ${PWD}/wallets-config.js).As per the example, the resulting file composition on this step looks as follows:4
Start your service
Start your service with the use of the
docker-compose up --build command.5
Create withdrawals and sign
Use the specified environment of the Copper Platform to create withdrawal orders. They will be signed and pushed forward
automatically.