The Web SDK targets first-party browser apps. It ships with TypeScript types for autocomplete and inference. The SDK is tested against the latest versions of:Documentation Index
Fetch the complete documentation index at: https://dev.moonpay.com/llms.txt
Use this file to discover all available pages before exploring further.
- Chrome (Desktop, iOS, Android)
- Safari (macOS)
- Safari (iOS)
- Firefox
Building a React Native app? Use the React Native
SDK instead. For iOS, Android,
or Flutter, drive frames directly — see the manual
integration overview.
Install
Install the SDK package:Conventions
Result<T, E>
Most SDK functions return a Result<T, E> instead of throwing.
| Field | Type | Required | Description |
|---|---|---|---|
ok | boolean | ✅ | Whether the operation succeeded. |
value | T | Present when ok is true. | |
error | E | Present when ok is false. |