Binary / CLI
Tycho Client CLI installation documentation
When to use the binary client
The binary client is recommended for 2 situations:
For a quick setup, to consume data from Tycho Indexer direct on a terminal
To consume data from Tycho Indexer on apps developed in languages where there isn't a native tycho client available (e.g: any languages apart from Rust and Python). For the supported languages, please check the Rust Clientor Python Clientdocs.
Installing Tycho-client
This guide provides two methods to install Tycho Client:
Install with Cargo (recommended for most users)
Download pre-built binaries from GitHub Releases
Method 1: Install with Cargo
Prerequisites
Cargo
Rust 1.84.0 or later
cargo install tycho-clientMethod 2: Download from GitHub Releases
Step 1: Download the pre-built binary
For a simple, setup-free start, download the latest tycho-client binary release that matches your OS/architecture on GitHub.
Step 2: Extract the binary from the tar.gz
Open a terminal and navigate to the directory where the file was downloaded. Run the following command to extract the contents:
Step 3: Link the binary to a directory in your system's PATH (recommended):
Step 4: Verify Installation
You should see the Tycho Client version displayed. If you need more guidance, contact us via Telegram
Using Tycho Client
Running the client
Step 1: Setting up API Key
If you're connecting to our hosted service, please follow our Authentication to get an API Key. Once you have a key, export it using an environment variable
or use the command line flag
Step 2: Consume data from Tycho Indexer
Now, you're all set up!
Before consuming the data, you first need to choose which protocols you want to track. You can find a list ofHosted Endpoints here. For example, to track the Uniswap V2 and V3 pools on Mainnet, with a minimum value locked of 100 ETH, run:
Or skip secure connections entirely with --no-tls for local setups [coming soon].
Debugging
Since all messages are sent directly to stdout in a single line, logs are saved to a file: ./logs/dev_logs.log. You can configure the directory with the --log-dir option.
Configuring the client
For more details on using the CLI and its parameters, run:
For extended explanation on how each parameter works, check our Usageguide.
Last updated