SDK Installation
Install the TypeScript SDK and set up the client for server-side, browser, or React applications.
Install
npm install @dimes-dot-fi/sdkEntry points
Entry point
What it provides
Peer dependencies
# React hooks
npm install react @tanstack/react-query
# On-chain integration
npm install viemClient setup
import { DimesClient, ApiKeyAuth } from "@dimes-dot-fi/sdk";
const client = new DimesClient({
auth: new ApiKeyAuth({
apiKey: process.env.DIMES_API_KEY,
walletAddress: "0x1234...abcd",
}),
});
const markets = await client.getMarkets();import { DimesClient, JwtAuth } from "@dimes-dot-fi/sdk";
const client = new DimesClient({
auth: new JwtAuth({ tokenUrl: "https://your-backend.com/api/dimes-token" }),
});
const markets = await client.getMarkets();Sandbox
Custom fetch
What's next
Last updated

