Ramp

1. Redirect or load Iframe

We should redirect or load iframe (redirect is recommended) our user to:

https://wallet.wallettwo.com/auth/login?action=ramp
  • action: Use 'ramp' for this example. On interactions group you can find all what you can do.

  • redirect_uri: Url where user should be redirected to after success or error.

  • type : Onramp or offramp ramp.

  • network_id: ID of network to deposit ramp

  • contract: Symbol of contract to ramp

  • currency: (optional) Slug of currency to ramp

  • payment_method: (optional) Slug of payment method to use on the ramp

  • amount:(optional) Tokens to show to the user

2. Process callback/event

After user has finished the auth process successfully or not he'll be redirected or event will be send containing the following information:

  • success: True or false

  • status: Status of the ramp

  • ramp_id: ID of the ramp

  • usr: User ID

  • wlt: Wallet Address of the user

Last updated