Skip to main content

Overview

  • Configuration preset for Initia mainnet with defaults for registry, router, glyph, and username services.
  • Use as a starting point for production apps.

Quickstart

import { InterwovenKitProvider, MAINNET } from '@initia/interwovenkit-react'

export function Providers({ children }: { children: React.ReactNode }) {
  return <InterwovenKitProvider {...MAINNET}>{children}</InterwovenKitProvider>
}

Value

const MAINNET: {
  defaultChainId: 'interwoven-1'
  registryUrl: 'https://registry.initia.xyz'
  routerApiUrl: 'https://router-api.initia.xyz'
  glyphUrl: 'https://glyph.initia.xyz'
  usernamesModuleAddress: '0x72ed9b26ecdcd6a21d304df50f19abfdbe31d2c02f60c84627844620a45940ef'
  lockStakeModuleAddress: '0x3a886b32a802582f2e446e74d4a24d1d7ed01adf46d2a8f65c5723887e708789'
  minityUrl: 'https://portfolio-api.minity.xyz'
  dexUrl: 'https://dex-api.initia.xyz'
  vipUrl: 'https://vip-api.initia.xyz'
  theme: 'dark'
}
Property descriptions:
  • usernamesModuleAddress: On-chain module address of the Initia (.init) username contract. This is the same for all apps using mainnet and it represents the deployed contract address that handles username lookups (e.g., resolving alice.init to an address)
  • lockStakeModuleAddress: On-chain module address used for lock/stake position queries
  • minityUrl: Base URL for Minity-backed portfolio data
  • dexUrl: Base URL for DEX-backed portfolio and position data
  • vipUrl: Base URL for VIP-backed portfolio and position data
  • theme: Default theme is "dark", but can be overridden to "light" when using the preset

Notes

  • Most apps should start with {...MAINNET} and override only what they need (for example defaultChainId or theme).