Mining Task Example

In this section, we will use Swan Console to launch an example Mining deployment on the Swan Network. You can follow the same process for any other tasks.

1. Accessing the Marketplace

The Swan Chain marketplace provides access to various mining pools. To begin:

  • Select “Marketplace” from the left panel

  • Navigate to the Mining section

  • View all supported mining tasks

2. Pool Registration

Using f2pool as an example:

  • Complete account registration

  • Save your account name — you’ll need it for the deployment process.

3. Deployment Configuration

3.1 Pre-deployment Preparation

Before proceeding with deployment, you’ll notice a section containing environment variables. These variables are crucial for your mining operation — they contain the connection details and authentication information needed to connect to the mining pool.

Important: Save these variables securely — you’ll need them for the configuration steps.

3.2 Settings Configuration

3.2.1 Aleo Mainnet

  1. Create a unique instance name (no specific naming rules)

  2. Click “Add Environment Variables” to create more input fields. Remember that all F2pool images require three essential variables:

  • MINER_URL: stratum+ssl://aleo-asia.f2pool.com:4420

  • ACCOUNTNAME: Your registered F2pool account name

  • WORKERNAME: A unique identifier for this mining worker

Critical Note: Even minor typing errors in these variables can prevent successful connection to the mining pool. For detailed information about Aleo mining on F2pool, consult the official documentation.

3.2.2 Iron Fish (IRON)

  1. Create a unique instance name (no specific naming rules)

2. Click “Add Environment Variables” to create more input fields, Remember that all F2pool images require three essential variables:

  • MINER_URL: Choose the server closest to your location

  • ACCOUNTNAME: Your F2pool account name

  • WORKERNAME: Your chosen worker identifier

Available MINER_URL Options:

  • North America: stratum+ssl://ironssl-na.f2pool.com:1510

  • Europe: stratum+ssl://ironssl-euro.f2pool.com:1510

  • Asia: stratum+ssl://ironssl-asia.f2pool.com:1510

For complete Iron mining instructions, visit F2pool’s Iron Fish guide.

3.3 Provider Selection

After setting up your environment variables, you’ll need to choose the hardware specifications for your mining operation.

Swan Chain offers two distinct approaches for selecting a Computing Provider (CP):

  1. Automatic Matching

  • System automatically matches you with suitable Computing Providers

  • Recommended for new users

2. Manual Provider Selection

  • Filter providers based on Geographic location, Hardware pricing and Provider account ID

  • PRO TIP: Check provider performance metrics via their account ID in the provider dashboard

  • NOTE: This option gives you more control but requires understanding of provider metrics

4. Final Deployment

  • Review all configurations thoroughly

  • Click “Deploy Now” to initiate the mining task

Note: If you see the “Not sufficient balance” notification, please follow the “Managing your SWANU accounts” steps to transfer SWANU.

Once you’ve deployed your mining task, give it 3–5 minutes, then head over to your F2pool dashboard. If you see hashrate and mining data showing up, congrats! Your mining task is up and running.

5. Manage Instances

Through the Swan Console, you can:

  • Monitor deployment status in real time

  • View detailed performance metrics

  • Terminate mining tasks if needed

5.1 Deployment Dashboard Overview

To monitor your deployments on Swan Chain Console:

  1. Navigate to “Instance” in the left panel

  2. Click on "Instance" or “Mining Task” to view your deployment status

  3. Here you can monitor:

    1. Task running status

    2. Resource usage

    3. Connection status

    4. Cost

Note: Costs are calculated and deducted every 12 hours. Make sure to maintain sufficient balance in your Escrow account to cover these periodic charges

5.2 Terminate Active Deployment

To close an active deployment:

  1. Navigate to the Instance pane

  2. Select the target deployment

  3. Click the "Terminate" button

  4. Confirm the blockchain transaction

Once terminated:

  • All associated costs will cease

  • Locked SWANU will be released

  • Resources will be deallocated

Last updated