- Integrated Zod validation schemas across various API routes to ensure input integrity and improve error handling. - Updated `mapping-service`, `orchestrator`, `packet-service`, and `webhook-service` to utilize validation middleware for request parameters and bodies. - Improved error handling in webhook management, packet generation, and compliance routes to provide clearer feedback on request failures. - Added new validation schemas for various endpoints, enhancing overall API robustness and maintainability. - Updated dependencies in `package.json` to include the new validation library.
Mapping Service
Account-wallet mapping service with Web3 provider support and WEB3-ETH-IBAN integration.
Features
- Account-wallet linking and unlinking
- Web3 provider integration (MetaMask, WalletConnect, Fireblocks)
- WEB3-ETH-IBAN conversion (Ethereum address ↔ IBAN)
- Provider connection management
- Bidirectional account-wallet lookups
WEB3-ETH-IBAN Support
The service includes full WEB3-ETH-IBAN support for converting Ethereum addresses to IBAN format and vice versa.
Endpoints
POST /v1/mappings/web3/address-to-iban- Convert Ethereum address to IBANPOST /v1/mappings/web3/iban-to-address- Convert IBAN to Ethereum addressPOST /v1/mappings/web3/validate-iban- Validate IBAN formatPOST /v1/mappings/web3/validate-address- Validate Ethereum address
Usage
# Convert address to IBAN
curl -X POST http://localhost:3004/v1/mappings/web3/address-to-iban \
-H "Content-Type: application/json" \
-d '{"address": "0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb"}'
# Convert IBAN to address
curl -X POST http://localhost:3004/v1/mappings/web3/iban-to-address \
-H "Content-Type: application/json" \
-d '{"iban": "XE00..."}'
Providers
Supported providers:
web3/metamask- Web3/MetaMask walletswalletconnect- WalletConnect protocolfireblocks- Fireblocks custody
API Endpoints
POST /v1/mappings/account-wallet/link- Link account to walletPOST /v1/mappings/account-wallet/unlink- Unlink account from walletGET /v1/mappings/accounts/:accountRefId/wallets- Get wallets for accountGET /v1/mappings/wallets/:walletRefId/accounts- Get accounts for walletPOST /v1/mappings/providers/:provider/connect- Connect providerGET /v1/mappings/providers/:provider/connections/:connectionId/status- Get provider statusGET /v1/mappings/providers- List available providers