# Wrapper

In order to use the [Block3r](/block3d/components/block3r.md) component, you'll need to pass it a [wagmi config](https://wagmi.sh/react/getting-started#create-config) and a [block3dConfig](/block3d/getting-started/config.md).

## Example root

*If you are not using a layout file, wrap the root `app.tsx` file instead.*

```typescript
/*  src/app/layout.tsx  */

"use client";
import { Block3r } from "block3d";
import block3dConfig from "../../block3d.config";
import { config } from "../../wagmi.config";

export default function RootLayout({
  children,
}: {
  children: React.ReactNode;
}) {
  return (
    <html lang="en">
      <body>
        <Block3r block3dConfig={block3dConfig} wagmiConfig={config}>
          {children}
        </Block3r>
      </body>
    </html>
  );
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://block3d.gitbook.io/block3d/getting-started/wrapper.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
