@@ -316,76 +316,6 @@ Based on [ROZO API Documentation](https://docs.rozo.ai/integration/api-doc/suppo
316316| Base | ` 8453 ` | ` base ` | EVM | ✅ |
317317| Rozo Stellar | ` 1500 ` | ` rozoStellar ` | Stellar | ✅ (7 dec) |
318318
319- ### Token Addresses
320-
321- <details >
322- <summary ><strong >Ethereum (Chain ID: 1)</strong ></summary >
323-
324- | Token | Address | Decimals | Constant |
325- | ----- | -------------------------------------------- | -------- | -------------- |
326- | USDC | ` 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48 ` | 6 | ` ethereumUSDC ` |
327- | USDT | ` 0xdac17f958d2ee523a2206206994597c13d831ec7 ` | 6 | ` ethereumUSDT ` |
328-
329- </details >
330-
331- <details >
332- <summary ><strong >Arbitrum (Chain ID: 42161)</strong ></summary >
333-
334- | Token | Address | Decimals | Constant |
335- | ----- | -------------------------------------------- | -------- | -------------- |
336- | USDC | ` 0xaf88d065e77c8cc2239327c5edb3a432268e5831 ` | 6 | ` arbitrumUSDC ` |
337- | USDT | ` 0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9 ` | 6 | ` arbitrumUSDT ` |
338-
339- </details >
340-
341- <details >
342- <summary ><strong >Base (Chain ID: 8453)</strong ></summary >
343-
344- | Token | Address | Decimals | Constant |
345- | ----- | -------------------------------------------- | -------- | ---------- |
346- | USDC | ` 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913 ` | 6 | ` baseUSDC ` |
347-
348- </details >
349-
350- <details >
351- <summary ><strong >BSC (Chain ID: 56)</strong ></summary >
352-
353- | Token | Address | Decimals | Constant |
354- | ----- | -------------------------------------------- | -------- | --------- |
355- | USDC | ` 0x8ac76a51cc950d9822d68b83fe1ad97b32cd580d ` | 18 | ` bscUSDC ` |
356- | USDT | ` 0x55d398326f99059ff775485246999027b3197955 ` | 18 | ` bscUSDT ` |
357-
358- </details >
359-
360- <details >
361- <summary ><strong >Polygon (Chain ID: 137)</strong ></summary >
362-
363- | Token | Address | Decimals | Constant |
364- | ----- | -------------------------------------------- | -------- | ------------- |
365- | USDC | ` 0x3c499c542cef5e3811e1192ce70d8cc03d5c3359 ` | 6 | ` polygonUSDC ` |
366- | USDT | ` 0xc2132d05d31c914a87c6611c10748aeb04b58e8f ` | 6 | ` polygonUSDT ` |
367-
368- </details >
369-
370- <details >
371- <summary ><strong >Rozo Solana (Chain ID: 900)</strong ></summary >
372-
373- | Token | Address | Decimals | Constant |
374- | ----- | ---------------------------------------------- | -------- | ---------------- |
375- | USDC | ` EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v ` | 6 | ` rozoSolanaUSDC ` |
376- | USDT | ` Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB ` | 6 | ` rozoSolanaUSDT ` |
377-
378- </details >
379-
380- <details >
381- <summary ><strong >Rozo Stellar (Chain ID: 1500)</strong ></summary >
382-
383- | Token | Address | Decimals | Constant |
384- | ----- | --------------------------------------------------------------- | -------- | ----------------- |
385- | USDC | ` USDC:GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN ` | 7 | ` rozoStellarUSDC ` |
386-
387- </details >
388-
389319---
390320
391321## 🛠️ Utility Functions
@@ -437,44 +367,6 @@ console.log(config.preferred); // Source payment details
437367console .log (config .destination ); // Destination payment details
438368```
439369
440- ---
441-
442- ## 🔐 Webhook Verification
443-
444- When using webhooks, verify incoming requests using HMAC-SHA256:
445-
446- ``` typescript
447- import crypto from " crypto" ;
448-
449- function verifyWebhook(
450- payload : string ,
451- signature : string ,
452- secret : string
453- ): boolean {
454- const hmac = crypto .createHmac (" sha256" , secret );
455- const digest = hmac .update (payload ).digest (" hex" );
456- return crypto .timingSafeEqual (Buffer .from (signature ), Buffer .from (digest ));
457- }
458-
459- // In your webhook handler
460- app .post (" /api/webhooks/payment" , (req , res ) => {
461- const signature = req .headers [" x-rozo-signature" ];
462- const payload = JSON .stringify (req .body );
463-
464- if (! verifyWebhook (payload , signature , payment .webhookSecret )) {
465- return res .status (401 ).send (" Invalid signature" );
466- }
467-
468- // Process webhook
469- const { status, id } = req .body ;
470- console .log (` Payment ${id } status: ${status } ` );
471-
472- res .status (200 ).send (" OK" );
473- });
474- ```
475-
476- ---
477-
478370## 📚 TypeScript Support
479371
480372Full TypeScript definitions included. All exports are typed.
0 commit comments