Skip to main content

Wallet Addresses

Crypto must be sent to (on-ramp) or withdrawn from (off-ramp) a wallet address. There are two ways to provide wallet addresses for ramp transactions.

Option 1: Pass Directly in the Request

Include walletAddress as a parameter in any checkout or quote request. This is the simplest approach.

{
"walletAddress": "0x742d35Cc6634C0532925a3b844Bc9e7595f2bD18"
}

Option 2: Use Merchant Default Wallets

Configure your wallet addresses in the merchant dashboard under Settings > Financial Info > Crypto Wallets. Then pass a sessionId in your request — ZenPays will automatically use your configured wallet for the target network.

Supported networks:

NetworkDescription
ethereumEthereum mainnet (ERC-20)
polygonPolygon (MATIC)
arbitrumArbitrum One
baseBase
optimismOptimism
bnbBNB Chain
avalancheAvalanche C-Chain
tip

If you pass walletAddress directly, it always takes priority over merchant defaults.

Where It Applies

EndpointWallet Behavior
GET /on-ramp/quotesOptional -- improves quote accuracy when provided
GET /on-ramp/ratesOptional
GET /on-ramp/pricesOptional
POST /on-ramp/checkoutRequired -- pass directly or use merchant defaults
POST /on-ramp/widget-urlOptional -- embedded in signed widget URL
GET /off-ramp/quotesOptional
GET /off-ramp/ratesOptional
POST /off-ramp/checkoutRequired -- pass directly or use merchant defaults
POST /off-ramp/widget-urlOptional

Examples

# Explicit wallet address
curl -X POST https://api.zenpayz.com/payment/api/v1/on-ramp/checkout \
-H "Content-Type: application/json" \
-d '{
"onramp": "moonpay",
"source": "usd",
"destination": "eth_ethereum",
"amount": 100,
"type": "buy",
"paymentMethod": "creditcard",
"walletAddress": "0x742d35Cc6634C0532925a3b844Bc9e7595f2bD18"
}'

# Using merchant default wallet
curl -X POST https://api.zenpayz.com/payment/api/v1/on-ramp/checkout \
-H "Content-Type: application/json" \
-d '{
"onramp": "moonpay",
"source": "usd",
"destination": "eth_ethereum",
"amount": 100,
"type": "buy",
"paymentMethod": "creditcard",
"sessionId": "cs_abc123",
"network": "ethereum"
}'

Next Steps