> For the complete documentation index, see [llms.txt](https://devdocs.educhain.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://devdocs.educhain.xyz/services/wallets/privy.md).

# Privy

The Privy React SDK is the easiest way to onboard your users to web3 in your React App.

With just nine minutes of setup, you get out-of-the-box support for:

* A variety of login methods, including email, phone, wallets, and social
* Customizable UIs to progressively onboard your users
* Self-custodial embedded wallets and powerful connectors for external wallets

For a Quickstart please visit [here](https://docs.privy.io/guide/react/quickstart)

When using privy on Open Campus Testnet, please bear in mind that `defaultChain` and `supportedChains`have to be included in the chain config. \`\`\` \<PrivyProvider appId="your-privy-app-id" config={{ // Customize Privy's appearance in your app appearance: { theme: 'light', accentColor: '#676FFF', logo: '<https://your-logo-url>', }, // Create embedded wallets for users who don't have a wallet embeddedWallets: { createOnLogin: 'users-without-wallets', },

````
    // Custom congif here
        defaultChain: openCampusChain,
        supportedChains: [openCampusChain],

  }}
>
</PrivyProvider>


// OpenCampusChain definition here
import { defineChain } from "viem-15";
const openCampusChain= defineChain ({
        id: 656476,
        network: "Open Campus Codex",
        name: "Open Campus Codext",
        nativeCurrency: {
            name: "EDU",
            symbol: "EDU",
            decimals: 18,
        },
        rpcUrls: {
            public: {
                http: ["https://rpc.open-campus-codex.gelato.digital"],
            },
            default: {
                http: ["https://rpc.open-campus-codex.gelato.digital"],
            },
        },
        blockExplorers: {
            default: {
                name: "Block Scout",
                url: "https://opencampus-codex.blockscout.com/",
            },
        },
        contracts: {
        },
        testnet: true,
    }),

```
````


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://devdocs.educhain.xyz/services/wallets/privy.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
