Integrate ZKP2P
Last updated
Last updated
Try the demo at https://demo.zkp2p.xyz
Integrate the ZKP2P onramp directly into your application by using our redirect flow. With a single link, you can offer your users fast and affordable onchain onboarding, complete with:
Multiple payment platforms (Venmo, Revolut, Wise, Cash App)
Supported blockchains (Base, Solana, Ethereum, Polygon, etc.)
Supported assets (USDC, SOL, ETH, USDT, etc.)
Gasless transactions
Integration is simple:
Customize the query parameters in the URL.
Embed the link within your application.
Users will redirect to ZKP2P for seamless onramping
Users are redirected back to your site upon successful onramping
referrer
(Required) Your application name
String
referrer=Rampy
referrerLogo
(Recommended) Your application logo
String
referrerLogo=https://<logo-link>
callbackUrl
(Recommended) URL to which users are redirected after successful onramp
String
callbackUrl=https://<your-app>/<success>
inputCurrency
(Optional) Input currency user wants to swap. Defaults to users's national currency or USD.
String
inputCurrency=USD
inputAmount
(Optional) Amount of input currency the user wants to swap
Number (upto 2 decimal places)
inputAmount=12.34
paymentPlatform
(Optional) Payment platform user will onramp from
String
paymentPlatform=venmo
amountUsdc
(Optional) Amount of output USDC the user wants to ramp to. Include 6 decimal places.
String
amountUsdc=1000000
toToken
(Optional) Output token the user will onramp to
String (Has to be supported tokens listed below)
toToken=USDC
recipientAddress
(Optional) Address to which the output tokens will be sent.
String
recipientAddress=0xf39...66
Supported Tokens
USDC
Base
0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
USDC
ETH
Base
0x0000000000000000000000000000000000000000
Base+ETH
CBBTC
Base
0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf
CBBTC
SOL
Solana
11111111111111111111111111111111
SOL
USDC
Solana
EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
Solana+USDC
TRUMP
Solana
6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN
TRUMP
ETH
Ethereum
0x0000000000000000000000000000000000000000
ETH
USDC
Ethereum
0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48
Ethereum+USDC
USDT
Ethereum
0xdAC17F958D2ee523a2206206994597C13D831ec7
Ethereum+USDT
POL
Polygon
0x0000000000000000000000000000000000000000
Polygon
USDC
Polygon
0x3c499c542cef5e3811e1192ce70d8cc03d5c3359
Polygon+USDC
USDC
Polygon
0xc2132D05D31c914a87C6611C10748AEb04B58e8F
Polygon+USDT
Onramp to Base ETH
Onramp 10 USD to Solana
Onramp 10 EUR via Revolut to Mainnet ETH
Payment platform is not enforced. Upon landing on zkp2p the user can chose to select a different payment platform to complete the flow.
Onramp exactly 1 USDC on Base to a recipient address. Users can choose their preferred currency and payment method. The best available quote is fetched and displayed so the user can complete the order.
Note:
Exact amount output is currently only available for USDC and not for other tokens
amountUsdc overrides any output token (toToken) and input (inputAmount) params
recipientAddress is requried for the exact output flow
For any issues or support, reach out to ZKP2P Team.