# Chain Operations Guide

This comprehensive guide covers all aspects of working with Polynomial Chain, from bridging assets to configuring RPC endpoints.

## Table of Contents

1. [Bridging Assets](#bridging-assets)
2. [RPC Configuration](#rpc-configuration)
3. [Network Management](#network-management)
4. [Troubleshooting](#troubleshooting)

***

## Bridging Assets

Bridging allows you to move assets between different blockchain networks. Polynomial Chain supports bridging from multiple networks to enable seamless asset movement.

### Prerequisites

* Connected wallet with supported assets
* Understanding of bridge concepts
* Some ETH for gas fees on source chains

### Supported Networks

* **Ethereum Mainnet**
* **Arbitrum**
* **Optimism**
* **Base**

### Supported Assets

* **USDC:** Most liquid and stable
* **sDAI:** Higher yield potential
* **sUSDe:** Highest yield potential
* **WETH:** Wrapped ETH for gas and trading (not native ETH)

### Asset Breakdown

For a detailed breakdown of assets and their values in Polynomial's bridges, visit the [L2BEAT TVS breakdown](https://l2beat.com/scaling/projects/polynomial/tvs-breakdown) for comprehensive insights into the assets and their respective values within the Polynomial ecosystem.

### Bridging Assets to Polynomial Chain

#### **Step 1: Access Bridge Interface**

1. Go to [Polynomial Bridge](https://polynomial.fi/en/mainnet/earn/bridge)
2. Connect your wallet
3. Ensure you're on the correct source network
4. Verify you have sufficient balance

#### **Step 2: Select Source and Destination**

1. **Source Chain:** Choose your current chain (Ethereum, Arbitrum, Optimism, Base)
2. **Destination Chain:** Select Polynomial Chain
3. **Asset:** Choose the asset you want to bridge
4. **Amount:** Enter the amount to bridge

#### **Step 3: Review Bridge Details**

1. **Bridge Amount:** Verify the amount to be bridged
2. **Estimated Time:** Review estimated bridge time (10-15 seconds)
3. **Bridge Fees:** Check any applicable bridge fees
4. **Gas Fees:** Ensure you have enough ETH for gas on source chain

#### **Step 4: Initiate Bridge**

1. Click "Bridge" or "Deposit"
2. Confirm the transaction in your wallet
3. Wait for transaction confirmation on source chain
4. Monitor bridge progress

#### **Step 5: Wait for Completion**

1. **Bridge Time:** Typically 10-15 seconds
2. **Status Tracking:** Monitor progress in your wallet
3. **Confirmation:** You'll receive notification when complete
4. **Verification:** Check your Polynomial Chain balance

### Bridging Assets from Polynomial Chain

#### **Step 1: Access Withdrawal Interface**

1. Go to [Polynomial Bridge](https://polynomial.fi/en/mainnet/earn/bridge)
2. Connect your wallet
3. Ensure you're on Polynomial Chain
4. Verify you have sufficient balance

#### **Step 2: Select Destination**

1. **Source Chain:** Polynomial Chain
2. **Destination Chain:** Choose your target chain
3. **Asset:** Select the asset to bridge out
4. **Amount:** Enter the amount to bridge

#### **Step 3: Review Withdrawal Details**

1. **Withdrawal Amount:** Verify the amount
2. **Destination:** Confirm destination chain
3. **Estimated Time:** Review estimated bridge time
4. **Fees:** Check any applicable fees

#### **Step 4: Initiate Withdrawal**

1. Click "Withdraw" or "Bridge Out"
2. Confirm the transaction in your wallet
3. Wait for transaction confirmation
4. Monitor bridge progress

#### **Step 5: Wait for Completion**

1. **Bridge Time:** Typically 1-5 mins
2. **Status Tracking:** Monitor progress
3. **Confirmation:** Check destination chain for arrival
4. **Verification:** Verify funds in destination wallet

### Bridge Process Details

#### **How Bridging Works**

Polynomial uses **Socket's mint and burn bridge mechanism** for fast, secure cross-chain transfers:

* **Mint and Burn:** Assets are burned on the source chain and minted on Polynomial Chain
* **Fast Execution:** Bridge completion typically takes 1-5 mins
* **Trustless:** Bridge is trustless and secure
* **Transparent:** All transactions are transparent and verifiable
* **Automated:** Process is automated once initiated

For detailed technical information about Socket's bridge mechanism, visit the [Socket.tech documentation](https://docs.socket.tech/).

#### **Bridge Security**

* **Smart Contracts:** Secured by audited smart contracts
* **Multi-Sig:** Multiple signatures required for bridge operations
* **Time Locks:** Time delays for additional security
* **Monitoring:** Continuous monitoring of bridge operations

#### **Bridge Fees**

* **Source Chain Gas:** Pay gas fees on source chain
* **Bridge Fees:** May include bridge-specific fees
* **Destination Gas:** No gas fees on Polynomial Chain
* **Total Cost:** Consider total cost of bridging

***

## RPC Configuration

RPC (Remote Procedure Call) endpoints allow your wallet to communicate directly with the Polynomial Chain network. Adding the correct RPC ensures your wallet can interact with Polynomial Chain properly.

### Prerequisites

* Web3 wallet (MetaMask, WalletConnect, etc.)
* Understanding of RPC concepts
* Basic knowledge of wallet configuration

### Why Add RPC?

* **Direct Connection:** Connect directly to Polynomial Chain
* **Better Performance:** Faster transaction processing
* **Reliability:** More reliable connection
* **Full Functionality:** Access to all network features

### Polynomial Chain Network Details

#### **Mainnet Configuration**

* **Network Name:** Polynomial Chain
* **RPC URL:** `https://rpc.polynomial.fi`
* **Alternative RPC:** `https://rpc-proxy.polynomial.fi`
* **Chain ID:** 8008
* **Currency Symbol:** ETH
* **Block Explorer:** <https://polynomialscan.io>

#### **Testnet Configuration**

* **Network Name:** Polynomial Sepolia
* **RPC URL:** `https://rpc.sepolia.polynomial.fi`
* **Chain ID:** 80008
* **Currency Symbol:** ETH
* **Block Explorer:** <https://sepolia.polynomialscan.io>

### Adding RPC to MetaMask

#### **Step 1: Open MetaMask**

1. Open your MetaMask wallet
2. Click on the network dropdown (top of wallet)
3. Select "Add network" or "Custom RPC"

#### **Step 2: Enter Network Details**

1. **Network Name:** Enter "Polynomial Chain"
2. **RPC URL:** Enter `https://rpc.polynomial.fi`
3. **Chain ID:** Enter `8008`
4. **Currency Symbol:** Enter `ETH`
5. **Block Explorer:** Enter `https://polynomialscan.io`

#### **Step 3: Save Network**

1. Review all details
2. Click "Save" or "Add Network"
3. MetaMask will switch to Polynomial Chain
4. Verify you're on the correct network

#### **Step 4: Verify Connection**

1. Check network name in MetaMask
2. Verify chain ID is 8008
3. Test by viewing your balance
4. Confirm you can see Polynomial Chain assets

### Adding RPC to Other Wallets

#### **WalletConnect**

1. **Connect Wallet:** Connect your wallet via WalletConnect
2. **Network Selection:** Select Polynomial Chain from network list
3. **Automatic Configuration:** WalletConnect handles RPC configuration
4. **Verification:** Verify connection to Polynomial Chain

#### **Coinbase Wallet**

1. **Open Settings:** Open Coinbase Wallet settings
2. **Networks:** Go to Networks section
3. **Add Network:** Click "Add Network"
4. **Enter Details:** Enter Polynomial Chain details
5. **Save:** Save the network configuration

#### **Other EVM Wallets**

1. **Find Network Settings:** Look for network or RPC settings
2. **Add Custom Network:** Add custom network option
3. **Enter Details:** Enter Polynomial Chain details
4. **Save Configuration:** Save the network configuration

### Alternative RPC Endpoints

* **Primary:** `https://rpc.polynomial.fi`
* **Secondary:** `https://rpc-proxy.polynomial.fi`
* **Backup:** Contact support for additional endpoints

***

## Network Management

### Polynomial Chain Details

#### **Network Specifications**

* **Consensus:** Proof of Stake
* **Block Time:** \~2 seconds
* **Gas Fees:** Gasless for most operations
* **EVM Compatible:** Full Ethereum compatibility

#### **Supported Features**

* **Smart Contracts:** Full smart contract support
* **Account Abstraction:** Native account abstraction
* **Cross-Chain:** Built-in cross-chain capabilities
* **Gasless Transactions:** Sponsored transactions

### Advanced RPC Configuration

#### **Custom RPC Settings**

* **Timeout Settings:** Adjust RPC timeout if needed
* **Retry Logic:** Configure retry logic for failed requests
* **Load Balancing:** Use multiple RPC endpoints
* **Monitoring:** Monitor RPC performance

#### **Developer Configuration**

* **Web3 Providers:** Configure Web3 providers
* **SDK Integration:** Integrate with development SDKs
* **API Keys:** Use API keys for enhanced access
* **Rate Limits:** Understand and manage rate limits

### Best Practices

#### **RPC Management**

* **Multiple Endpoints:** Use multiple RPC endpoints for reliability
* **Performance Monitoring:** Monitor RPC performance
* **Backup Endpoints:** Keep backup endpoints ready
* **Regular Updates:** Keep RPC configuration updated

#### **Security Considerations**

* **Official Endpoints:** Only use official RPC endpoints
* **HTTPS Only:** Ensure RPC URLs use HTTPS
* **Verify Sources:** Verify RPC endpoint sources
* **Avoid Public RPCs:** Avoid using public, untrusted RPCs

#### **Performance Optimization**

* **Choose Closest:** Choose geographically closest RPC
* **Monitor Latency:** Monitor RPC latency
* **Load Balancing:** Use load balancing for high usage
* **Caching:** Implement appropriate caching

***

## Troubleshooting

### Common Bridge Issues

#### **Bridge Taking Too Long**

* **Normal Time:** 10-15 seconds is normal
* **Peak Times:** May take longer during high traffic
* **Network Congestion:** Source chain congestion can delay
* **Wait Patiently:** Wait up to 30 minutes before concern

#### **Transaction Failed**

* **Insufficient Gas:** Ensure enough ETH for gas
* **Network Issues:** Check source chain network status
* **Insufficient Balance:** Verify sufficient balance
* **Try Again:** Retry during lower congestion

#### **Funds Not Arriving**

* **Check Destination:** Verify correct destination address
* **Network Status:** Check destination chain status
* **Transaction Status:** Verify transaction status
* **Contact Support:** Contact support if over 1 hour

#### **Failed Margin Deposit After Bridge**

Sometimes when bridging and depositing to margin, the margin deposit may fail even though the bridge was successful:

* **Check Polynomial Balance:** Your assets are likely already on Polynomial Chain
* **Direct Deposit:** You can deposit directly from your Polynomial Chain balance
* **Balance Verification:** Check your balance in the staking interface or trading interface
* **No Re-bridge Needed:** Assets are already on Polynomial Chain, no need to bridge again

#### **Wrong Network**

* **Switch Networks:** Switch to correct network
* **Check Address:** Verify you're using correct address
* **Network Configuration:** Check network configuration
* **Wallet Settings:** Update wallet network settings

### Common RPC Issues

#### **Cannot Connect to Network**

* **Check RPC URL:** Verify RPC URL is correct
* **Check Chain ID:** Ensure Chain ID is 8008
* **Network Status:** Check if Polynomial Chain is operational
* **Try Alternative RPC:** Use alternative RPC URL

#### **Slow Transactions**

* **RPC Performance:** Try alternative RPC endpoint
* **Network Congestion:** Wait for network congestion to clear
* **Wallet Issues:** Restart wallet application
* **Clear Cache:** Clear wallet cache

#### **Transaction Failures**

* **Insufficient Gas:** Ensure adequate gas for transactions
* **Network Mismatch:** Verify you're on correct network
* **RPC Issues:** Try alternative RPC endpoint
* **Wallet Issues:** Check wallet configuration

### Important Bridge Information

#### **Only Use Socket Bridge**

* **Official Bridge Only:** Polynomial only supports Socket bridge for all asset transfers
* **No Alternative Bridges:** Do not use other bridges (LayerZero, Wormhole, etc.) as they are not supported
* **ETH Bridge Warning:** Do not use Optimism's ETH bridge unless you're running a bot - this is not recommended for regular users

#### **WETH System**

* **WETH Instead of ETH:** Polynomial uses WETH (Wrapped ETH) on-chain, not native ETH
* **Polynomial Wallet Integration:** All assets are managed within your Polynomial wallet
* **Simplified Experience:** WETH provides the same functionality as ETH but optimized for Polynomial Chain

### Security Considerations

#### **Bridge Security**

* **Official Socket Bridge Only:** Always use Polynomial's official Socket bridge interface
* **Verify URLs:** Ensure you're on correct website (polynomial.fi)
* **No Alternative Bridges:** Do not use any other bridge services
* **Be Cautious:** Be cautious of phishing attempts

#### **Asset Security**

* **Private Keys:** Never share private keys
* **Seed Phrases:** Keep seed phrases secure
* **Hardware Wallets:** Use hardware wallets for large amounts
* **Regular Monitoring:** Monitor your accounts regularly

### Best Practices

#### **Before Bridging**

* **Verify Networks:** Ensure you're on the correct networks
* **Check Balances:** Verify sufficient balances
* **Review Fees:** Understand all applicable fees
* **Plan Timing:** Consider optimal timing for bridging

#### **During Bridging**

* **Monitor Progress:** Track bridge progress
* **Be Patient:** Allow sufficient time for completion
* **Don't Panic:** Don't worry if it takes longer than expected
* **Keep Records:** Keep transaction records

#### **After Bridging**

* **Verify Arrival:** Confirm funds arrived correctly
* **Update Records:** Update your records
* **Plan Next Steps:** Plan your next actions
* **Monitor Account:** Monitor your account balance

### Getting Help

#### **Common Questions**

* **RPC Configuration:** How to configure RPC endpoints
* **Network Issues:** Troubleshooting network problems
* **Performance Issues:** Optimizing RPC performance
* **Security Concerns:** RPC security best practices

#### **Support Channels**

* **FAQ:** Check [common questions](https://github.com/Polynomial-Protocol/gitbook/blob/master/how-to/support/faq.md)
* **Community:** Join [Discord](https://github.com/Polynomial-Protocol/gitbook/blob/master/how-to/support/community.md) for help
* **Support:** [Contact support](https://github.com/Polynomial-Protocol/gitbook/blob/master/how-to/support/contact.md) for direct assistance
* **Documentation:** Review technical documentation

## Next Steps

After learning chain operations:

1. [**How to Deposit**](https://github.com/Polynomial-Protocol/gitbook/blob/master/how-to/how-to/staking.md) - Learn about staking deposits
2. [**How to Trade**](https://github.com/Polynomial-Protocol/gitbook/blob/master/how-to/how-to/trading.md) - Learn about trading
3. [**Understanding Polynomial Wallets**](https://github.com/Polynomial-Protocol/gitbook/blob/master/how-to/getting-started/polynomial-wallets.md) - Learn about polynomial wallets
4. [**Wallet Setup Guide**](https://github.com/Polynomial-Protocol/gitbook/blob/master/how-to/how-to/wallet-setup.md) - Learn about wallet setup

## Important Reminders

* **Be Patient:** Bridge operations take time
* **Verify Networks:** Always verify you're on correct networks
* **Keep Records:** Keep transaction records
* **Use Official Channels:** Always use official bridge interfaces
* **Use Official RPCs:** Always use official RPC endpoints
* **Verify Configuration:** Double-check all network details
* **Keep Updated:** Keep RPC configuration updated
* **Monitor Performance:** Monitor RPC performance regularly

***

*This comprehensive chain operations guide covers all essential aspects of working with Polynomial Chain. Follow these steps carefully to ensure proper network connectivity and successful asset transfers.*
