For the complete documentation index, see llms.txt. This page is also available as Markdown.

MOSS Wallet SDK

Embedded wallet SDK for MegaETH — TypeScript core, React bindings, and server-side verification.

Embedded wallet for MegaETH apps: connect, signing, transfers, contract calls, paymaster flows, and server-side verification through one SDK surface.

Pick a Track

For framework-agnostic JS/TS apps, integrate the Core SDK directly. For React apps, use the React SDK with provider + hook architecture and TanStack Query semantics. For backend auth and delegated key ownership checks, use the Server Verify package. If your React app already uses wagmi, the Wagmi Connector drops MOSS in as a wagmi connector. For terminal, scripting, and CI workflows, the MOSS CLI gives scoped command-line access to a MOSS account.

For install through first transaction, see the Quickstart.

Build Deeper

  • Methods Reference — every method, hook, type, and return contract.

  • Smart Approvals (Policy Engine) — session grants that let approved actions run without repeated prompts.

  • Paymaster Guide — sponsor gas via sponsorUrl, choose a sponsor mode, or use built-in ERC-20 gas payment.

  • Integration Checklist — plan UX, permissions, gas, security, and rollout before kickoff.

  • Best Practices — restrictive permission defaults, production hardening, common pitfalls.

  • Migrating from Privy — move a user's assets from a Privy embedded wallet into MOSS.

  • Security Audits — independent audits of the Normal Account smart contract.

  • AI Agent Guide — policy-first patterns for agent-driven execution.

For chain-level documentation — JSON-RPC reference, MegaEVM, gas model, network endpoints — see docs.megaeth.com.

Last updated