Skip to main content
The fetchOnrampConfig utility fetches the list of countries supported by Coinbase Onramp and their available payment methods. This is useful when you need to validate user eligibility or display available payment options.

Usage

Parameters

Returns

Promise<OnrampConfigResponseData> - Returns a promise that resolves to the configuration data containing supported countries and their payment methods. See OnrampConfigResponseData for response type details.