Widget Reference

OrdaProvider

Main provider component that wraps your application.

interface OrdaProviderProps {
  config: OrdaProviderConfig;
  children: React.ReactNode;
}

interface OrdaProviderConfig {
  getToken: () => Promise<TokenResponse>;
  appKitConfig: AppKitConfig;
  debug?: boolean;
}

createAppKitConfig

Factory function for creating wallet configuration.

function createAppKitConfig(config: AppKitFactoryConfig): AppKitConfig;

interface AppKitFactoryConfig {
  projectId: string;
  metadata?: {
    name?: string;
    description?: string;
    url?: string;
    icons?: string[];
  };
}

Hooks

useOrdaSDK

Access the SDK instance and authentication state.

useQuote

Generate payment quotes.

useTransaction

Monitor transaction status.

useTokenPrices

Fetch token USD prices.

useBalances

Fetch wallet token balances.

Components

Widget

Main payment widget component.

UI Components

shadcn/ui-based components:

  • Button - Button component with variants

  • Dialog - Modal dialog

  • Drawer - Bottom drawer (mobile)

  • Input - Text input

  • Select - Dropdown select

  • Badge - Badge/chip component

  • Label - Form label

  • Popover - Popover tooltip

  • Sheet - Side sheet

Utilities

Constants

Last updated