Skip to content
CTRL K
    SDK

    SDK

    TypeScript packages under @nutrimatic/*. The public npm release of @nutrimatic/sdk awaits its official announcement — watch Nutrimatic’s channels. Docs and Lab are available today. See Installation.

    Import

    Use @nutrimatic/sdk when the package is available to you. Import only what you need — you do not pull in every symbol at once.

    Most apps start with just the factory:

    import { createNutrimaticSdk } from '@nutrimatic/sdk'
    
    const sdk = createNutrimaticSdk({
      ledgers: [{ id: 'evm:421018', kind: 'evm', chainId: 421018, alias: 'infinite-mainnet' }],
      mode: 'read',
      integrationContext: 'client',
    })
    
    const chart = await sdk.easy.read.getChart({ pair: '42-USDT', interval: '1h' })

    That is enough for reads and writes through sdk.*. Helpers, NutrimaticError, and types are optional extras from the same package — add them only when a guide needs them (for example merging chart or feed pages). Many integrations never import those at all.

    import {
      createNutrimaticSdk,
      NutrimaticError,
      mergeCandleSeries,
      lastClosedCandleTime,
      type WalletAdapter,
    } from '@nutrimatic/sdk'

    Import @nutrimatic/sdk only — do not import other @nutrimatic/* packages in your app.

    PageDescription
    Packages@nutrimatic/* packages and what to import from @nutrimatic/sdk