Fund
setupOnrampEventListeners
The setupOnrampEventListeners
utility sets up event listeners for the Coinbase Onramp widget. It helps you handle various events like successful purchases, exits, and other user interactions.
Usage
Parameters
Returns
() => void
- Returns an unsubscribe function that removes the event listeners when called.
Event Types
See the following type definitions for event data: