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.
useMoonPay() returns the SDK client made available by <MoonPayProvider>. Call it from any function component below the provider to access integration methods.
ConnectScreen.tsx
Return value
useMoonPay() returns an object with a single client property. The client exposes every integration method — see the MoonPayProvider reference for the full list.
| Field | Type | Required | Description |
|---|---|---|---|
client | object | ✅ | The SDK client used to call MoonPay Platform methods. |
Errors
useMoonPay() throws if called outside a <MoonPayProvider>: