function AlchemyAccountProvider(props): Element;Defined in: account-kit/react/src/AlchemyAccountProvider.tsx:58
Provider for Alchemy accounts.
import { AlchemyAccountProvider, createConfig } from "@account-kit/react";
import { sepolia } from "@account-kit/infra";
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
const config = createConfig({
apiKey: "your-api-key",
chain: sepolia,
});
const queryClient = new QueryClient();
function App({ children }: React.PropsWithChildren) {
return (
<QueryClientProvider queryClient={queryClient}>
<AlchemyAccountProvider config={config} queryClient={queryClient}>
{children}
</AlchemyAccountProvider>
</QueryClientProvider>
);
}| Parameter | Type | Description |
|---|---|---|
|
| alchemy accounts provider props |
Element
The element to wrap your application in for Alchemy Accounts context.