🤝Integrate ZKP2P Onramp

Integrate the ZKP2P onramp directly into your app

With our redirect flow, any application or wallet can offer the entire ZKP2P onramp flow to their users. This includes taking advantage of all of our payment platforms (Venmo, Revolut, HDFC, Garanti), supported blockchains (Base, Ethereum, Polygon etc), supported assets (USDC, USDT, ETH) and gasless transactions.

Quickstart

Integration simply requires you to customize query parameters in the URL and adding the link in your application. With prepopulated fields, you will control exactly which address, chain and token you want your user to onramp onto

// Example
https://zkp2p.xyz/swap?appId=Rampy&amountUsdc=1000&recipientAddress=0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045&platform=venmo&currencyIndex=0&network=base&toToken=USDC

To learn more about the onramp flow, check out this section of the docs.

💵On-ramping

Configuration

ParameterDescriptionValueExample

appId

(Optional) Your application name

String

appId=Rampy

amountUsdc

(Required) Amount in USDC to onramp. Note: users can onramp onto ETH or any other asset but ZKP2P denominates base currency in USDC. So you will need to do a conversion

Number

amountUsdc=1000

recipientAddress

(Required) Recipient address of onramped asset. This is the wallet that the user will deposit funds in

Ethereum address

recipientAddress=0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045

platform

(Required) Payment platform user will onramp from

venmo | revolut | hdfc | garanti

platform=venmo

currencyIndex

(Required) Index of currency for a given payment platform

Venmo: 0 (USD) Revolut: 0 (EUR), 1 (GBP), 2 (SGD), 3 (USD) HDFC: 0 (INR) Garanti: 0 (TRY)

currencyIndex=2

network

(Required) Network to receive tokens on

base | polygon | zksync | ethereum | binance | optimism | arbitrum | avalanche

network=base

toToken

(Required) Token to receive

Base: USDC | ETH Polygon: USDC | USDT Arbitrum: USDC | ETH Ethereum: USDC | USDT | ETH Optimism: ETH | USDC ZKSync: ETH | USDC Binance: USDT Avalance: USDC | USDT

toToken=USDC

Examples

Onramp Revolut EUR to Base ETH

https://zkp2p.xyz/swap?appId=Rampy&amountUsdc=1000&recipientAddress=0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045&platform=revolut&currencyIndex=0&network=base&toToken=ETH

Onramp Venmo USD to Ethereum USDC

https://zkp2p.xyz/swap?appId=Rampy&amountUsdc=1000&recipientAddress=0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045&platform=venmo&currencyIndex=0&network=ethereum&toToken=USDC

Onramp Revolut SGD to Base USDC

https://zkp2p.xyz/swap?appId=Rampy&amountUsdc=1000&recipientAddress=0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045&platform=revolut&currencyIndex=2&network=base&toToken=USDC

Last updated