CRO On-Ledger Settlement Engine
Settle Interledger payments using on-ledger CRO transfers
Install
npm install
npm run build
Run
DEBUG=settlement* npm start
Configuration
Optionally configure the settlement engine using these environment variables:
CRO_WALLET_NAME
: The CRO wallet nameCRO_WALLET_PASSPHRASE
: The CRO wallet passphraseCLIENT_RPC_HOST
: Hostname of the ClientRPC server.CLIENT_RPC_PORT
: Port of the ClientRPC server.CONNECTOR_URL
: URL of the connector's server dedicated to this settlement engine.- Default:
http://localhost:7771
- Default:
ENGINE_PORT
: Port of the settlement engine server exposed to the connector (e.g. for triggering automated settlements).- Default:
3000
- Default:
REDIS_URI
: URI to communicate with Redis, typically in the formatredis://[:PASSWORD@]HOST[:PORT][/DATABASE]
.- Default:
127.0.0.1:6379/1
(database index of 1 instead of 0) - Note: this settlement engine must use a unique Redis database index (or dedicated Redis instance) for security to prevent conflicting with the connector.
- Default:
DEBUG
: Pattern for printing debug logs. To view logs,settlement*
is recommended.