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 variantsDialog- Modal dialogDrawer- Bottom drawer (mobile)Input- Text inputSelect- Dropdown selectBadge- Badge/chip componentLabel- Form labelPopover- Popover tooltipSheet- Side sheet
Utilities
Constants
Last updated