Developer Documentation
Integrate zkpay's permissionless blockchain payment infrastructure into your applications
Initialization & Setup
Create a payment channel to accept cryptocurrency payments with zkpay. No account or API keys are needed—just provide your merchant address and payment details.
Note: The API expects amounts in the smallest unit (e.g., wei or token decimals), while the SDK uses human-readable values (e.g., "100.00" USDC).
curl -X POST https://api.zkpay.cc/v1/public/channels \
-H "Content-Type: application/json" \
-d '{
"chainId": 11155111,
"targetAddress": "0xYourMerchantAddress",
"amount": "100000000000000",
"metadata": {
"referenceId": "ORDER#1233456"
}
}'
Response
You’ll receive a channel ID and URL to share with customers:
{
"id": "6oyWE4vmosa6kmdP2aGvcnckH8KKQbqatxf5enrhfF8tY1Y",
"url": "https://zkpay.cc/payments/6oyWE4vmosa6kmdP2aGvcnckH8KKQbqatxf5enrhfF8tY1Y",
}