Skip to main content

Getting Started

This guide covers everything you need to start integrating with Kroko DEX — connecting to the network, setting up contract references, and making your first API call.

Prerequisites

  • A wallet library (e.g., ethers.js or viem)
  • Node.js 18+ (for server-side integration) or a modern browser (for frontend)

1. Connect to Kasplex

Add the Kasplex network to your wallet or provider:

2. Contract Addresses

Reference the deployed contracts for the network you’re targeting:
See Contract Addresses for the full table.

3. API Base URL

The Swap API is available at:

4. Your First API Call

Fetch the token list to verify connectivity:

5. Get a Quote

Try fetching a swap quote:

Next Steps

Execute a Swap

Complete walkthrough of the 5-step swap process.

Provide Liquidity

Add liquidity to V2 or V3 pools.