# Blockchain Infrastructure (chains, stablecoins used)

Ramply's blockchain infrastructure is built on a multi-chain architecture that supports 30+ blockchain networks, ensuring optimal performance, security, and cost-effectiveness for cross-border payments.

## Supported Blockchain Networks

### Layer 1 Blockchains

* **Ethereum**: Primary network for USDC and major DeFi integrations
* **Polygon**: Low-cost transactions for high-frequency transfers
* **BSC (Binance Smart Chain)**: Fast and affordable transactions
* **Avalanche**: High throughput and low latency
* **Solana**: Ultra-fast transaction processing
* **Arbitrum**: Layer 2 scaling for Ethereum
* **Optimism**: Optimistic rollup for Ethereum scaling

### Layer 2 Solutions

* **Polygon PoS**: Ethereum-compatible sidechain
* **Arbitrum One**: Optimistic rollup with full EVM compatibility
* **Optimism**: Layer 2 scaling solution
* **Base**: Coinbase's Layer 2 network

### Alternative Networks

* **Tron**: High-speed transactions with low fees
* **Fantom**: Fast finality and low costs
* **Harmony**: Sharded blockchain for scalability
* **Cronos**: Crypto.com's EVM-compatible chain

## Stablecoin Strategy

### Primary Stablecoins

* **USDC (USD Coin)**: Circle's regulated stablecoin
  * Deployed on Ethereum, Polygon, Avalanche, Arbitrum, Optimism
  * Fully backed by US dollars and cash equivalents
  * Regulated and audited by top-tier accounting firms
  * Primary choice for institutional and retail users
* **USDT (Tether)**: Most liquid stablecoin
  * Available on multiple chains for maximum liquidity
  * High trading volume and market acceptance
  * Used for arbitrage and liquidity provision

### Regional Stablecoins

* **EURC**: Euro-pegged stablecoin for European users
* **USDC on Polygon**: Low-cost alternative for smaller transfers
* **USDC on Avalanche**: Fast settlement for time-sensitive transfers

## Circle Integration

### Non-Custodial Wallet Infrastructure

* **Circle API Integration**: Direct integration with Circle's infrastructure
* **USDC Minting/Burning**: Programmatic stablecoin management
* **Compliance Integration**: Built-in KYC/AML compliance
* **Regulatory Compliance**: Circle's regulatory framework ensures compliance

### Key Benefits

* **Regulatory Clarity**: Circle's regulatory compliance reduces legal risks
* **Institutional Grade**: Enterprise-level security and reliability
* **Liquidity Access**: Deep liquidity pools for large transactions
* **Audit Trail**: Complete transaction history and compliance reporting

## Multi-Chain Architecture

### Chain Selection Algorithm

* **Cost Optimization**: Automatically selects the most cost-effective chain
* **Speed Requirements**: Prioritizes faster chains for urgent transfers
* **Liquidity Availability**: Ensures sufficient liquidity on selected chains
* **Network Congestion**: Avoids congested networks for better performance

### Cross-Chain Bridge Integration

* **Wormhole**: Secure cross-chain message passing
* **LayerZero**: Omnichain interoperability protocol
* **Chainlink CCIP**: Cross-chain interoperability protocol
* **Custom Bridges**: Proprietary bridges for specific use cases

## Security Measures

### Smart Contract Security

* **Multi-signature Wallets**: Enhanced security for large transactions
* **Time-locked Contracts**: Additional security for critical operations
* **Upgradeable Contracts**: Ability to fix bugs and add features
* **Audit Trail**: Complete on-chain transaction history

### Key Management

* **Hardware Security Modules (HSM)**: Secure key storage
* **Multi-party Computation**: Distributed key generation
* **Cold Storage**: Offline storage for maximum security
* **Key Rotation**: Regular key rotation for enhanced security

## Performance Optimization

### Transaction Batching

* **Batch Processing**: Multiple transactions in single batch
* **Gas Optimization**: Minimize gas costs through efficient batching
* **Priority Queuing**: High-priority transactions processed first
* **Dynamic Gas Pricing**: Real-time gas price optimization

### Network Monitoring

* **Real-time Monitoring**: Continuous network health monitoring
* **Congestion Detection**: Automatic detection of network congestion
* **Failover Mechanisms**: Automatic switching to alternative networks
* **Performance Metrics**: Detailed performance analytics and reporting


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.ramply.app/technical-architecture/blockchain-infrastructure.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
