In order to familiarize yourself with the operation of Copper Unlimited Online, the Copper Team has a ready-made containerized example of the service to deploy on your side. It looks like one more image to deploy together with Copper Unlimited Online and is available on Copper DockerHub. The application works as follows:Documentation Index
Fetch the complete documentation index at: https://developer.copper.co/llms.txt
Use this file to discover all available pages before exploring further.
- 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.
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.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: