Function HoneyProvider

  • On-chain context provider for the Honey programs.

    Example

    You need to wrap the entrypoint to your frontend application. For React Applications src/App.tsx. n
    For NextJS Applications pages/_app.tsx

    import { HoneyProvider } from '@honey-finance/sdk';
    const wallet = useConnectedWallet();
    const connection = useConnection();

    return (
    <HoneyProvider
    wallet={wallet}
    connection={connection}
    honeyMarketId={HONEY_MARKET_ID}
    honeyProgram={HONEY_PROGRAM_ID}>

    <Component {...pageProps} /> # entrypoint to your application

    </HoneyProvider>
    )

    Parameters

    Returns ReactElement<any, any>

Generated using TypeDoc