The Web SDK is designed for first-party browser apps. It includes TypeScript types for autocomplete and type 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
Currently, the SDK does not support React Native.
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. |