UNPKG

@macalinao/grill

Version:

Modern Solana development kit for React applications with automatic account batching, caching, and transaction notifications

22 lines 1.18 kB
import type { FC, ReactNode } from "react"; import type { GetExplorerLinkFunction } from "../contexts/grill-context.js"; import type { TransactionStatusEventCallback } from "../types.js"; export interface GrillHeadlessProviderProps { children: ReactNode; /** Maximum number of accounts to batch in a single request. Defaults to 99. */ maxBatchSize?: number; /** Duration in milliseconds to wait before sending a batch. Defaults to 10ms. */ batchDurationMs?: number; onTransactionStatusEvent?: TransactionStatusEventCallback; /** Custom function to get explorer link for a transaction signature. Defaults to gill's getExplorerLink. */ getExplorerLink?: GetExplorerLinkFunction; } /** * Headless provider component for Solana account batching functionality. * Creates and provides a batch account loader for efficient Solana account fetching. * This provider integrates with gill-react's useSolanaClient hook to access the RPC client. * * For UI integration with toast notifications, use GrillProvider instead. */ export declare const GrillHeadlessProvider: FC<GrillHeadlessProviderProps>; //# sourceMappingURL=grill-headless-provider.d.ts.map