On-chain context provider for the Honey programs.
You need to wrap the entrypoint to your frontend application. For React Applications src/App.tsx. nFor NextJS Applications pages/_app.tsx
src/App.tsx
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>)
Optional
Generated using TypeDoc
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
. nFor NextJS Applications
pages/_app.tsx