Instructions for Using the Starcoin 2.0 Final Test Network

Published at January 2, 2025 By Starcoin.

Testnet Image

The final version of the Starcoin 2.0 testnet Proxima is now online! This testnet maintains compatibility with the mainstream Move ecosystem. Developers can deploy nodes, smart contracts, and experience Starcoin 2.0 firsthand.

Testnet Node Deployment

  1. Download the Application:
    Visit the following GitHub release page and download the application:
    Starcoin Release new_framework_1.0.3

  2. Execute the Node:
    Run the following command to deploy your node on the Proxima testnet:


starcoin -n proxima

  1. View Node Progress:
    Check the status of your node by running:

account show

Contract Deployment and Call

  1. Build a Move Project:
    Create and build your Move project as usual.

  2. Package the Contract:
    In the root directory of your Move project, run the following command to package and output the contract:


mpm release

This will generate a blob file in the ./release/ folder (e.g., xxx.blob).

  1. Deploy the Contract:
    Open the Starcoin console and follow these steps:
  • Import an Account:
    Use your private key to import an account (make sure it has STC):
    account import -i <0x private key>
    
  • Deploy the Contract:
    Deploy your packaged contract with the following command (replace placeholders accordingly):
    dev deploy <path>/release/xx.blob -s 0x12345 -b
    
  • View Deployment Results:
    Check the output in the console to verify successful deployment.
  1. Call the Deployed Function:
    Execute the entry function of your deployed contract using this command (replace <ModuleName> and <FunctionName> with actual names):

account execute-function --function 0x123456:::: -s 0x12345 -b

  1. View Call Results:
    Confirm the function execution by checking the call results in the console.

Enjoy exploring the Starcoin 2.0 testnet Proxima! For further details and updates, visit our GitHub repository and join the Starcoin community.