For the complete documentation index, see llms.txt. This page is also available as Markdown.

Quickstart

Swap via Fynd in minutes.

Integrate Fynd into your application in two steps.

To interact with live quotes directly in your terminal, go to swap CLI instead.

Prerequisites

Step 0 — Start Fynd

cargo install fynd
export TYCHO_API_KEY=your-api-key
export RUST_LOG=fynd=info
fynd serve

Select a chain

Each Fynd instance serves a single chain. fynd serve defaults to Ethereum; pass --chain to target another one:

fynd serve --chain base

For Docker, append the flag after serve:

docker run \
  -e TYCHO_API_KEY=your-api-key \
  -e RUST_LOG=fynd=info \
  -p 3000:3000 -p 9898:9898 \
  ghcr.io/propeller-heads/fynd serve --chain base

These chains ship with built-in Tycho and RPC endpoints (names are case-insensitive): ethereum, base, unichain, bsc, arbitrum, polygon. For any other chain, also pass --tycho-url and --rpc-url explicitly.

Your client must target the same chain. If you use the TypeScript client (Step 1), set chainId and the viem chain to match the server:

Step 1 — Execute a swap

Fynd currently only supports sell orders (exact input). Set "side": "sell" in your order. Buy orders (exact output) are not yet supported.

Native ETH swaps

To swap native ETH, use 0x0000...0000 as the token_in or token_out address in your order.

Next steps

Last updated