Developer Documentation & Arc L1 API
Integrate programmatic USDC checkout links, server-side receipt verification, signed webhooks, and merchant settlement with automatic daily payouts.
Arc Network L1 RPC
Native USDC Gas Architecture
Arc is an EVM-compatible Layer-1 chain where USDC is the native gas asset. Transactions settle deterministically in sub-second time.
Arc Network Testnet
https://rpc.testnet.arc.network
5042002 (0x4cf212)
USDC (Native L1 Gas)
// 1. Create a Payment Link via KlyroPay REST API
const response = await fetch('https://klyropay.com/api/links', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'x-wallet-address': '0x70997970C51812dc3A010C7d01b50e0d17dc79C8',
},
body: JSON.stringify({
amount: 100.00,
title: 'Consulting Retainer & Audit',
currency: 'USDC',
}),
});
const data = await response.json();
console.log('Payment Link URL:', data.link.url);
// -> "https://klyropay.com/pay/consult-100"Core API Endpoints
Initializes a payment intent for a hosted checkout link. Enforces idempotency via client-provided keys and verifies recipient validity.
Verifies onchain transaction confirmation on Arc L1. Updates internal state to PAID, records double-entry journal entries, and emits webhook events.
Retrieves all active, paid, and archived payment links for the authenticated merchant address.
Resolves human-readable KlyroPay usernames (e.g. @alice) to verified Arc EVM public addresses.
Merchant API settlement
Use a server-side sk_test_ or sk_live_ key. Payment creation requires an Idempotency-Key. Verify a completed payment and read its receipt before fulfilling an order.
POST /api/v1/transaction/initialize
GET /api/v1/transaction/verify/{reference}
GET /api/v1/receipts/{reference}
Webhook events:
payment.completed payout.completed payout.failedMerchant funds are credited to the settlement ledger after Arc verification. Daily payouts require a verified wallet, enforce minimums and daily limits, and wait 24 hours before a changed wallet becomes active. Treasury signing is isolated behind an external signer; no private key is stored in this application.