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

getContractsInfo

List contract metadata across the chain, paginated.

Signature

function getContractsInfo(
  client: Client,
  parameters?: {
    startAfter?: Address
    limit?: number
    height?: number
  },
): Promise<ContractsResponse>

Example

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

Parameters

startAfterAddress, optional. Address to start after (exclusive).

limitnumber, optional. Maximum entries to return.

heightnumber, optional. Block height to query at. Default 0 (latest).

Returns

ContractsResponseRecord<Address, ContractInfo>.

See also