URL

/v1/wallet/on_ramp/get_url

jwt token must be present.

Query Params

CurrencyCode

optional.

If set, then the user can only purchase that particular token.

Value Description
eth ether
sol sol
usdc ethereum usdc
usdc_sol usdc on Solana
btc

If not set, then the user can select the token from popup window.

Email

optional.

The email address that transaction status is sent to.

Sample Request

/v1/wallet/on_ramp/get_url?currencyCode=usdc_flow&[email protected]

Sample Response

{
    "status": "success",
    "data": {
        "signed_url": "<https://buy-sandbox.moonpay.com/?apiKey=pk_test_BOYXGsVdyJRztr1LA7lywJpZfpq2yZ9&externalUserId=10769&currencyCode=usdc_flow&email=a%40a.com&signature=6KmhIdXc0V5KdpSCuqlU6TgtO8P6qIygD%2Fjk9mRfxB0%3D>"
    }
}

Then open the “signed_url” in the browser.