◎

# Solana Integration Guide

High-Performance • Low-Cost • Permit-like Token Support

Mainnet Testnet Devnet Native: SOL SPL Tokens

This guide shows you how to integrate the Solana blockchain into your Bicrypto Ecosystem. You'll set the Solana network in your environment variables, and note that Solana tokens are generally "permit"-like, meaning they can facilitate fee delegation and advanced transaction flows differently than standard EVM chains.

1

### Configure Environment Variables

Add to .env file

    # Solana Networks (mainnet, testnet, devnet)
    SOL_NETWORK="mainnet"

#### 🔑 Environment Variables

- SOL_NETWORK: The active Solana network (`mainnet`, `testnet`, or `devnet`)

#### 🌐 Network Options

##### Mainnet

Production network with real SOL and SPL tokens. Use for live applications.

##### Testnet

Public testing network that mirrors mainnet functionality with test tokens.

##### Devnet

Development network for early-stage testing and experimentation.

2

### Apply Environment Changes

After editing `.env`, run the updator command to ensure your Solana network choice is recognized by the platform.

3

### Verify Configuration

1

#### Check Admin Panel

Verify that Solana is recognized or listed among your blockchain configurations in the Bicrypto admin panel.

2

#### Test Functionality

Test deposit/withdraw flows (if supported). For full functionality, ensure you have a Solana keypair properly initialized in your Master Wallet or Custodial Wallet structure.

⚠️ Wallet Setup: Ensure proper keypair initialization for complete Solana functionality.
4

### Additional Notes & Best Practices

#### 🚀 Solana Advantages

##### High Performance

Solana can process thousands of transactions per second with sub-second finality.

##### Low Costs

Transaction fees are typically fractions of a cent, making micro-transactions feasible.

##### Permit-like Tokens

SPL tokens can function similarly to "permit" tokens due to Solana's unique architecture.

#### 💰 Token Fees & Delegation

SPL tokens can function similarly to "permit" tokens, but confirm you've set up the proper accounts and have enough SOL to pay for transactions behind the scenes.

#### 🔗 Program Interactions

Solana's program-based architecture allows for complex interactions while maintaining low fees and high throughput.

#### 🧪 Development Testing

Use `devnet` for early development and `testnet` for production-ready testing before deploying to `mainnet`.

#### 🪙 SPL Token Characteristics

##### Native Integration

SPL tokens are natively supported by the Solana runtime, enabling efficient transfers and operations.

##### Fee Delegation

Solana's architecture allows for sophisticated fee delegation mechanisms, similar to permit functionality.

##### Account Model

Uses an account-based model where each token type has associated accounts for each wallet.

By setting `SOL_NETWORK` to `mainnet`, `testnet`, or `devnet`, you can support Solana's unique network and token flow. Remember that in many contexts, Solana tokens can act as "permit" because of the chain's design, simplifying fee handling for user transactions.