Setup
Client Initialization
Initialize the Ekiden TypeScript SDK to connect to the REST and WebSocket APIs.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Initialize the Ekiden TypeScript SDK to connect to the REST and WebSocket APIs.
| Environment | REST API | Public WebSocket | Private WebSocket |
|---|---|---|---|
| Mainnet | https://api.ekiden.fi/api/v1 | wss://api.ekiden.fi/ws/public | wss://api.ekiden.fi/ws/private |
| Testnet Beta | https://api.cnt.ekiden.fi/api/v1 | wss://api.cnt.ekiden.fi/ws/public | wss://api.cnt.ekiden.fi/ws/private |
| Staging | https://api.canton.ekiden.fi/api/v1 | wss://api.canton.ekiden.fi/ws/public | wss://api.canton.ekiden.fi/ws/private |
import { EkidenClient, TESTNET } from "@ekidenfi/ts-sdk";
const ekiden = new EkidenClient(TESTNET);
import { EkidenClient } from "@ekidenfi/ts-sdk";
const ekiden = new EkidenClient({
baseURL: "https://your-api.example.com",
wsURL: "wss://your-api.example.com/ws/public",
privateWSURL: "wss://your-api.example.com/ws/private",
apiPrefix: "/api/v1",
});