Skip to content

Latest commit

 

History

History
64 lines (41 loc) · 1.32 KB

LIGHTCLIENT.md

File metadata and controls

64 lines (41 loc) · 1.32 KB

Light Client

Running Light Client in Docker

Prerequisites

  • Docker

Usage

Clone the repository:

git clone https://github.com/covalenthq/das-ipfs-pinner
cd das-ipfs-pinner

Build the Docker image:

docker build -t covalent/light-client -f Dockerfile.lc .

Run the Docker container:

docker run -d --restart always --name light-client -e PRIVATE_KEY="YOUR HEX PRIV KEY" covalent/light-client

Check the status of the Light Client:

docker logs -f light-client

Running Light Client Locally

Prerequisites

Building from Source

Running Light Client

To run the light-client, use the following command:

./bin/light-client --rpc-url <rpc-url> \
    --collect-url <collect-url> \
    --private-key <private-key> 

Note: Private key is the identity of your client. To generate a private key, use can use following resources:

./bin/light-client --rpc-url wss://coordinator.das.test.covalentnetwork.org/rpc --collect-url https://us-central1-covalent-network-team-sandbox.cloudfunctions.net/ewm-das-collector --private-key ${PRIVATE_KEY}