> For the complete documentation index, see [llms.txt](https://docs.megaeth.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.megaeth.com/moss-docs/index.md).

# MOSS Wallet SDK

Embedded wallet for MegaETH apps: connect, signing, transfers, contract calls, paymaster flows, and server-side verification through one SDK surface. Frontier Mainnet (chain ID `4326`) is live at `https://mainnet.megaeth.com/rpc`.

## Pick a Track

For framework-agnostic JS/TS apps, integrate the [**Core SDK**](/moss-docs/core-sdk/installation.md) directly. For React apps, use the [**React SDK**](/moss-docs/react-sdk/overview.md) with provider + hook architecture and TanStack Query semantics. For backend auth and delegated key ownership checks, use the [**Server Verify**](/moss-docs/wallet/server-verify.md) package. If your React app already uses wagmi, the [**Wagmi Connector**](/moss-docs/react-sdk/wagmi-connector.md) drops MOSS in as a wagmi connector. For terminal, scripting, and CI workflows, the [**MOSS CLI**](/moss-docs/wallet/cli.md) gives scoped command-line access to a MOSS account.

For install through first transaction, see the [**Quickstart**](/moss-docs/wallet/quickstart.md).

## Build Deeper

* [**Methods Reference**](/moss-docs/methods/methods.md) — every method, hook, type, and return contract.
* [**Smart Approvals (Policy Engine)**](/moss-docs/core-sdk/permissions.md) — session grants that let approved actions run without repeated prompts.
* [**Paymaster Guide**](/moss-docs/wallet/paymaster-setup.md) — sponsor gas via `sponsorUrl`, choose a sponsor mode, or use built-in ERC-20 gas payment.
* [**Integration Checklist**](/moss-docs/wallet/integration-checklist.md) — plan UX, permissions, gas, security, and rollout before kickoff.
* [**Best Practices**](/moss-docs/wallet/best-practices.md) — restrictive permission defaults, production hardening, common pitfalls.
* [**Migrating from Privy**](/moss-docs/wallet/privy-migration.md) — move a user's assets from a Privy embedded wallet into MOSS.
* [**Security Audits**](/moss-docs/wallet/audits.md) — independent audits of the Normal Account smart contract.
* [**AI Agent Guide**](/moss-docs/wallet/ai-agent-guide.md) — policy-first patterns for agent-driven execution.

For chain-level documentation — JSON-RPC reference, MegaEVM, gas model, network endpoints — see [docs.megaeth.com](https://docs.megaeth.com).


---

# 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:

```
GET https://docs.megaeth.com/moss-docs/index.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.
