Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

getPerpsPairParams

Read parameters across every perps pair, paginated.

Signature

function getPerpsPairParams(
  client: Client,
  parameters?: {
    startAfter?: string
    limit?: number
    height?: number
  },
): Promise<Record<string, PerpsPairParam>>

Example

import { createPublicClient, createTransport, testnet } from "@left-curve/sdk"
 
const client = createPublicClient({ chain: testnet, transport: createTransport() })
const all = await client.getPerpsPairParams({ limit: 50 })

Parameters

startAfterstring, optional. Pair id to start after.

limitnumber, optional. Maximum entries.

heightnumber, optional. Block height. Default 0 (latest).

Returns

Record<string, PerpsPairParam> — keyed by pair id.

See also